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 <[email protected]> --- 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 _______________________________________________ Piglit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/piglit
