From: Kenneth Graunke Date: Thu, 14 Feb 2019 09:05:57 +0000 (-0800) Subject: iris: Add missing depth cache flushes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6dd57d43cd019fb2ffd23f686307b1e6d02a0ef;p=mesa.git iris: Add missing depth cache flushes --- 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); }