mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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:
parent
e235599fe9
commit
d52d50570e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue