iris: Add missing depth cache flushes
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Feb 2019 09:05:57 +0000 (01:05 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:12 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index bc9071d86f03e7b0663c7ab1b5d6561d527dbd9f..95c05f77757c0ed5949a86176a4b5c3ea5dcf574 100644 (file)
@@ -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);
          }