From c86552291247f00f85654b7bc0d0bdd1edd13c86 Mon Sep 17 00:00:00 2001 From: Andrii Simiklit Date: Mon, 30 Nov 2020 20:15:10 +0200 Subject: [PATCH] iris: update depth value for stages after fast clear depth This should fix an outdated depth value visible from the shader side. v1: (Nanley Chery) - fix commit message v2: (Nanley Chery) - replace `fixes` tag by `mesa-stable` Closes: #3883 Cc: 20.3 20.2 Reviewed-by: Nanley Chery Signed-off-by: Andrii Simiklit Part-of: (cherry picked from commit bdd09066fa5f022daa0428325a04a52d66b5e41b) --- .pick_status.json | 2 +- src/gallium/drivers/iris/iris_clear.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 3df09aeeb7f..e363361aa5f 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -481,7 +481,7 @@ "description": "iris: update depth value for stages after fast clear depth", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c index 9be44e460a0..ff91030241e 100644 --- a/src/gallium/drivers/iris/iris_clear.c +++ b/src/gallium/drivers/iris/iris_clear.c @@ -545,6 +545,7 @@ fast_clear_depth(struct iris_context *ice, iris_resource_set_aux_state(ice, res, level, box->z, box->depth, ISL_AUX_STATE_CLEAR); ice->state.dirty |= IRIS_DIRTY_DEPTH_BUFFER; + ice->state.stage_dirty |= IRIS_ALL_STAGE_DIRTY_BINDINGS; } static void