summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-02-14 01:05:57 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:12 -0800
commitd6dd57d43cd019fb2ffd23f686307b1e6d02a0ef (patch)
treeaab042c143fe1e5c1c69d48e6f0b17618896c7de /src
parent1b5c342f33d3c2d71ac754f66268b2915d2a49d1 (diff)
iris: Add missing depth cache flushes
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_state.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index bc9071d86f0..95c05f77757 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -3926,10 +3926,15 @@ iris_restore_render_saved_bos(struct iris_context *ice,
iris_get_depth_stencil_resources(cso_fb->zsbuf->texture,
&zres, &sres);
if (zres) {
+ iris_cache_flush_for_depth(batch, zres->bo);
+
iris_use_pinned_bo(batch, zres->bo,
ice->state.depth_writes_enabled);
}
+
if (sres) {
+ iris_cache_flush_for_depth(batch, sres->bo);
+
iris_use_pinned_bo(batch, sres->bo,
ice->state.stencil_writes_enabled);
}