diff options
author | Jason Ekstrand <[email protected]> | 2018-05-30 17:36:49 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-05-31 16:51:46 -0700 |
commit | 1029458ee32dfada4431e67a17922e1602aba6a7 (patch) | |
tree | 7174f4ed0f139af3aa7c8db5c2a40c83a439e0fc /src/intel/vulkan/anv_private.h | |
parent | de1c5c1b503fb190e5d169654ce207777e699195 (diff) |
anv: Use an anv_address in anv_buffer_view
Instead of storing a BO and offset separately, use an anv_address. This
changes anv_fill_buffer_surface_state to use anv_address and we now call
anv_address_physical and pass that into ISL.
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index a18a1d1bede..95d3e4d0936 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1388,10 +1388,10 @@ struct anv_descriptor_set { struct anv_buffer_view { enum isl_format format; /**< VkBufferViewCreateInfo::format */ - struct anv_bo *bo; - uint32_t offset; /**< Offset into bo. */ uint64_t range; /**< VkBufferViewCreateInfo::range */ + struct anv_address address; + struct anv_state surface_state; struct anv_state storage_surface_state; struct anv_state writeonly_storage_surface_state; @@ -2993,8 +2993,8 @@ anv_sanitize_image_offset(const VkImageType imageType, void anv_fill_buffer_surface_state(struct anv_device *device, struct anv_state state, enum isl_format format, - uint32_t offset, uint32_t range, - uint32_t stride); + struct anv_address address, + uint32_t range, uint32_t stride); static inline void anv_clear_color_from_att_state(union isl_color_value *clear_color, |