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

--- Comment #13 from Roland Scheidegger <srol...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to