i965: Convert CC state on gen4-5 to genxml.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 1 Jun 2017 19:28:41 +0000 (12:28 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 13 Jul 2017 22:39:49 +0000 (15:39 -0700)
commit5d48710981feeaa1b4919195f97a00c4daa9c992
tree6c5c5d2096f516afffed6378e59fc41dd81b2552
parentb0052aa46fd7ffd6e96803214fc71bb119c83ae6
i965: Convert CC state on gen4-5 to genxml.

Use set_blend_entry_bits and set_depth_stencil_bits to fill most of the
color calc struct, and then manually update the rest.

v2:
   - Always check for depth_irb (Ken)
   - Always set Backface Stencil Ref (Ken)
   - Always set alpha reference value (Ken)

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