From 5478d3990046708f8000d0512f68de26df473ccd Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 16 May 2019 19:35:11 +1000 Subject: [PATCH] vkbuffermemory: bufferview's are only for texture-like memory --- gst-libs/gst/vulkan/gstvkbuffermemory.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/gst-libs/gst/vulkan/gstvkbuffermemory.c b/gst-libs/gst/vulkan/gstvkbuffermemory.c index c1f9c6668f..89acdf2cd2 100644 --- a/gst-libs/gst/vulkan/gstvkbuffermemory.c +++ b/gst-libs/gst/vulkan/gstvkbuffermemory.c @@ -163,12 +163,7 @@ _vk_buffer_mem_new_alloc (GstAllocator * allocator, GstMemory * parent, goto vk_error; if (usage & (VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT | - VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT | - VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT | - VK_BUFFER_USAGE_STORAGE_BUFFER_BIT | - VK_BUFFER_USAGE_INDEX_BUFFER_BIT | - VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | - VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT)) { + VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT)) { VkBufferViewCreateInfo view_info; _create_view_from_args (&view_info, mem->buffer, format, 0, @@ -220,12 +215,7 @@ _vk_buffer_mem_new_wrapped (GstAllocator * allocator, GstMemory * parent, /* XXX: we don't actually if the buffer has a vkDeviceMemory bound so * this may fail */ if (usage & (VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT | - VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT | - VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT | - VK_BUFFER_USAGE_STORAGE_BUFFER_BIT | - VK_BUFFER_USAGE_INDEX_BUFFER_BIT | - VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | - VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT)) { + VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT)) { VkBufferViewCreateInfo view_info; _create_view_from_args (&view_info, mem->buffer, format, 0,