On 10/16/2013 11:29 AM, Kenneth Graunke wrote:
> * Smaller than ceil(float(gl_NumSamples)/32.0):

I misspoke here.  gl_NumSamples is a uniform, and is the number of
samples in the framebuffer.  It isn't the implementation's maximum
number of color samples, which is what actually goes in that formula.

AFAICT, GLSL does not expose the maximum number of supported color
samples as a compile time constant, so there is no way to actually write
code to explicitly size this array correctly on all (theoretical)
implementations.  Unless you GetIntegerv and generate shader strings
dynamically...

I'm pretty sure people are just going to access element 1 and call it good.

--Ken
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to