mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 10:58:03 +03:00
hasvk: add video format features for the one supported video output format
This commit is contained in:
1 parent
587311f645
commit
40260e83cb
1 file changed
+5
@@ -590,6 +590,11 @@ anv_get_image_format_features2(const struct intel_device_info *devinfo,
|
||||
return flags;
|
||||
}
|
||||
|
||||
if (vk_format == VK_FORMAT_G8_B8R8_2PLANE_420_UNORM) {
|
||||
flags |= VK_FORMAT_FEATURE_2_VIDEO_DECODE_OUTPUT_BIT_KHR |
|
||||
VK_FORMAT_FEATURE_2_VIDEO_DECODE_DPB_BIT_KHR;
|
||||
}
|
||||
|
||||
assert(aspects & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV);
|
||||
const struct anv_format_plane plane_format =
|
||||
anv_get_format_plane(devinfo, vk_format, 0, vk_tiling);
|
||||
|
||||
Reference in new issue
Block a user