aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorRafael Antognolli <[email protected]>2018-11-21 11:36:49 -0800
committerRafael Antognolli <[email protected]>2019-01-17 15:08:02 -0800
commite3dc56d7311c82d6dbda7948f9ca4345d44f8bdb (patch)
treeed5e3729b7f1f0af2e5712a0a5d2c65421e916fb /src/intel/vulkan/anv_private.h
parentfc3f58832015cbb177179e7f3420d3611479b4a9 (diff)
anv: Update usage of block_pool->bo.
Change block_pool->bo to be a pointer, and update its usage everywhere. This makes it simpler to switch it later to a list of BOs. v3: - Use a static "bos" field in the struct, instead of malloc'ing it. This will be later changed to a fixed length array of BOs. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 9df5f875949..57a1afc6bd6 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -633,7 +633,10 @@ struct anv_block_pool {
uint64_t bo_flags;
- struct anv_bo bo;
+ struct anv_bo *bo;
+
+ /* A single BO for now */
+ struct anv_bo bos;
/* The address where the start of the pool is pinned. The various bos that
* are created as the pool grows will have addresses in the range