summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii Simiklit <andrii.simiklit@globallogic.com>2020-11-30 20:15:10 +0200
committerDylan Baker <dylan.c.baker@intel.com>2020-12-09 19:08:05 -0800
commitc8162aa73aa838b6f7b616e8ede0ed79decf6873 (patch)
tree819c1bada48ad25239cd4fde44ffcb889977acdf
parent7665dc409c1f77c60b45ea4a95a51926fc44134f (diff)
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 <mesa-stable> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7838> (cherry picked from commit bdd09066fa5f022daa0428325a04a52d66b5e41b)
-rw-r--r--.pick_status.json2
-rw-r--r--src/gallium/drivers/iris/iris_clear.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/.pick_status.json b/.pick_status.json
index f7369695de0..690ffd76ee1 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 90e52e9ef58..4e2f0f945f2 100644
--- a/src/gallium/drivers/iris/iris_clear.c
+++ b/src/gallium/drivers/iris/iris_clear.c
@@ -533,6 +533,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