mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
anv: add video format features for the one supported video output format
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20782>
This commit is contained in:
parent
61618b0569
commit
9361481780
1 changed files with 6 additions and 0 deletions
|
|
@ -550,6 +550,12 @@ anv_get_image_format_features2(const struct intel_device_info *devinfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(aspects & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV);
|
assert(aspects & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV);
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
const struct anv_format_plane plane_format =
|
const struct anv_format_plane plane_format =
|
||||||
anv_get_format_plane(devinfo, vk_format, 0, vk_tiling);
|
anv_get_format_plane(devinfo, vk_format, 0, vk_tiling);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue