aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_job.h
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-09-14 18:40:23 +0200
committerBoris Brezillon <[email protected]>2019-09-18 10:37:56 +0200
commit0eec73a800fb87b691df21ba9482db1317c744d3 (patch)
treecf80afef680e6a8c8a1084058f223e52ccf9a892 /src/gallium/drivers/panfrost/pan_job.h
parent5a4d095f9b58e127c2eae9aa64595afeb36b554d (diff)
panfrost: Add FBO BOs to batch->bos earlier
If we want the batch dependency tracking to work correctly we must make sure all BOs are added to the batch->bos set early enough. Adding FBO BOs when generating the fragment job is clearly to late. Add a panfrost_batch_add_fbo_bos helper and call it in the clear/draw path. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_job.h')
-rw-r--r--src/gallium/drivers/panfrost/pan_job.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h
index b1351b902bd..3474a102f5a 100644
--- a/src/gallium/drivers/panfrost/pan_job.h
+++ b/src/gallium/drivers/panfrost/pan_job.h
@@ -124,6 +124,8 @@ panfrost_batch_init(struct panfrost_context *ctx);
void
panfrost_batch_add_bo(struct panfrost_batch *batch, struct panfrost_bo *bo);
+void panfrost_batch_add_fbo_bos(struct panfrost_batch *batch);
+
struct panfrost_bo *
panfrost_batch_create_bo(struct panfrost_batch *batch, size_t size,
uint32_t create_flags);