summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2016-07-12 15:13:16 -0700
committerNanley Chery <nanley.g.chery@intel.com>2016-07-15 14:54:21 -0700
commit0f9824eb0a3407bd6c946133df569def08c3d074 (patch)
treea7d4b8f6e182f70ad1bf031a9a08577616c3ab10
parent60f03520dfc6e9b7cbf3baa1aa4589b58ccc480a (diff)
func.desc.dynamic: Create the buffer with correct usage flags
The buffer has two usages in each test variant. Create it with usage flags equal to the union of both usage sets. This field is required to be non-zero. Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
-rw-r--r--src/tests/func/desc/dynamic.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/func/desc/dynamic.c b/src/tests/func/desc/dynamic.c
index 9cf69ed..bb17fab 100644
--- a/src/tests/func/desc/dynamic.c
+++ b/src/tests/func/desc/dynamic.c
@@ -177,7 +177,11 @@ test(void)
.descriptorPool = t_descriptor_pool,
.pSetLayouts = &set_layout);
- VkBuffer buffer = qoCreateBuffer(t_device, .size = 4096);
+ VkBuffer buffer = qoCreateBuffer(t_device,
+ .usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT |
+ VK_BUFFER_USAGE_VERTEX_BUFFER_BIT |
+ VK_BUFFER_USAGE_STORAGE_BUFFER_BIT,
+ .size = 4096);
VkDeviceMemory mem = qoAllocBufferMemory(t_device, buffer,
.memoryTypeIndex = t_mem_type_index_for_mmap);