i965: Port gen6+ 3DSTATE_SF to genxml.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 17 Mar 2017 17:23:45 +0000 (10:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 May 2017 01:57:51 +0000 (18:57 -0700)
commit9f12d9166bedbe281e6cd866a903f8bdcc472c12
treed7db98ad51a63341c5080e8d48f1aae3740743af
parente00d159f4d3da318d887e6057bab7c6b418e0080
i965: Port gen6+ 3DSTATE_SF to genxml.

Emit sf state on Gen6+ using brw_batch_emit helper, using pack structs
from genxml.

v3:
   - Reorganize code and reduce #if/#endif's (Ken)
   - Style fixes (Ken)
   - Always set AALINEDISTANCE_TRUE (Ken)

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen6_sf_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c
src/mesa/drivers/dri/i965/gen8_sf_state.c
src/mesa/drivers/dri/i965/genX_state_upload.c