diff options
author | Lionel Landwerlin <[email protected]> | 2020-02-21 17:36:36 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-20 15:58:22 +0000 |
commit | 33b452aae72a185c877d6f9cd806d8ffa20d13e2 (patch) | |
tree | 1eaecd971880e1a046ef1c724abd0af89379071c /src/intel/vulkan/anv_private.h | |
parent | 0ff5b9e6923d2083da6c97b6569e50dad78a72eb (diff) |
anv: store the workaround address
This will allow to select a different address later, leaving the
beginning of the buffer to some other use.
Signed-off-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3203>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index fa44307457b..7e9270d62f3 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1297,6 +1297,11 @@ anv_device_upload_nir(struct anv_device *device, const struct nir_shader *nir, unsigned char sha1_key[20]); +struct anv_address { + struct anv_bo *bo; + uint32_t offset; +}; + struct anv_device { struct vk_device vk; @@ -1340,6 +1345,8 @@ struct anv_device { * For that, we use the high bytes (>= 1024) of the workaround BO. */ struct anv_bo * workaround_bo; + struct anv_address workaround_address; + struct anv_bo * trivial_batch_bo; struct anv_bo * hiz_clear_bo; struct anv_state null_surface_state; @@ -1602,11 +1609,6 @@ struct anv_batch_bo { struct anv_reloc_list relocs; }; -struct anv_address { - struct anv_bo *bo; - uint32_t offset; -}; - struct anv_batch { const VkAllocationCallbacks * alloc; |