[RadeonSI] [Regression] - EasyEDA Pro - Visual glitches on various AMD GPUs with Mesa 22.3.6+
Describe the issue
The EasyEDA Pro is a PCB designing software built with web technology. It's usable in both FireFox and Chromium-based browsers. It also has a desktop client which is built with Electron. It uses WebGL or WebGPU.
When using this software on various AMD GPUs, it has visual glitches. No matter which browser is used.
I have tested three different versions of EasyEDA Pro:
- v1.8.28 (mid-2022)
- v2.0.17 (2023-03)
- v2.1.42 (2023-12)
With Mesa 22.3.6+, they're all broken on:
- GCN-4 cards (tested: RX 580, RX 580 2048SP, RX 550)
- GCN-5 cards (tested: Ryzen 5 PRO 2500U / Vega 8 Mobile Graphics)
- RDNA cards (see this link)
They're all working on:
- NVIDIA GPUs (non-free driver, tested: GTX 1660 Ti)
- Software rendering (
LIBGL_ALWAYS_SOFTWARE=1
)
Things I've tried so far (and none of them worked):
export radeonsi_clamp_div_by_zero=true
export radeonsi_zerovram=true
export AMD_DEBUG=<every option starts with 'no'>
- Installing AMDGPU-PRO
Regression
It was working on Debian 11 (Mesa 20.3.5).
More information
When using it in a x11docker container that uses older Mesa, it is working properly.
Screenshots
Glitched | Correct |
---|---|
System information
Machine 1
System:
Host: jpense Kernel: 6.1.0-15-amd64 arch: x86_64 bits: 64 compiler: gcc
v: 12.2.0 Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.8 wm: kwin_x11
dm: XDM Distro: Debian GNU/Linux 12 (bookworm)
CPU:
Info: quad core model: AMD Ryzen 5 PRO 2500U w/ Radeon Vega Mobile Gfx
bits: 64 type: MT MCP arch: Zen rev: 0 cache: L1: 384 KiB L2: 2 MiB
L3: 4 MiB
Speed (MHz): avg: 1662 high: 2000 min/max: 1600/2000 boost: enabled cores:
1: 1600 2: 1600 3: 1600 4: 1600 5: 1700 6: 1600 7: 2000 8: 1600
bogomips: 31939
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Mobile Series]
vendor: Lenovo driver: amdgpu v: 6.2.4 arch: GCN-5 pcie: speed: 8 GT/s
lanes: 16 ports: active: HDMI-A-1 off: eDP-1 empty: DP-1,DP-2
bus-ID: 06:00.0 chip-ID: 1002:15dd temp: 62.0 C
Device-2: Chicony Integrated Camera (1280x720@30) type: USB
driver: uvcvideo bus-ID: 4-2.4:6 chip-ID: 04f2:b604
Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9
compositor: kwin_x11 driver: X: loaded: amdgpu
unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0
screens: 1
Screen-1: 0 s-res: 3840x2160 s-dpi: 96
Monitor-1: HDMI-A-1 mapped: HDMI-A-0 pos: primary
model: Philips PHL BDM4350 res: 3840x2160 dpi: 102 diag: 1097mm (43.2")
Monitor-2: eDP-1 mapped: eDP note: disabled model: BOE Display 0x0791
res: 3840x2160 dpi: 158 diag: 354mm (13.9")
API: OpenGL v: 4.6 Mesa 23.2.0-devel renderer: AMD Radeon Graphics (raven
LLVM 16.0.6 DRM 3.54 6.1.0-15-amd64) direct-render: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: AMD (0x1002)
Device: AMD Radeon Graphics (raven, LLVM 16.0.6, DRM 3.54, 6.1.0-15-amd64) (0x15dd)
Version: 23.2.0
Accelerated: yes
Video memory: 1024MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 270 MB, largest block: 270 MB
VBO free aux. memory - total: 29334 MB, largest block: 29334 MB
Texture free memory - total: 270 MB, largest block: 270 MB
Texture free aux. memory - total: 29334 MB, largest block: 29334 MB
Renderbuffer free memory - total: 270 MB, largest block: 270 MB
Renderbuffer free aux. memory - total: 29334 MB, largest block: 29334 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 1024 MB
Total available memory: 32622 MB
Currently available dedicated video memory: 270 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (raven, LLVM 16.0.6, DRM 3.54, 6.1.0-15-amd64)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.2.0-devel
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
Machine 2
System:
Host: Rinyuki-Workstation1 Kernel: 6.1.0-16-amd64 arch: x86_64 bits: 64
compiler: gcc v: 12.2.0 Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.8
wm: kwin_wayland dm: 1: SDDM note: stopped 2: XDM Distro: Debian
GNU/Linux 12 (bookworm)
CPU:
Info: 8-core model: AMD Ryzen Threadripper 2950X bits: 64 type: MT MCP MCM
arch: Zen+ rev: 2 cache: L1: 1.5 MiB L2: 8 MiB L3: 32 MiB
Speed (MHz): avg: 2240 high: 3500 min/max: 2200/3500 boost: enabled cores:
1: 2200 2: 2200 3: 2200 4: 2200 5: 2200 6: 2200 7: 2200 8: 2200 9: 2200
10: 2200 11: 2200 12: 2200 13: 2200 14: 2200 15: 2200 16: 2200 17: 2200
18: 2200 19: 2200 20: 2200 21: 2200 22: 3500 23: 2200 24: 2200 25: 2200
26: 2200 27: 2200 28: 2200 29: 2200 30: 2200 31: 2200 32: 2200
bogomips: 223551
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Polaris 20 XL [Radeon RX 580 2048SP] vendor: Tul / PowerColor
driver: amdgpu v: kernel arch: GCN-4 pcie: speed: 8 GT/s lanes: 16 ports:
active: DP-1 empty: DP-2, DP-3, DVI-D-1, HDMI-A-1 bus-ID: 43:00.0
chip-ID: 1002:6fdf temp: 57.0 C
Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9
compositors: 1: kwin_wayland 2: kwin_x11 driver: X: loaded: amdgpu
unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0
screens: 1
Screen-1: 0 s-res: 3840x2160 s-dpi: 96
Monitor-1: DP-1 mapped: DisplayPort-0 model: Philips PHL BDM4350
res: 3840x2160 dpi: 102 diag: 1097mm (43.2")
API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon RX 580 2048SP
(polaris10 LLVM 15.0.6 DRM 3.49 6.1.0-16-amd64) direct-render: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: AMD (0x1002)
Device: AMD Radeon RX 580 2048SP (polaris10, LLVM 15.0.6, DRM 3.49, 6.1.0-16-amd64) (0x6fdf)
Version: 22.3.6
Accelerated: yes
Video memory: 8192MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 6422 MB, largest block: 6422 MB
VBO free aux. memory - total: 31975 MB, largest block: 31975 MB
Texture free memory - total: 6422 MB, largest block: 6422 MB
Texture free aux. memory - total: 31975 MB, largest block: 31975 MB
Renderbuffer free memory - total: 6422 MB, largest block: 6422 MB
Renderbuffer free aux. memory - total: 31975 MB, largest block: 31975 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 8192 MB
Total available memory: 40323 MB
Currently available dedicated video memory: 6422 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 580 2048SP (polaris10, LLVM 15.0.6, DRM 3.49, 6.1.0-16-amd64)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile