diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-12 15:50:58 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-15 08:03:34 -0700 |
commit | c6b59db5b43fd78beb3b371a7db6738acc2bcddd (patch) | |
tree | 25b2b952d0b2b80c5e621b3aecfde445cc1c33f8 /src/gallium/drivers/panfrost/pan_screen.h | |
parent | bd4986bafaf97c9b7cbef9033b4a5c5b6ddc898d (diff) |
panfrost: Delay resource mmaps
We use the new PAN_ALLOCATE_DELAY_MMAP flag to only map resources
on-demand, which should avoid mapping FBOs.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.h')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.h b/src/gallium/drivers/panfrost/pan_screen.h index 026a23b4541..8a01baabaf4 100644 --- a/src/gallium/drivers/panfrost/pan_screen.h +++ b/src/gallium/drivers/panfrost/pan_screen.h @@ -135,6 +135,8 @@ struct panfrost_bo * panfrost_drm_create_bo(struct panfrost_screen *screen, size_t size, uint32_t flags); void +panfrost_drm_mmap_bo(struct panfrost_screen *screen, struct panfrost_bo *bo); +void panfrost_drm_release_bo(struct panfrost_screen *screen, struct panfrost_bo *bo); struct panfrost_bo * panfrost_drm_import_bo(struct panfrost_screen *screen, int fd); |