You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
hwcontext_vulkan: fix DMABUF import format check call
VkExternalImageFormatProperties is required to be present in the .pNext chain of VkImageFormatProperties2, or some drivers crash (RADV).
This commit is contained in:
@@ -2329,8 +2329,12 @@ static int vulkan_map_from_drm_frame_desc(AVHWFramesContext *hwfc, AVVkFrame **f
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Image format verification */
|
/* Image format verification */
|
||||||
|
VkExternalImageFormatProperties ext_props = {
|
||||||
|
.sType = VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES_KHR,
|
||||||
|
};
|
||||||
VkImageFormatProperties2 props_ret = {
|
VkImageFormatProperties2 props_ret = {
|
||||||
.sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2,
|
.sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2,
|
||||||
|
.pNext = &ext_props,
|
||||||
};
|
};
|
||||||
VkPhysicalDeviceImageDrmFormatModifierInfoEXT props_drm_mod = {
|
VkPhysicalDeviceImageDrmFormatModifierInfoEXT props_drm_mod = {
|
||||||
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT,
|
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT,
|
||||||
|
Reference in New Issue
Block a user