mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 12:00:41 +02:00
venus: filter out vulkan video feature bits on common video formats
Tested with ANV_DEBUG=video-decode,video-encode: - dEQP-VK.api.info.format_properties.* Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35842>
This commit is contained in:
parent
71397a8162
commit
09eda329a2
1 changed files with 9 additions and 2 deletions
|
|
@ -2162,14 +2162,21 @@ vn_sanitize_format_properties(VkFormat format,
|
|||
VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT |
|
||||
VK_FORMAT_FEATURE_DISJOINT_BIT;
|
||||
|
||||
/* TODO drop this after supporting VK_EXT_rgba10x6_formats */
|
||||
if (format == VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16) {
|
||||
/* TODO drop rgba10x6 after supporting VK_EXT_rgba10x6_formats */
|
||||
switch (format) {
|
||||
case VK_FORMAT_G8_B8R8_2PLANE_420_UNORM:
|
||||
case VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16:
|
||||
case VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16:
|
||||
case VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16:
|
||||
props->linearTilingFeatures &= allowed_ycbcr_feats;
|
||||
props->optimalTilingFeatures &= allowed_ycbcr_feats;
|
||||
if (props3) {
|
||||
props3->linearTilingFeatures &= allowed_ycbcr_feats;
|
||||
props3->optimalTilingFeatures &= allowed_ycbcr_feats;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue