anv: Add format conversion for AHARDWAREBUFFER_FORMAT_YCbCr_P010

Reviewed-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35161>
This commit is contained in:
Lucas Fryzek
2025-05-26 08:06:20 -04:00
committed by Marge Bot
parent 03fc7d6a6d
commit 49f5cc48cf
2 changed files with 10 additions and 0 deletions

View File

@@ -159,6 +159,14 @@ enum AHardwareBuffer_Format {
*/
AHARDWAREBUFFER_FORMAT_Y8Cb8Cr8_420 = 0x23,
/**
* YUV P010 format.
* Must have an even width and height. Can be accessed in OpenGL
* shaders through an external sampler. Does not support mip-maps
* cube-maps or multi-layered textures.
*/
AHARDWAREBUFFER_FORMAT_YCbCr_P010 = 0x36,
/**
* Corresponding formats:
* Vulkan: VK_FORMAT_R8_UNORM