summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-10-07 16:58:34 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-10-14 15:39:41 -0700
commitf180faab79edc713a203cf5596257613b81741b3 (patch)
tree7fa1cf0ee5e99a95785a7ca6f7afc021c5832a58 /src
parentc1fcf1a957430cc794ab55a7edea046df2a60517 (diff)
downloadexternal_mesa3d-f180faab79edc713a203cf5596257613b81741b3.tar.gz
external_mesa3d-f180faab79edc713a203cf5596257613b81741b3.tar.bz2
external_mesa3d-f180faab79edc713a203cf5596257613b81741b3.zip
intel/blorp: Move CLEAR_PARAMS setup into emit_depth_stencil_config
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/intel/blorp/blorp_genX_exec.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h
index b1af064ad0..ebad253515 100644
--- a/src/intel/blorp/blorp_genX_exec.h
+++ b/src/intel/blorp/blorp_genX_exec.h
@@ -779,6 +779,17 @@ blorp_emit_depth_stencil_config(struct blorp_batch *batch,
}
blorp_emit(batch, GENX(3DSTATE_STENCIL_BUFFER), sb);
+
+ /* 3DSTATE_CLEAR_PARAMS
+ *
+ * From the Sandybridge PRM, Volume 2, Part 1, Section 3DSTATE_CLEAR_PARAMS:
+ * [DevSNB] 3DSTATE_CLEAR_PARAMS packet must follow the DEPTH_BUFFER_STATE
+ * packet when HiZ is enabled and the DEPTH_BUFFER_STATE changes.
+ */
+ blorp_emit(batch, GENX(3DSTATE_CLEAR_PARAMS), clear) {
+ clear.DepthClearValueValid = true;
+ clear.DepthClearValue = params->depth.clear_color.u32[0];
+ }
}
static uint32_t
@@ -1206,17 +1217,7 @@ blorp_exec(struct blorp_batch *batch, const struct blorp_params *params)
}
blorp_emit(batch, GENX(3DSTATE_HIER_DEPTH_BUFFER), hiz);
blorp_emit(batch, GENX(3DSTATE_STENCIL_BUFFER), sb);
- }
-
- /* 3DSTATE_CLEAR_PARAMS
- *
- * From the Sandybridge PRM, Volume 2, Part 1, Section 3DSTATE_CLEAR_PARAMS:
- * [DevSNB] 3DSTATE_CLEAR_PARAMS packet must follow the DEPTH_BUFFER_STATE
- * packet when HiZ is enabled and the DEPTH_BUFFER_STATE changes.
- */
- blorp_emit(batch, GENX(3DSTATE_CLEAR_PARAMS), clear) {
- clear.DepthClearValueValid = true;
- clear.DepthClearValue = params->depth.clear_color.u32[0];
+ blorp_emit(batch, GENX(3DSTATE_CLEAR_PARAMS), clear);
}
blorp_emit(batch, GENX(3DPRIMITIVE), prim) {