Grease Pencil Anti-Aliasing Broken on Linux/AMD #114338

Closed
opened 2023-10-31 19:42:41 +01:00 by Dakota-4 · 12 comments

System Information
Operating system: Linux (Endeavour OS) Kernel - 6.5.8-arch1-1
Graphics card: AMD Radeon RX 7800 XT

Blender Version

Broken:

Could not find a working version.

Short description of error

When either a Line Art modifier is applied to a grease pencil object, or a grease pencil stroke is drawn into the environment, if the Grease Pencil Anti-Aliasing Threshold is anything other than 0, severe artifacting occurs.

This issue seems specific to AMD cards, or AMD cards on Linux. I tested using a laptop that has an Intel integrated graphics card, and it worked as expected (picture at the bottom).

Example of lines at 0 anti-aliasing threshold:

image

Example of lines at any other value:

image

Image of anti-aliasing working as expected on Linux with Intel Integrated Graphics:

image_2023-10-31_14-35-49

Attached is the blend file in the photo, in a currently broken state.

Exact steps for others to reproduce the error

  • Create New Blender Scene
  • Create a Blank Grease Pencil Object
  • Apply the Line Art Modifier
  • Ensure Grease Pencil Anti-Aliasing is anything besides 0
  • The Default cube will show lines that have this issue

image

**System Information** Operating system: Linux (Endeavour OS) Kernel - 6.5.8-arch1-1 Graphics card: AMD Radeon RX 7800 XT **Blender Version** Broken: - 3.6.4, 21bfc5e7fe3f, makepkg - 3.6.5, cf1e1ed46b7e, makepkg - 4.1.0 Alpha, 9934381733ac, main Could not find a working version. **Short description of error** When either a Line Art modifier is applied to a grease pencil object, or a grease pencil stroke is drawn into the environment, if the Grease Pencil Anti-Aliasing Threshold is anything other than 0, severe artifacting occurs. This issue seems specific to AMD cards, or AMD cards on Linux. I tested using a laptop that has an Intel integrated graphics card, and it worked as expected (picture at the bottom). Example of lines at 0 anti-aliasing threshold: ![image](/attachments/556dc6cc-6a1b-41e9-91ae-94ba96af83b0) Example of lines at any other value: ![image](/attachments/d356f4d8-81c6-4d74-9281-b6ef614051db) Image of anti-aliasing working as expected on Linux with Intel Integrated Graphics: ![image_2023-10-31_14-35-49](/attachments/39946609-024a-4c9a-8bb6-a477d6a97179) Attached is the blend file in the photo, in a currently broken state. **Exact steps for others to reproduce the error** - Create New Blender Scene - Create a Blank Grease Pencil Object - Apply the Line Art Modifier - Ensure Grease Pencil Anti-Aliasing is anything besides 0 - The Default cube will show lines that have this issue ![image](/attachments/7ea26cee-668e-4761-bcd1-2d0ac7bb9a0d)
Dakota-4 added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-10-31 19:42:42 +01:00
Germano Cavalcante added the
Platform
Linux
label 2023-10-31 22:18:09 +01:00

Seems to work fine on:
Operating system: Windows-10-10.0.23575-SP0 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.6.0 Core Profile Context 23.20.01.04.230725

It appears that this issue might be specific to AMD graphics cards on Linux.

Please double-check if the drivers are up to date.
To upgrade to the latest driver, see here for more information: https://docs.blender.org/manual/en/dev/troubleshooting/gpu/index.html

Seems to work fine on: Operating system: Windows-10-10.0.23575-SP0 64 Bits Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.6.0 Core Profile Context 23.20.01.04.230725 It appears that this issue might be specific to AMD graphics cards on Linux. Please double-check if the drivers are up to date. To upgrade to the latest driver, see here for more information: https://docs.blender.org/manual/en/dev/troubleshooting/gpu/index.html
Author

I agree that this does seem to be Linux + AMD specific. As far as I can tell, my drivers are as up-to-date as possible. I did a system update to be sure, and everything looks to be up-to-date:

renderer:	'AMD Radeon RX 7800 XT (gfx1101, LLVM 16.0.6, DRM 3.54, 6.5.9-arch2-1)'
vendor:		'AMD'
version:	'4.6 (Core Profile) Mesa 23.2.1-arch1.2'
device type:	'AMD'
backend type:	'OPENGL'

The only "custom" thing I've done is install the opencl-amd and hip-runtime-amd packages to allow me to use Cycles HIP rendering with my GPU

Does Blender require the proprietary drivers be installed for something like this?

I agree that this does seem to be Linux + AMD specific. As far as I can tell, my drivers are as up-to-date as possible. I did a system update to be sure, and everything looks to be up-to-date: ``` renderer: 'AMD Radeon RX 7800 XT (gfx1101, LLVM 16.0.6, DRM 3.54, 6.5.9-arch2-1)' vendor: 'AMD' version: '4.6 (Core Profile) Mesa 23.2.1-arch1.2' device type: 'AMD' backend type: 'OPENGL' ``` The only "custom" thing I've done is install the `opencl-amd` and `hip-runtime-amd` packages to allow me to use Cycles HIP rendering with my GPU Does Blender require the proprietary drivers be installed for something like this?
Member

Hi, unable to confirm either with integrated AMD GPU on Windows
Would be helpful if you check with official AMD drivers

Hi, unable to confirm either with integrated AMD GPU on Windows Would be helpful if you check with official AMD drivers
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-11-02 06:26:52 +01:00
Author

Ill try and get the proprietary drivers installed here soon and see if there is a difference.

Ill try and get the proprietary drivers installed here soon and see if there is a difference.
Author

Hi, unable to confirm either with integrated AMD GPU on Windows
Would be helpful if you check with official AMD drivers

