vk{decoder,encoder}-private: use API to check device version
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9552>
This commit is contained in:
parent
cb9f1f2b8d
commit
36b8b87b18
@ -1304,7 +1304,8 @@ gst_vulkan_decoder_new_from_queue (GstVulkanQueue * queue, guint codec)
|
||||
g_once_init_leave (&cat_gonce, TRUE);
|
||||
}
|
||||
|
||||
if (device->properties.apiVersion < VK_MAKE_VERSION (1, 3, 275)) {
|
||||
/* XXX: sync with the meson version for vulkan video enabling */
|
||||
if (!gst_vulkan_physical_device_check_api_version (device, 1, 3, 275)) {
|
||||
GST_WARNING_OBJECT (queue,
|
||||
"Driver API version [%d.%d.%d] doesn't support Video extensions",
|
||||
VK_VERSION_MAJOR (device->properties.apiVersion),
|
||||
|
@ -1406,7 +1406,8 @@ gst_vulkan_encoder_create_from_queue (GstVulkanQueue * queue, guint codec)
|
||||
g_once_init_leave (&cat_gonce, TRUE);
|
||||
}
|
||||
|
||||
if (device->properties.apiVersion < VK_MAKE_VERSION (1, 3, 275)) {
|
||||
/* XXX: sync with the meson version for vulkan video enabling */
|
||||
if (!gst_vulkan_physical_device_check_api_version (device, 1, 3, 275)) {
|
||||
GST_WARNING_OBJECT (queue,
|
||||
"API version %d.%d.%d doesn't support video encode extensions",
|
||||
VK_VERSION_MAJOR (device->properties.apiVersion),
|
||||
|
Loading…
x
Reference in New Issue
Block a user