[Piglit] [PATCH 4/8] cru/func.desc.dynamic: Create the buffer with correct usage flags
Nanley Chery
nanleychery at gmail.com
Wed Jul 13 19:58:12 UTC 2016
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 at intel.com>
---
src/tests/func/desc/dynamic.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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);
--
2.9.0
More information about the Piglit
mailing list