vkmemory: avoid the property flag check

During the video session memory allocation, the property flags can
be different from the expected ones, so do not expect all the
property flags and test it with G_MAXUINT32

It's failing with driver 525.47.26 and NVidia HW NVIDIA GeForce
RTX 3050 and 2060

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4850>
This commit is contained in:
Stéphane Cerveau 2023-06-16 16:31:36 +02:00 committed by GStreamer Marge Bot
parent e235599fe9
commit d52d50570e

View file

@ -262,7 +262,8 @@ gst_vulkan_memory_find_memory_type_index_with_requirements (GstVulkanDevice *
for (i = 0; i < props->memoryTypeCount; i++) { for (i = 0; i < props->memoryTypeCount; i++) {
if (!(req->memoryTypeBits & (1 << i))) if (!(req->memoryTypeBits & (1 << i)))
continue; continue;
if ((props->memoryTypes[i].propertyFlags & properties) != properties) if ((properties != G_MAXUINT32)
&& (props->memoryTypes[i].propertyFlags & properties) != properties)
continue; continue;
if (req->size > props->memoryHeaps[props->memoryTypes[i].heapIndex].size) if (req->size > props->memoryHeaps[props->memoryTypes[i].heapIndex].size)
continue; continue;