i965/blorp/gen7-8: Emit depth stencil state with CC and BLEND
All three go together on SNB so let's keep them together for gen7+ as well. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
38c1909c0a
commit
8b0426ddd4
|
@ -481,6 +481,8 @@ gen7_blorp_exec(struct brw_context *brw,
|
|||
gen7_blorp_emit_blend_state_pointer(brw, cc_blend_state_offset);
|
||||
gen7_blorp_emit_cc_state_pointer(brw, cc_state_offset);
|
||||
}
|
||||
depthstencil_offset = gen6_blorp_emit_depth_stencil_state(brw, params);
|
||||
gen7_blorp_emit_depth_stencil_state_pointers(brw, depthstencil_offset);
|
||||
|
||||
gen7_blorp_disable_constant_state(brw, _3DSTATE_CONSTANT_VS);
|
||||
gen7_blorp_disable_constant_state(brw, _3DSTATE_CONSTANT_HS);
|
||||
|
@ -488,8 +490,6 @@ gen7_blorp_exec(struct brw_context *brw,
|
|||
gen7_blorp_disable_constant_state(brw, _3DSTATE_CONSTANT_GS);
|
||||
gen7_blorp_disable_constant_state(brw, _3DSTATE_CONSTANT_PS);
|
||||
|
||||
depthstencil_offset = gen6_blorp_emit_depth_stencil_state(brw, params);
|
||||
gen7_blorp_emit_depth_stencil_state_pointers(brw, depthstencil_offset);
|
||||
if (brw->use_resource_streamer)
|
||||
gen7_disable_hw_binding_tables(brw);
|
||||
if (params->wm_prog_data) {
|
||||
|
|
|
@ -521,6 +521,8 @@ gen8_blorp_exec(struct brw_context *brw, const struct brw_blorp_params *params)
|
|||
const uint32_t cc_state_offset = gen6_blorp_emit_cc_state(brw);
|
||||
gen7_blorp_emit_cc_state_pointer(brw, cc_state_offset);
|
||||
|
||||
gen8_blorp_emit_depth_stencil_state(brw, params);
|
||||
|
||||
gen8_blorp_disable_constant_state(brw, _3DSTATE_CONSTANT_VS);
|
||||
gen8_blorp_disable_constant_state(brw, _3DSTATE_CONSTANT_HS);
|
||||
gen8_blorp_disable_constant_state(brw, _3DSTATE_CONSTANT_DS);
|
||||
|
@ -560,7 +562,6 @@ gen8_blorp_exec(struct brw_context *brw, const struct brw_blorp_params *params)
|
|||
|
||||
gen8_blorp_emit_ps_config(brw, params);
|
||||
|
||||
gen8_blorp_emit_depth_stencil_state(brw, params);
|
||||
gen8_blorp_emit_wm_state(brw);
|
||||
|
||||
gen8_blorp_emit_depth_disable(brw);
|
||||
|
|
Loading…
Reference in New Issue