i965: Make a helper function for depth/stencil related state.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 8 May 2017 23:30:58 +0000 (16:30 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 13 Jul 2017 22:39:49 +0000 (15:39 -0700)
commite84cb56f483d5470d0ac350c146c8387622362b5
treeecf6d7d683d07220ed29c88ffd2a085b7e11fa78
parent6131a1ae40d2f24df71c5c701d7cbd1286114998
i965: Make a helper function for depth/stencil related state.

Gen4-5 basically glue DEPTH_STENCIL_STATE, COLOR_CALC_STATE, and
BLEND_STATE together into a single COLOR_CALC_STATE structure.

By making a helper function, we'll be able to reuse it when filling
out Gen4-5 COLOR_CALC_STATE without replicating any actual logic.

We use generation-defined typedef to handle the polymorphism.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/mesa/drivers/dri/i965/genX_state_upload.c