i965: Port push constant code to genxml.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 5 Apr 2017 23:22:43 +0000 (16:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 May 2017 03:38:20 +0000 (20:38 -0700)
commit46d8f9454f8bdd469f389b78ce3cb8ef35b7fd68
treef7b0f3a5c9b99f618083bae567d78faba5e3b86b
parentd729936c5e6466d5ec336a446f06d9f65bd5cc43
i965: Port push constant code to genxml.

The following states are ported on this patch:
   - gen6_gs_push_constants
   - gen6_vs_push_constants
   - gen6_wm_push_constants
   - gen7_tes_push_constants

v2:
   - Use helper to setup brw_address (Kristian)
v3:
   - Do not use macro for upload_constant_state (Ken)
   - Do not re-declare MOCS macro (Ken)
v4: (by Ken)
   - Drop more dead code, change brw->gen checks to GEN_GEN, style nits

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen6_constant_state.c
src/mesa/drivers/dri/i965/gen6_gs_state.c
src/mesa/drivers/dri/i965/gen6_vs_state.c [deleted file]
src/mesa/drivers/dri/i965/gen6_wm_state.c [deleted file]
src/mesa/drivers/dri/i965/gen7_ds_state.c [deleted file]
src/mesa/drivers/dri/i965/gen7_hs_state.c [deleted file]
src/mesa/drivers/dri/i965/genX_state_upload.c