i965: Convert WM_STATE to genxml on gen4-5.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 21 Jun 2017 18:13:48 +0000 (11:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Jul 2017 22:45:26 +0000 (15:45 -0700)
commitd883ec0400cca2bc40ee9da59d7dbd561bbb3913
treec7a6ceb5b8529fafef44e89f0ddf368df045cd24
parente490382326fece5bf93c05a468c5ff1737d7f083
i965: Convert WM_STATE to genxml on gen4-5.

The code doesn't get exactly a lot simpler but at least it is in a single
place, and we delete more than we add.

Another good point is that you get rid of struct brw_wm_unit_state
which was a third mechanism for encoding GEN state. We used to have
GENXML, manual packing and these bitfield structs. Now we're down to
just GENXML and some manual packing. (Khristian)

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/brw_structs.h
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/drivers/dri/i965/brw_wm_state.c [deleted file]
src/mesa/drivers/dri/i965/genX_state_upload.c