summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_screen.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-11 10:34:40 -0700
committerAlyssa Rosenzweig <[email protected]>2019-07-12 15:31:47 -0700
commit330cd057adb04a7e579e8e9ba7e3952b448928a8 (patch)
tree0a3c664e3df97ed50626f1a689003511d427cd38 /src/gallium/drivers/panfrost/pan_screen.c
parent718ebfa2259cb50efc05541af205842b6630cf43 (diff)
panfrost: Add panfrost_transient_bo array
We would like transient allocations to occur on the screen (borrowed by the batch) rather than on the context. Add fields to track this. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.c')
-rw-r--r--src/gallium/drivers/panfrost/pan_screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index cfcee5743b9..599ef8a82e7 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -529,6 +529,8 @@ panfrost_create_screen(int fd, struct renderonly *ro)
return NULL;
}
+ util_dynarray_init(&screen->transient_bo, screen);
+
if (pan_debug & PAN_DBG_TRACE)
pandecode_initialize();