The proprietary drivers do not appear to have this problem. Once those were installed, it appears antialiasing works as intended again. Having these drivers installed is really not preferable, however, if I want to use this machine for pretty much anything else. Is this something I should report to an upstream, or is this something that can be fixed on the Blender side?

For anyone who might need it, here are the steps I took for Arch, essentially using this Arch Wiki article:

yay -S amdgpu-pro-oglp lib32-amdgpu-pro-oglp vulkan-amdgpu-pro lib32-vulkan-amdgpu-pro amf-amdgpu-pro
progl blender

image

> Hi, unable to confirm either with integrated AMD GPU on Windows > Would be helpful if you check with official AMD drivers The proprietary drivers do not appear to have this problem. Once those were installed, it appears antialiasing works as intended again. Having these drivers installed is really not preferable, however, if I want to use this machine for pretty much anything else. Is this something I should report to an upstream, or is this something that can be fixed on the Blender side? For anyone who might need it, here are the steps I took for Arch, essentially using [this](https://wiki.archlinux.org/title/AMDGPU_PRO) Arch Wiki article: ```bash yay -S amdgpu-pro-oglp lib32-amdgpu-pro-oglp vulkan-amdgpu-pro lib32-vulkan-amdgpu-pro amf-amdgpu-pro progl blender ``` ![image](/attachments/05350315-0038-4cca-a917-ea4217bb138e)
391 KiB
Member

Thanks.

The proprietary drivers do not appear to have this problem. Once those were installed, it appears antialiasing works as intended again. Having these drivers installed is really not preferable, however, if I want to use this machine for pretty much anything else.

@Jeroen-Bakker hi, can you check further? Do we handle such cases on tracker?

Thanks. > The proprietary drivers do not appear to have this problem. Once those were installed, it appears antialiasing works as intended again. Having these drivers installed is really not preferable, however, if I want to use this machine for pretty much anything else. @Jeroen-Bakker hi, can you check further? Do we handle such cases on tracker?
Member

yes we first need to make a case and find out if it is not an error on our side.

yes we first need to make a case and find out if it is not an error on our side.
Jeroen Bakker changed title from Grease Pencil Anti-Aliasing Broken And Causes Severe Artifacts to Grease Pencil Anti-Aliasing Broken on Linux/AMD 2023-11-08 16:25:39 +01:00
Member

@filedescriptor @ChengduLittleA any insight from your side?
If I understand it correctly it is when you apply the line art modifier. So it might also indicate that it might point to an issue in grease pencil core as well.

@filedescriptor @ChengduLittleA any insight from your side? If I understand it correctly it is when you apply the line art modifier. So it might also indicate that it might point to an issue in grease pencil core as well.
Author

@filedescriptor @ChengduLittleA any insight from your side?
If I understand it correctly it is when you apply the line art modifier. So it might also indicate that it might point to an issue in grease pencil core as well.

Just to clarify. It's not just the Line Art modifier, this happens to pretty much any Grease Pencil line. Both in a "2D" project, as well as manually drawn lines inside a 3D scene.

I am happy to provide screenshots / blend files if those are needed.

> @filedescriptor @ChengduLittleA any insight from your side? > If I understand it correctly it is when you apply the line art modifier. So it might also indicate that it might point to an issue in grease pencil core as well. Just to clarify. It's not just the Line Art modifier, this happens to pretty much any Grease Pencil line. Both in a "2D" project, as well as manually drawn lines inside a 3D scene. I am happy to provide screenshots / blend files if those are needed.
Member

Unable to reproduce on:

  • Graphics card: RENOIR (renoir, LLVM 15.0.7, DRM 3.49, 6.2.0-36-generic) AMD 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1
  • Graphics card: Mesa Intel(R) Arc(tm) A770 Graphics (DG2) Intel 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1

Able to reproduce on:

  • Graphics card: GFX1100 (gfx1100, LLVM 15.0.7, DRM 3.49, 6.2.0-36-generic) AMD 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1

The latter is comparable to a RX 7800 XT so it might be specific to the RDNA3.

Failing SMAA?
image

SMAA edge detection and weight calculation seems to be correct. When apply-ing it seems to be incorrect.

It still points out to a driver bug in mesa, ut for RDNA3 cards specificly.

Unable to reproduce on: * Graphics card: RENOIR (renoir, LLVM 15.0.7, DRM 3.49, 6.2.0-36-generic) AMD 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1 * Graphics card: Mesa Intel(R) Arc(tm) A770 Graphics (DG2) Intel 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1 Able to reproduce on: * Graphics card: GFX1100 (gfx1100, LLVM 15.0.7, DRM 3.49, 6.2.0-36-generic) AMD 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1 The latter is comparable to a RX 7800 XT so it might be specific to the RDNA3. Failing SMAA? ![image](/attachments/b093fe9d-dd9c-4d77-b924-aa6b18d57268) SMAA edge detection and weight calculation seems to be correct. When apply-ing it seems to be incorrect. It still points out to a driver bug in mesa, ut for RDNA3 cards specificly.
168 KiB
Jeroen Bakker added
Status
Confirmed
Type
Bug
and removed
Status
Needs Info from Developers
Type
Report
labels 2023-11-09 08:50:01 +01:00
Jeroen Bakker added this to the EEVEE & Viewport project 2023-11-09 08:50:12 +01:00
Author

This appears to be resolved. I am unsure at what mesa / blender version it got fixed at, but I am no longer seeing this issue

image

This appears to be resolved. I am unsure at what mesa / blender version it got fixed at, but I am no longer seeing this issue ![image](/attachments/005f66e5-dfdf-4076-8665-1260d535ac45)
496 KiB
Member

Closing then

Closing then
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-03-12 04:15:50 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#114338
No description provided.