Bug 93936

Summary: Snail shadertoy displays black quad
Product: Mesa Reporter: pavol
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact: Default DRI bug account <dri-devel>
Severity: normal    
Priority: medium CC: pavol
Version: 11.0   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description pavol 2016-01-30 19:36:23 UTC
The following shader displays black quad on AMD 3650 Mobility. I used Firefox 44.

https://www.shadertoy.com/view/ld3Gz2h
Comment 1 pavol 2016-01-30 20:20:25 UTC
Correct link

https://www.shadertoy.com/view/ld3Gz2
Comment 2 Michel Dänzer 2016-01-31 02:46:54 UTC
Seems to work fine with radeonsi FWIW. Is there anything interesting in Firefox's stderr output? Maybe the r600 driver is failing to compile a shader.
Comment 3 pavol 2016-01-31 04:06:21 UTC
This prints forever:

EE /var/tmp/portage/media-libs/mesa-11.1.1/work/mesa-11.1.1/src/gallium/drivers/r600/r600_state_common.c:815 r600_shader_select - Failed to build shader variant (type=1) -1
EE /var/tmp/portage/media-libs/mesa-11.1.1/work/mesa-11.1.1/src/gallium/drivers/r600/r600_shader.c:161 r600_pipe_shader_create - translation from TGSI failed !
Comment 4 cyberkm 2016-06-24 12:54:27 UTC
Same problem here, i see in logs ->
also i saw that the hardcoded value for registers is 124, any reason for such small number?

r600_shader.c:3662 r600_shader_from_tgsi - GPR limit exceeded - shader requires 230 registers
Comment 5 Gert Wollny 2018-03-06 18:48:00 UTC
Some new register allocation in TGSI landed in v17.3 and was later further improved. Could you recheck with version 17.3+ or, if that doesn't work, with the current git? 

On AMD 5450 and 6870 it works (the register limit is the same).
Comment 6 GitLab Migration User 2019-09-18 19:21:00 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/573.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.