vulkan/format: correct fallback features in from_video_info_2

The features were not actually used and were written into a boolean
value.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5576>
This commit is contained in:
Matthew Waters 2023-10-30 14:59:33 +11:00 committed by GStreamer Marge Bot
parent f368d63ecd
commit 080b25cbfe

View file

@ -645,9 +645,10 @@ gst_vulkan_format_from_video_info_2 (GstVulkanPhysicalDevice * physical_device,
/* XXX: VkFormatFeatureFlagBits and VkFormatFeatureFlagBits2 are the same /* XXX: VkFormatFeatureFlagBits and VkFormatFeatureFlagBits2 are the same
* values for basic_flags' symbols and they are defined in * values for basic_flags' symbols and they are defined in
* VK_VERSION_1_0 */ * VK_VERSION_1_0 */
basics_primary = basics_secondary = VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT feats_primary = feats_secondary = VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT
| VK_FORMAT_FEATURE_TRANSFER_SRC_BIT | VK_FORMAT_FEATURE_TRANSFER_SRC_BIT
| VK_FORMAT_FEATURE_TRANSFER_DST_BIT; | VK_FORMAT_FEATURE_TRANSFER_DST_BIT;
basics_primary = basics_secondary = TRUE;
} }
if (GST_VIDEO_INFO_IS_RGB (info)) { if (GST_VIDEO_INFO_IS_RGB (info)) {