util/format: Add Y41x formats

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9610>
This commit is contained in:
Ian Romanick 2021-03-10 20:53:46 -08:00 committed by Marge Bot
parent 1358d93650
commit 0820f1f3d0
3 changed files with 11 additions and 0 deletions

View file

@ -470,6 +470,10 @@ enum pipe_format {
PIPE_FORMAT_P012,
PIPE_FORMAT_P016,
PIPE_FORMAT_Y410,
PIPE_FORMAT_Y412,
PIPE_FORMAT_Y416,
PIPE_FORMAT_R10G10B10X2_UNORM,
PIPE_FORMAT_A1R5G5B5_UNORM,
PIPE_FORMAT_A1B5G5R5_UNORM,

View file

@ -414,6 +414,10 @@ PIPE_FORMAT_P010 , planar2, 1, 1, 1, , , , , xy
PIPE_FORMAT_P012 , planar2, 1, 1, 1, , , , , xyzw, yuv
PIPE_FORMAT_P016 , planar2, 1, 1, 1, , , , , xyzw, yuv
PIPE_FORMAT_Y410 , other, 1, 1, 1, un10, un10, un10, un2 , yzxw, yuv
PIPE_FORMAT_Y412 , other, 1, 1, 1, un16, un16, un16, un16, yzxw, yuv
PIPE_FORMAT_Y416 , other, 1, 1, 1, un16, un16, un16, un16, yzxw, yuv
# Usually used to implement IA44 and AI44 formats in video decoding
PIPE_FORMAT_A4R4_UNORM , plain, 1, 1, 1, un4 , un4 , , , y00x, rgb, un4, un4 , , , x00y
PIPE_FORMAT_R4A4_UNORM , plain, 1, 1, 1, un4 , un4 , , , x00y, rgb, un4, un4 , , , y00x

Can't render this file because it contains an unexpected character in line 8 and column 3.

View file

@ -92,6 +92,9 @@ def has_access(format):
'p010',
'p012',
'p016',
'y410',
'y412',
'y416',
'xyuv',
'ayuv',
'r8g8_r8b8_unorm',