diff options
author | Lionel Landwerlin <[email protected]> | 2017-01-17 14:28:20 +0000 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-03-02 10:34:06 +0000 |
commit | c83e33e6ee9f88fcc077e776020f81d84e5ae759 (patch) | |
tree | 85a29a294a493fa09f86ef3457d1514e4c263955 /src/intel | |
parent | 06758c1e8a8963e0894387d2f5ca83d88c9ac86c (diff) |
anv: move buffer_view declaration
We will need this declaration closer for readability later.
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 2527c2cc5a2..a5d012773d7 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -911,6 +911,19 @@ struct anv_descriptor_set { struct anv_descriptor descriptors[0]; }; +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_state surface_state; + struct anv_state storage_surface_state; + struct anv_state writeonly_storage_surface_state; + + struct brw_image_param storage_image_param; +}; + struct anv_descriptor_pool { uint32_t size; uint32_t next; @@ -1731,19 +1744,6 @@ const struct anv_surface * anv_image_get_surface_for_aspect_mask(const struct anv_image *image, VkImageAspectFlags aspect_mask); -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_state surface_state; - struct anv_state storage_surface_state; - struct anv_state writeonly_storage_surface_state; - - struct brw_image_param storage_image_param; -}; - enum isl_format anv_isl_format_for_descriptor_type(VkDescriptorType type); |