Driver fails to compile complex shaders
Submitted by Grigori Goronzy
Assigned to Default DRI bug account
The r600 driver fails to translate TGSI to bytecode for complex shaders.
https://www.shadertoy.com/view/MdX3Rr is an example for this. The fragment shader compiles into a pretty big TGSI program (about 6500 instructions). r600 takes a long time (tens of seconds) trying to transform it into bytecode, but in then end it fails:
EE ../../../../../mesa/src/gallium/drivers/r600/r600_shader.c:158 r600_pipe_shader_create - translation from TGSI failed ! EE ../../../../../mesa/src/gallium/drivers/r600/r600_state_common.c:753 r600_shader_select - Failed to build shader variant (type=1) -1
This happens with many of the shaders from shadertoy.com.