diff options
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 5 |
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); } |