[Mesa-dev] [Bug 97524] Samplers referring to the same texture unit with different types should raise GL_INVALID_OPERATION

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 25 17:33:17 UTC 2016


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

--- Comment #13 from Roland Scheidegger <sroland at vmware.com> ---
(In reply to Matias N. Goldberg from comment #12)
> I believe the error should happen in either glLinkProgram or glUseProgram,
> and then every time glDraw* is called.
This is impossible, since the values of the (sampler) uniforms are not part of
the state which can be considered with these steps (you link/use and then set
the sampler uniforms).

> If I recall correctly AMD's Windows driver raised the error every time
> glDrawArrays was called; but I don't remember what was raised during
> glLink/UseProgram (if anything was raised at all).
Sounds correct, glValidateProgram validates if the program would be valid to
execute with all current gl state - essentially the same as what should be
validated at draw time (the docs on glValidateProgram even mention sampler
mismatch specifically). I'm not sure if draw calls actually need to return an
error too (but possibly yes).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161025/2f58aa1f/attachment.html>


More information about the mesa-dev mailing list