Radeon HD, MESA Linux Gallium r600, Light and Shadows Broken #60001

Closed
opened 2018-12-31 06:45:32 +01:00 by noki paike · 28 comments

System Information
Operating system: Ubuntu 18,10
Graphics card: Radeon HD 7600m
Drivers: MESA Devel 19 (there are better, but some problems on blender? on the drivers? must be solved)
https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

Blender Version
Broken:
blender-2.80-d96596de294e-linux-glibc224-x86_64

Worked:
blender-2.80-5e091de0dc6-linux-glibc224-x86_64 ( 30 october 2018)

Short description of error
Linux, Gallium r600, Mesa 19-devel, Light and Shadows Broken totally ..
ESM, VSM shadows not work,
Lights broken

see videos
https://youtu.be/GWEjU51GwVU
https://youtu.be/LtAmDBSXOLQ
https://youtu.be/ruQvL7zqvmQ

I tried an 30 October build with the same drivers and it works (I do not have any more recent ones)
(ESM shadows only thing that did not work with these drivers with this build)

screenshot with the working well October 30 build
Schermata del 2018-12-31 06-18-33.png
system-info.txt

**System Information** Operating system: Ubuntu 18,10 Graphics card: Radeon HD 7600m Drivers: MESA Devel 19 (there are better, but some problems on blender? on the drivers? must be solved) https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers **Blender Version** **Broken:** blender-2.80-d96596de294e-linux-glibc224-x86_64 **Worked:** blender-2.80-5e091de0dc6-linux-glibc224-x86_64 ( 30 october 2018) **Short description of error** Linux, Gallium r600, Mesa 19-devel, Light and Shadows Broken totally .. ESM, VSM shadows not work, Lights broken see videos https://youtu.be/GWEjU51GwVU https://youtu.be/LtAmDBSXOLQ https://youtu.be/ruQvL7zqvmQ I tried an 30 October build with the same drivers and it works (I do not have any more recent ones) (ESM shadows only thing that did not work with these drivers with this build) screenshot with the working well October 30 build ![Schermata del 2018-12-31 06-18-33.png](https://archive.blender.org/developer/F6125428/Schermata_del_2018-12-31_06-18-33.png) [system-info.txt](https://archive.blender.org/developer/F6125479/system-info.txt)
Author

Added subscriber: @nokipaike

Added subscriber: @nokipaike

#65083 was marked as duplicate of this issue

#65083 was marked as duplicate of this issue

#59776 was marked as duplicate of this issue

#59776 was marked as duplicate of this issue

Added subscriber: @ZedDB

Added subscriber: @ZedDB

Attach the output of --debug-gpu and also try if --debug-gpu-force-workarounds helps.

Attach the output of `--debug-gpu` and also try if `--debug-gpu-force-workarounds` helps.
Author

I tried ... no improvement with "debug - gpu - workaround" and does not produce any results in the console ...
probably these gpu workarounds are useful only for windows ..

with "debug - gpu" ... no improvement, but it produces these results in the console: that from ignorant they seem "clean" .. they do not produce errors in the console ..
debug_gpu.txt
I think they are visual errors, some algorithms that are not well interpreted .. maybe errors of mesa-gallium drivers that have different APIs to produce a certain result ....

in case I sent this bug report to the mesa drivers guys,
someone a few months ago there was dedicated and had greatly improved these drivers on this generation of video cards ...

now the problem with the shadows ESM and VSM has worsened ..
and the problem of lights emerged ..

https://bugzilla.freedesktop.org/show_bug.cgi?id=105371#c18

I tried ... no improvement with "debug - gpu - workaround" and does not produce any results in the console ... probably these gpu workarounds are useful only for windows .. with "debug - gpu" ... no improvement, but it produces these results in the console: that from ignorant they seem "clean" .. they do not produce errors in the console .. [debug_gpu.txt](https://archive.blender.org/developer/F6134207/debug_gpu.txt) I think they are visual errors, some algorithms that are not well interpreted .. maybe errors of mesa-gallium drivers that have different APIs to produce a certain result .... in case I sent this bug report to the mesa drivers guys, someone a few months ago there was dedicated and had greatly improved these drivers on this generation of video cards ... now the problem with the shadows ESM and VSM has worsened .. and the problem of lights emerged .. https://bugzilla.freedesktop.org/show_bug.cgi?id=105371#c18
Author

Added subscriber: @mano-wii

Added subscriber: @mano-wii
Author

I think that only someone who has these GPU with linux can solve this problem ..
perhaps communicating with the boys of MESA-devel Gallium ...

@mano-wii this is bread for your teeth

I think that only someone who has these GPU with linux can solve this problem .. perhaps communicating with the boys of MESA-devel Gallium ... @mano-wii this is bread for your teeth
Clément Foucault was assigned by Sebastian Parborg 2019-01-01 01:58:12 +01:00

Added subscriber: @fclem

Added subscriber: @fclem

From the mesa ticket, this does sound like a driver issue. However, let's hope @fclem can give us some more insight.

From the mesa ticket, this does sound like a driver issue. However, let's hope @fclem can give us some more insight.
Author

in case it may serve, this is the result of the apitrace https://apitrace.github.io/ as subjected here:
(note* are post made on 2018-08-13)
https://bugzilla.freedesktop.org/show_bug.cgi?id=105371#c10

the file can be analyzed with the apitrace-gui app
https://packages.debian.org/sid/apitrace-gui
blender.trace

in case it may serve, this is the result of the apitrace https://apitrace.github.io/ as subjected here: (note* are post made on 2018-08-13) https://bugzilla.freedesktop.org/show_bug.cgi?id=105371#c10 the file can be analyzed with the apitrace-gui app https://packages.debian.org/sid/apitrace-gui [blender.trace](https://archive.blender.org/developer/F6134454/blender.trace)
Author

I made a 6 minute video playing with blender and with the console "debug-gpu" in the foreground .. maybe it could be useful to investigate what happens

https://youtu.be/VxLYh-PFdlA

I made a 6 minute video playing with blender and with the console "debug-gpu" in the foreground .. maybe it could be useful to investigate what happens https://youtu.be/VxLYh-PFdlA

In #60001#591025, @nokipaike wrote:
I think that only someone who has these GPU with linux can solve this problem ..
perhaps communicating with the boys of MESA-devel Gallium ...

@mano-wii this is bread for your teeth

The videos are very descriptive and will definitely help!
However I use windows exclusively and I can't replicate the problem.
If Clément doesn't find out what is happening and the problem continues for a long time, I can switch to Linux to replicate and try to solve ;)

> In #60001#591025, @nokipaike wrote: > I think that only someone who has these GPU with linux can solve this problem .. > perhaps communicating with the boys of MESA-devel Gallium ... > > @mano-wii this is bread for your teeth The videos are very descriptive and will definitely help! However I use windows exclusively and I can't replicate the problem. If Clément doesn't find out what is happening and the problem continues for a long time, I can switch to Linux to replicate and try to solve ;)
Author

hahaha
Come on, @mano-wii put a Mint 19.1 in a flashusb and try what happens without installing anything on the hard disk ...

do not forget this if you have a laptop with two gpu like mine .. otherwise blender starts with the intel gpu

DRI_MODE=1 ./blender
https://www.linuxmint.com/download.php

for mesa-devel drivers updated daily ..
(mint is compatible with ubuntu but more friendly interface for windows users)
https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

there is also the ppa padoka .. do not like it .. but on the page there is a list of many features that can be enabled via the console with the gallium drivers ... (also work with oibaf and maybe even with the official mesa)
https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa

hahaha Come on, @mano-wii put a Mint 19.1 in a flashusb and try what happens without installing anything on the hard disk ... do not forget this if you have a laptop with two gpu like mine .. otherwise blender starts with the intel gpu DRI_MODE=1 ./blender https://www.linuxmint.com/download.php for mesa-devel drivers updated daily .. (mint is compatible with ubuntu but more friendly interface for windows users) https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers there is also the ppa padoka .. do not like it .. but on the page there is a list of many features that can be enabled via the console with the gallium drivers ... (also work with oibaf and maybe even with the official mesa) https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa

Added subscriber: @RPBCACUEAIIBH

Added subscriber: @RPBCACUEAIIBH

Added subscriber: @ototto

Added subscriber: @ototto

@nokipaike Hello again.
It's been a while, I was really busy and when I actually had the chance to work with Blender, I used a 2.79.
In another thread (https://developer.blender.org/T59996) you've asked me about this kind of viewport bugs. After long and uneven fight with the GPU on my laptop and finally switching it on (problems with oibaf ppa on mint 18.3) I can tell that Eevee renderer looks almost exactly like in the videos above, so... yeah they look glittering-crappy.

--debug-gpu-force-workarounds

this^ suffix doesn't change anything actually.

Please let me know if I could help in any way. Seems like we're somewhat unique about the laptops we use for Blender ;) so maybe I can recreate some of your issues.
Please be patient with my noobie-ness.

My setup for now:
intel i5
HP Pavillion DV7 with Radeon 6770M
Linux Mint 19.1

Blender 2.8 build:
2019-01-17
2757469824

@nokipaike Hello again. It's been a while, I was really busy and when I actually had the chance to work with Blender, I used a 2.79. In another thread (https://developer.blender.org/T59996) you've asked me about this kind of viewport bugs. After long and uneven fight with the GPU on my laptop and finally switching it on (problems with oibaf ppa on mint 18.3) I can tell that Eevee renderer looks almost exactly like in the videos above, so... yeah they look glittering-crappy. ``` --debug-gpu-force-workarounds ``` this^ suffix doesn't change anything actually. Please let me know if I could help in any way. Seems like we're somewhat unique about the laptops we use for Blender ;) so maybe I can recreate some of your issues. Please be patient with my noobie-ness. My setup for now: intel i5 HP Pavillion DV7 with Radeon 6770M Linux Mint 19.1 Blender 2.8 build: 2019-01-17 2757469824bb

Hi!

I'm a linux only user with an old AMD PC, experiencing the same problem.

System Information
Operating system(s): Ubuntu 17.10 and Ubuntu 18.04
CPU: AMD A10 5800K
RAM: 4x4GB DDR3 1600Mhz
Graphics card: (integrated graphics only: Trinity [Radeon HD 7660D])

Not long ago In another thread ( https://developer.blender.org/T59759 ) I've already posted the errors I'm getting with --debug-gpu-force-workarounds. Let me know If I can help.

Hi! I'm a linux only user with an old AMD PC, experiencing the same problem. System Information Operating system(s): Ubuntu 17.10 and Ubuntu 18.04 CPU: AMD A10 5800K RAM: 4x4GB DDR3 1600Mhz Graphics card: (integrated graphics only: Trinity [Radeon HD 7660D]) Not long ago In another thread ( https://developer.blender.org/T59759 ) I've already posted the errors I'm getting with --debug-gpu-force-workarounds. Let me know If I can help.
Author

@ototto

Please let me know if I could help in any way.

in addition to the guys of blender to find some solution ...
I think that another way is to urge the boys of mesa devel in some way

https://bugs.freedesktop.org/buglist.cgi?component=Drivers%2FGallium%2Fr600&product=Mesa&resolution=---

@ototto > Please let me know if I could help in any way. in addition to the guys of blender to find some solution ... I think that another way is to urge the boys of mesa devel in some way https://bugs.freedesktop.org/buglist.cgi?component=Drivers%2FGallium%2Fr600&product=Mesa&resolution=---
Author

good and bad news...

I've just tested the latest blender build with the latest mesa-devel driver..

the standard settings situation remained predominantly the same.
the good news is that if you launch blender with these parameters:
"DRI_PRIME=1 R600_DEBUG=nosb ./blender"
( DRI_PRME=1 ...My radeon gpu is a discrete GPU, and the R600_DEBUG=nosb disable the shader backend acceleration) blender with eevee works perfectly.

the bad news is that the performance goes fuckoff ..

so the problem is of the gallium drivers in particular of the shader compiler ...
in case anyone wants to test ... here some drivers parameters for
R600_DEBUG=

  • SHADER BACKEND-
  "nosb" Disable sb backend for graphics shaders
  "sbcl" Enable sb backend for compute shaders
  "sbdry" Do not use optimized bytecode (just print the dumps)
  "sbstat" Print optimization for shaders
  "sbdump" Print IR dumps after some optimization passes
  "sbnofallback" Abort on errors instead of fallback
  "sbdisasm" Use sb disassembler for shader dumps
  "sbsafemath" Disable unsafe math optimisations
  • LOGGING-
  "tex" "Print texture info"
  "texmip" Print texture info (mipmapped only)"
  "compute" Print compute info
  "vm" Print virtual addresses when creating resources
  "trace_cs" Trace cs and write rlockup_<csid>.c file with faulty cs
  "info" Print driver information
  • SHADERS- (debugging)
  "fs" Print fetch shaders
  "vs" Print vertex shaders
  "gs" Print geometry shaders
  "ps" Print pixel shaders
  "cs" Print compute shaders
  "tcs" Print tessellation control shaders
  "tes" Print tessellation evaluation shaders
  "noir" Don't print the LLVM IR
  "notgsi" Don't print the TGSI
  "noasm" Don't print disassembled shaders
  • FEATURES-
  "nodma" Disable asynchronous DMA
  "nohyperz" Disable Hyper-Z
  "noinvalrange" (GL uses the word INVALIDATE, gallium uses DISCARD) Disable handling of INVALIDATE_RANGE map flags
  "no2d" Disable 2D tiling
  "notiling" Disable tiling
  "switch_on_eop" Program WD/IA to switch on end-of-packet
  "precompile" Compile one shader variant at shader creation
  "nowc" Disable GTT write combining
  "check_vm" Check VM faults and dump debug information
  "llvm" Enable the LLVM shader compiler
  "sisched" Enable the SI scheduler in the LLVM backend
  "forcedma" Use asynchronous DMA for all operations when possible
  "nocpdma" Disable CP DMA
**good and bad news**... I've just tested the latest blender build with the latest mesa-devel driver.. the standard settings situation remained predominantly the same. **the good news** is that if you launch blender with these parameters: "DRI_PRIME=1 R600_DEBUG=nosb ./blender" ( DRI_PRME=1 ...My radeon gpu is a discrete GPU, and the R600_DEBUG=nosb disable the shader backend acceleration) blender with eevee works perfectly. **the bad news** is that the performance goes fuckoff .. so the problem is of the gallium drivers in particular of the shader compiler ... in case anyone wants to test ... here some drivers parameters for R600_DEBUG= - SHADER BACKEND- ``` "nosb" Disable sb backend for graphics shaders "sbcl" Enable sb backend for compute shaders "sbdry" Do not use optimized bytecode (just print the dumps) "sbstat" Print optimization for shaders "sbdump" Print IR dumps after some optimization passes "sbnofallback" Abort on errors instead of fallback "sbdisasm" Use sb disassembler for shader dumps "sbsafemath" Disable unsafe math optimisations ``` - LOGGING- ``` "tex" "Print texture info" "texmip" Print texture info (mipmapped only)" "compute" Print compute info "vm" Print virtual addresses when creating resources "trace_cs" Trace cs and write rlockup_<csid>.c file with faulty cs "info" Print driver information ``` - SHADERS- (debugging) ``` "fs" Print fetch shaders "vs" Print vertex shaders "gs" Print geometry shaders "ps" Print pixel shaders "cs" Print compute shaders "tcs" Print tessellation control shaders "tes" Print tessellation evaluation shaders "noir" Don't print the LLVM IR "notgsi" Don't print the TGSI "noasm" Don't print disassembled shaders ``` - FEATURES- ``` "nodma" Disable asynchronous DMA "nohyperz" Disable Hyper-Z "noinvalrange" (GL uses the word INVALIDATE, gallium uses DISCARD) Disable handling of INVALIDATE_RANGE map flags "no2d" Disable 2D tiling "notiling" Disable tiling "switch_on_eop" Program WD/IA to switch on end-of-packet "precompile" Compile one shader variant at shader creation "nowc" Disable GTT write combining "check_vm" Check VM faults and dump debug information "llvm" Enable the LLVM shader compiler "sisched" Enable the SI scheduler in the LLVM backend "forcedma" Use asynchronous DMA for all operations when possible "nocpdma" Disable CP DMA
Author

if someone understands what happens with the damned shader backend compiler ... here the sources ...

https://github.com/mesa3d/mesa/tree/master/src/gallium/drivers/r600/sb

in my opinion it is some trivial parameter wrongly interpreted, which breaks the proper functioning of lights and shadows in blender ...

without the acceleration backend shader, eevee's performances are really poor

if someone understands what happens with the damned shader backend compiler ... here the sources ... https://github.com/mesa3d/mesa/tree/master/src/gallium/drivers/r600/sb in my opinion it is some trivial parameter wrongly interpreted, which breaks the proper functioning of lights and shadows in blender ... without the acceleration backend shader, eevee's performances are really poor

Added subscriber: @xrg

Added subscriber: @xrg

Added subscriber: @brecht

Added subscriber: @brecht

Closing since we now only officially support AMD graphics cards with GCN 1st gen and later for Blender 2.80.

More information on that decision is here:
https://code.blender.org/2019/04/supported-gpus-in-blender-2-80/

We keep this bug listed in #61936 (EOL GPU problems tracking report) in case anyone is interested in fixing it.

Closing since we now only officially support AMD graphics cards with GCN 1st gen and later for Blender 2.80. More information on that decision is here: https://code.blender.org/2019/04/supported-gpus-in-blender-2-80/ We keep this bug listed in #61936 (EOL GPU problems tracking report) in case anyone is interested in fixing it.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Added subscribers: @JoseBaltazarArriolaOlea, @WilliamReynish
Author
@brecht **this is solvend** https://devtalk.blender.org/t/amd-r600-radeon-hd-mesa-linux-driver-workaround-that-solves-the-problem-scroll-through-the-comments/9294/2

Changed status from 'Archived' to: 'Resolved'

Changed status from 'Archived' to: 'Resolved'
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 project
No Assignees
8 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#60001
No description provided.