panfrost: Add separate_stencil BO to batch
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 21 May 2020 20:35:48 +0000 (16:35 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Jun 2020 15:46:24 +0000 (15:46 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5265>

src/gallium/drivers/panfrost/pan_job.c

index e79605b4f267d30bcd899ff2c2369fd1a462b8a1..3846417dfe2485a3b3a4c8c9b83854cf9ec1d18e 100644 (file)
@@ -597,6 +597,9 @@ panfrost_batch_add_resource_bos(struct panfrost_batch *batch,
         for (unsigned i = 0; i < MAX_MIP_LEVELS; i++)
                 if (rsrc->slices[i].checksum_bo)
                         panfrost_batch_add_bo(batch, rsrc->slices[i].checksum_bo, flags);
+
+        if (rsrc->separate_stencil)
+                panfrost_batch_add_bo(batch, rsrc->separate_stencil->bo, flags);
 }
 
 void panfrost_batch_add_fbo_bos(struct panfrost_batch *batch)