Module: Mesa Branch: main Commit: 24c09d4b1672384bae234990adadddb6de5b62b6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=24c09d4b1672384bae234990adadddb6de5b62b6
Author: Dave Airlie <[email protected]> Date: Wed Feb 22 13:35:42 2023 +1000 radv: add video format support to format probing. Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21457> --- src/amd/vulkan/radv_formats.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index a48733ed83d..e6fb0266e39 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -708,6 +708,12 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical tiling |= VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT; } + if (physical_device->instance->perftest_flags & RADV_PERFTEST_VIDEO_DECODE) { + if (format == VK_FORMAT_G8_B8R8_2PLANE_420_UNORM || + format == VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16) + tiling |= VK_FORMAT_FEATURE_2_VIDEO_DECODE_OUTPUT_BIT_KHR | VK_FORMAT_FEATURE_2_VIDEO_DECODE_DPB_BIT_KHR; + } + if (multiplanar) tiling |= VK_FORMAT_FEATURE_2_DISJOINT_BIT;
