diff options
author | Jason Ekstrand <[email protected]> | 2015-12-12 16:11:23 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-12-12 16:11:23 -0800 |
commit | c56186026fce7a28db2fe7cabf58a11328877123 (patch) | |
tree | 126126ebfb54e697a4fa0d16dd26598a2fdfd9a1 /src/vulkan/anv_private.h | |
parent | fd944197f27ff428f2599eb03bc0c4085c9fbc6a (diff) |
anv: Add initial support for texel buffers
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index a180b9c69c3..3b5a4be8355 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -851,6 +851,8 @@ struct anv_descriptor { struct anv_sampler *sampler; }; + struct anv_buffer_view *buffer_view; + struct { struct anv_buffer *buffer; uint64_t offset; @@ -1516,6 +1518,11 @@ gen9_image_view_init(struct anv_image_view *iview, const VkImageViewCreateInfo* pCreateInfo, struct anv_cmd_buffer *cmd_buffer); +struct anv_buffer_view { + struct anv_buffer *buffer; + struct anv_state surface_state; +}; + void anv_fill_buffer_surface_state(struct anv_device *device, void *state, const struct anv_format *format, uint32_t offset, uint32_t range, @@ -1636,6 +1643,7 @@ ANV_DEFINE_HANDLE_CASTS(anv_queue, VkQueue) ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_cmd_pool, VkCommandPool) ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_buffer, VkBuffer) +ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_buffer_view, VkBufferView) ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_descriptor_set, VkDescriptorSet) ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_descriptor_set_layout, VkDescriptorSetLayout) ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_device_memory, VkDeviceMemory) |