i965: Move binding table code to a new file, brw_binding_tables.c.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 13 Sep 2013 22:55:03 +0000 (15:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Sep 2013 17:52:57 +0000 (10:52 -0700)
commitfeaad189b45cafe860b5f23bf534618ff30b5bd2
tree03371c01d88a0b8ab1e7d80c557b229f43464952
parent113a75ff2d5013583bc41f5bd71e24d7897cd459
i965: Move binding table code to a new file, brw_binding_tables.c.

The code to upload the binding tables for each stage was scattered
across brw_{vs,gs,wm}_surface_state.c and brw_misc_state.c, which also
contain a lot of code to populate individual SURFACE_STATE structures.

This patch brings all the binding table upload code together, and splits
it out from the code which fills in SURFACE_STATE entries.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_binding_tables.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/brw_gs_surface_state.c
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c