From d6dd57d43cd019fb2ffd23f686307b1e6d02a0ef Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 14 Feb 2019 01:05:57 -0800 Subject: [PATCH] iris: Add missing depth cache flushes --- src/gallium/drivers/iris/iris_state.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.30.2