i965: Un-hardcode WM binding table from update_texture_surface.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Aug 2012 22:45:52 +0000 (15:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 25 Aug 2012 19:01:10 +0000 (12:01 -0700)
commit28fab4295e9631ca91c5ebdf26d1bee23011d57e
treecf121f4e0c064496d869fba54c22e181d45ddfdc
parent96a22f35830859c938901ecbb4817aa8e1a9dff9
i965: Un-hardcode WM binding table from update_texture_surface.

Currently, we mirror the VS and WM binding tables' texture entries.
That may not continue to be true, so in preparation, pass in the binding
table and surface index as arguments.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_context.h