[Bug 91951] [radeonsi] Arma 3 crashes: Too many fragment shader texture samplers

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 6 17:04:00 PST 2016


https://bugs.freedesktop.org/show_bug.cgi?id=91951

Ian Romanick <idr at freedesktop.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #8 from Ian Romanick <idr at freedesktop.org> ---
I believe radeonsi only advertises support for 32 samplers, and this shader
declares 33.

$ grep 'uniform[[:space:]]\+sampler' ~/file_91951.txt  | wc -l
33

Looking at the code, far fewer than 33 are used.

$ grep 'var_ref tex[0-9]' ~/file_91951.txt  | wc -l
21

If there are only 21 references to sampler variables, it is impossible for more
than 21 samplers to be used.

I also notice that this shader has

#ifdef GL_ARB_separate_shader_objects
#extension GL_ARB_separate_shader_objects : enable
#endif

at the top.  GL_ARB_separate_shader_objects changes some of the rules about
what things are allowed to be eliminated from a linked shader.  I didn't think
it had any affect on uniforms, so it's possible there's some bad interaction
there.

Can someone try running this on radeonsi with the environment variable
MESA_EXTENSION_OVERRIDE=-GL_ARB_separate_shader_objects?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160107/3871b0a8/attachment.html>


More information about the intel-3d-bugs mailing list