Objects are not rendered correctly with Radeon card
System information
System:
Host: quad Kernel: 5.9.11-200.fc33.x86_64 x86_64 bits: 64 compiler: gcc
v: 2.35-14.fc33) Desktop: GNOME 3.38.1 tk: GTK 3.24.23 wm: gnome-shell
dm: GDM Distro: Fedora release 33 (Thirty Three)
CPU:
Info: Quad Core model: Intel Core i7-4790 bits: 64 type: MT MCP
arch: Haswell rev: 3 L2 cache: 8192 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 59317
Speed: 3708 MHz min/max: 800/4000 MHz Core speeds (MHz): 1: 3708 2: 3708
3: 3615 4: 3708 5: 3709 6: 3708 7: 3708 8: 3708
Graphics:
Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
vendor: ASUSTeK driver: N/A bus ID: 00:02.0 chip ID: 8086:0412
Device-2: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Sapphire Limited Nitro+ driver: amdgpu v: kernel bus ID: 01:00.0
chip ID: 1002:67df
Display: x11 server: Fedora Project X.org 1.20.9 compositor: gnome-shell
driver: amdgpu,ati unloaded: fbdev,modesetting,vesa resolution:
1: 1920x1080~60Hz 2: 1920x1080~60Hz 3: 1920x1080~60Hz s-dpi: 96
OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.39.0
5.9.11-200.fc33.x86_64 LLVM 11.0.0)
v: 4.6 Mesa 20.2.3 direct render: Yes
Describe the issue
I'm trying to use a 3D printer slicer application, chitubox, and the rendering of the object doesn't work with radeon_dri (the object is grey and cannot be moved with the mouse). The application setting for graphic card compatibility mode is enabled.
If I start the application with LIBGL_ALWAYS_SOFTWARE=1, it works well (the rendering is good and the object can be moved with the mouse).
The information found in the application logs are
for Radeon:
==bSupport_GL_EXT: false
GPU vendor: X.Org
GPU version: 4.6 (Compatibility Profile) Mesa 20.2.3
GPU render: Radeon RX 580 Series (POLARIS10, DRM 3.39.0, 5.9.11-200.fc33.x86_64, LLVM 11.0.0)
core: true
validVersion: "46"
hasFrameBufferObjects: true
for LIBGL_ALWAYS_SOFTWARE:
=======Version: "140" valid: true
==bSupport_GL_EXT: false
GPU vendor: Mesa/X.org
GPU version: 3.1 Mesa 20.2.3
GPU render: llvmpipe (LLVM 11.0.0, 256 bits)
core: true
validVersion: "31"
hasFrameBufferObjects: true
mesa-dri-drivers-20.2.3-1.fc33.x86_64
How reproducible:
- 100% on Radeon based system
- 0% otherwise
Steps to Reproduce:
- Download Chitubox https://www.chitubox.com/en/download/chitubox-free
- untar the archive
- start the application CHITUBOX\ V1.7.0/AppRun
Actual results:
object rendering is broken:
Expected results:
object is rendered and can be moved:
Additional info:
This is specific to radeon: the same application with Fedora 33 on an intel GPU based system works well.
Regression
Yes, it's a regression, I've installed some chroot with ubuntu release, and it works with ubuntu-20.04 and not with Ubuntu 20.10:
UBUNTU 20.04:
==bSupport_GL_EXT: false
GPU vendor: X.Org
GPU version: 4.6 (Compatibility Profile) Mesa 20.0.4
GPU render: Radeon RX 580 Series (POLARIS10, DRM 3.39.0, 5.9.11-200.fc33.x86_64, LLVM 9.0.1)
core: true
validVersion: "46"
hasFrameBufferObjects: true
libgl1-mesa-dri-20.0.4-2ubuntu1
UBUNTU 20.10:
==bSupport_GL_EXT: false
GPU vendor: X.Org
GPU version: 4.6 (Compatibility Profile) Mesa 20.2.1
GPU render: Radeon RX 580 Series (POLARIS10, DRM 3.39.0, 5.9.11-200.fc33.x86_64, LLVM 11.0.0)
core: true
validVersion: "46"
hasFrameBufferObjects: true
libgl1-mesa-dri-20.2.1-1