i965/fs: Make the FS binding table as small as possible.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 15 Aug 2013 02:54:25 +0000 (19:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Aug 2013 20:17:00 +0000 (13:17 -0700)
commit60689c05d1f69610b3daac1c9f407c75ebecc81b
tree27e515c664ae47f01e6221be1f741697e802be37
parent6d89bc803d83d27d8946afdd2f749334a41a9d1f
i965/fs: Make the FS binding table as small as possible.

Computing the minimum size was easy, and done at compile-time for no
extra overhead here.  Making the binding table smaller wastes less batch
space.

Adding the CACHE_NEW_WM_PROG dirty bit isn't strictly necessary, since
other atoms depend on it and flag BRW_NEW_SURFACES.  However, it's best
to add it for clarity and safety.  It shouldn't add any new overhead.

v2: Use binding_table_size, rather than max_surface_index.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c