Mesa (master): iris: update depth value for stages after fast clear depth

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 9 13:45:28 UTC 2020


Module: Mesa
Branch: master
Commit: bdd09066fa5f022daa0428325a04a52d66b5e41b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdd09066fa5f022daa0428325a04a52d66b5e41b

Author: Andrii Simiklit <andrii.simiklit at globallogic.com>
Date:   Mon Nov 30 20:15:10 2020 +0200

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 at intel.com>
Signed-off-by: Andrii Simiklit <andrii.simiklit at globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7838>

---

 src/gallium/drivers/iris/iris_clear.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c
index cf7dff74aa8..4844f4e2e52 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



More information about the mesa-commit mailing list