test: vkimagebufferpool: silence validation
The validation complained with VUID-VkImageCreateInfo-usage-requiredbitmask]: vkCreateImage(): pCreateInfo->usage is zero. This patch force to use the internal defaults in vkimagebufferpool if no usage is defined. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9544>
This commit is contained in:
parent
9be96a7a88
commit
ad03600a0c
@ -82,9 +82,11 @@ create_buffer_pool (const char *format, VkImageUsageFlags usage,
|
||||
gst_buffer_pool_config_set_params (config, caps, 1024, 1, 0);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_vulkan_image_buffer_pool_config_set_allocation_params (config,
|
||||
usage, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, initial_layout,
|
||||
initial_access);
|
||||
if (usage != 0) {
|
||||
gst_vulkan_image_buffer_pool_config_set_allocation_params (config,
|
||||
usage, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, initial_layout,
|
||||
initial_access);
|
||||
}
|
||||
|
||||
if (dec_caps)
|
||||
gst_vulkan_image_buffer_pool_config_set_decode_caps (config, dec_caps);
|
||||
|
Loading…
x
Reference in New Issue
Block a user