[Mesa-dev] [PATCH 10/13] mesa, glsl, nir: reduce gl_state_index size to 2 bytes

Marek Olšák maraeo at gmail.com
Fri Feb 9 15:48:18 UTC 2018

On Fri, Feb 9, 2018 at 3:01 AM, Brian Paul <brian.e.paul at gmail.com> wrote:
> Again, I can't research this right now, but what values in the
> gl_state_index array are greater than 255?  Perhaps you can add a comment
> about that.  And if that's not the case, gl_state_index8?

I don't remember anymore, but I think I tried gl_state_index8 and
discovered that it wasn't enough. I'm pretty sure I would have made it
8-bit and unsigned if it had been possible. Currently it's signed and
if that is the requirement (again I don't remember), then 8 bits is
not enough.


More information about the mesa-dev mailing list