mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
anv: don't emit 3DSTATE_DEPTH_BOUNDS in pipeline batch
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16220>
This commit is contained in:
parent
76e735d09c
commit
48229d11ba
2 changed files with 1 additions and 13 deletions
|
|
@ -1258,17 +1258,6 @@ emit_ds_state(struct anv_graphics_pipeline *pipeline,
|
||||||
#else
|
#else
|
||||||
GENX(3DSTATE_WM_DEPTH_STENCIL_pack)(NULL, depth_stencil_dw, &depth_stencil);
|
GENX(3DSTATE_WM_DEPTH_STENCIL_pack)(NULL, depth_stencil_dw, &depth_stencil);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GFX_VER >= 12
|
|
||||||
if ((dynamic_states & (ANV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS |
|
|
||||||
ANV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS_TEST_ENABLE)) == 0) {
|
|
||||||
anv_batch_emit(&pipeline->base.batch, GENX(3DSTATE_DEPTH_BOUNDS), db) {
|
|
||||||
db.DepthBoundsTestEnable = pCreateInfo->depthBoundsTestEnable;
|
|
||||||
db.DepthBoundsTestMinValue = pCreateInfo->minDepthBounds;
|
|
||||||
db.DepthBoundsTestMaxValue = pCreateInfo->maxDepthBounds;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
|
||||||
|
|
@ -560,8 +560,7 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GFX_VER >= 12
|
#if GFX_VER >= 12
|
||||||
if(cmd_buffer->state.gfx.dirty & (ANV_CMD_DIRTY_PIPELINE |
|
if(cmd_buffer->state.gfx.dirty & (ANV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS |
|
||||||
ANV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS |
|
|
||||||
ANV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS_TEST_ENABLE)) {
|
ANV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS_TEST_ENABLE)) {
|
||||||
anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_DEPTH_BOUNDS), db) {
|
anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_DEPTH_BOUNDS), db) {
|
||||||
db.DepthBoundsTestEnable = d->depth_bounds_test_enable;
|
db.DepthBoundsTestEnable = d->depth_bounds_test_enable;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue