summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_allocate.h
diff options
context:
space:
mode:
authorTomeu Vizoso <[email protected]>2019-08-08 07:10:32 +0200
committerTomeu Vizoso <[email protected]>2019-08-08 07:42:52 +0200
commit9398932c2d4cd1dfd337337a82ca8dc9bae35487 (patch)
tree41cf06254936bb24dbe55079af33b6e1aea208eb /src/gallium/drivers/panfrost/pan_allocate.h
parent950b5fc5961f81e466090b5166336510ff416740 (diff)
panfrost: Take into account flags when looking up in the BO cache
This will be useful right now so we avoid retrieving a non-executable buffer when a executable one is needed. As we support more flags, this logic will need to be extended to consider the different trade-offs to be made when matching BO specifications to BOs in the cache. Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_allocate.h')
-rw-r--r--src/gallium/drivers/panfrost/pan_allocate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_allocate.h b/src/gallium/drivers/panfrost/pan_allocate.h
index 8d925ee38a4..0e06567d206 100644
--- a/src/gallium/drivers/panfrost/pan_allocate.h
+++ b/src/gallium/drivers/panfrost/pan_allocate.h
@@ -59,6 +59,8 @@ struct panfrost_bo {
size_t size;
int gem_handle;
+
+ uint32_t flags;
};
struct panfrost_memory {