[Mesa-dev] i965: dynamic binding table size

Eric Anholt eric at anholt.net
Fri Oct 4 15:44:51 PDT 2013


Here's a series to pack our binding tables so that you (for example) don't
waste BRW_MAX_DRAWBUFFERS-1 indices in your simple texturing shaders.

I think it cleans up the code, though the net LOC change is approximately
0.  Performance data for GLB2.7:

IVB: No SSPD (n=754)
gm45: -0.0323403% +/- 0.0204702% (n=140)

So this is an incredibly minor hit (which was a surprise to me), but I'd
be willing to do it for the sanity gain of not having the SURF_INDEX
macros any more.



More information about the mesa-dev mailing list