Bug 65448 - Driver fails to compile complex shaders
Summary: Driver fails to compile complex shaders
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
Depends on:
Reported: 2013-06-06 09:29 UTC by Grigori Goronzy
Modified: 2019-09-18 19:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Grigori Goronzy 2013-06-06 09:29:13 UTC
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.
Comment 1 GitLab Migration User 2019-09-18 19:03:14 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/441.

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.