iris: update depth value for stages after fast clear depth
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Mon, 30 Nov 2020 18:15:10 +0000 (20:15 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Dec 2020 13:37:10 +0000 (13:37 +0000)
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>

src/gallium/drivers/iris/iris_clear.c

index cf7dff7..4844f4e 100644 (file)
@@ -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