https://bugs.freedesktop.org/show_bug.cgi?id=96410
--- Comment #1 from gregory.hain...@gmail.com ---
Currently looking at the code of single program flow namely
_mesa_update_shader_textures_used
The current check fails to detect wrongly reused sampler in multiple shader
stage. The spec seems to imply that is must be checked in the full program (all
stages).
<<
Errors
It is not allowed to have variables of different sampler types pointing to
the same texture image unit within a program object. This situation can only
be detected at the next rendering command issued which triggers shader invo-
cations, and an INVALID_OPERATION error will then be generated.
>>
Here a typical example of an invalid program that will wrongly run fine.
***** Vertex Shader
layout(binding = 0) uniform sampler1D sampler_1d;
***** Fragment Shader
layout(binding = 0) uniform sampler2D sampler_2d;
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev