vulkan/physical-device: don't assume that queue_family_ops is filled

On old enough vulkan (< 1.2), we will never retrieve the family operations and
will perform a NULL pointer dereference when dumping the queue family op
properties.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5547>
This commit is contained in:
Matthew Waters 2023-10-25 16:07:26 +11:00
parent 65365caa21
commit 48ab457d79

View file

@ -565,7 +565,7 @@ dump_queue_properties (GstVulkanPhysicalDevice * device, GError ** error)
" timestamp bits and a minimum image transfer granuality of %"
GST_VULKAN_EXTENT3D_FORMAT, i, device->queue_family_props[i].queueCount,
device->queue_family_props[i].queueFlags, queue_flags_str,
device->queue_family_ops[i].video,
device->queue_family_ops ? device->queue_family_ops[i].video : 0,
device->queue_family_props[i].timestampValidBits,
GST_VULKAN_EXTENT3D_ARGS (device->
queue_family_props[i].minImageTransferGranularity));