util/format: add planar3 r8_g8_b8_unorm pipe format
add pipe format to represent three plane 8bit RGB format Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22388>
This commit is contained in:
committed by
Marge Bot
parent
33886e5ef2
commit
23580b09a3
@@ -404,6 +404,7 @@ PIPE_FORMAT_Y8_400_UNORM , other , 1, 1, 1, un8, , , , x0
|
||||
PIPE_FORMAT_R8_G8B8_420_UNORM , planar2, 1, 1, 1, un8, , , , xyzw, rgb
|
||||
PIPE_FORMAT_G8_B8R8_420_UNORM , planar2, 1, 1, 1, un8, , , , xyzw, rgb
|
||||
PIPE_FORMAT_G8_B8_R8_420_UNORM , planar3, 1, 1, 1, un8, , , , xyzw, rgb
|
||||
PIPE_FORMAT_R8_G8_B8_UNORM , planar3, 1, 1, 1, un8, , , , xyzw, rgb
|
||||
|
||||
# While most of Mesa uses R8 for Y, U, and V planes, freedreno requires distinguishing
|
||||
# between tiled Y8 data and tiled R8 data.
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 8 and column 3.
|
@@ -1378,6 +1378,7 @@ util_format_get_plane_format(enum pipe_format format, unsigned plane)
|
||||
case PIPE_FORMAT_Y8_U8_V8_422_UNORM:
|
||||
case PIPE_FORMAT_Y8_U8_V8_444_UNORM:
|
||||
case PIPE_FORMAT_Y8_400_UNORM:
|
||||
case PIPE_FORMAT_R8_G8_B8_UNORM:
|
||||
return PIPE_FORMAT_R8_UNORM;
|
||||
case PIPE_FORMAT_NV12:
|
||||
case PIPE_FORMAT_Y8_U8V8_422_UNORM:
|
||||
|
||||
@@ -113,6 +113,7 @@ def has_access(format):
|
||||
'r8_g8b8_420_unorm',
|
||||
'g8_b8r8_420_unorm',
|
||||
'g8_b8_r8_420_unorm',
|
||||
'r8_g8_b8_unorm',
|
||||
'y8_unorm',
|
||||
]
|
||||
if format.short_name() in noaccess_formats:
|
||||
|
||||
@@ -509,6 +509,7 @@ enum pipe_format {
|
||||
PIPE_FORMAT_R8_G8B8_420_UNORM,
|
||||
PIPE_FORMAT_G8_B8R8_420_UNORM,
|
||||
PIPE_FORMAT_G8_B8_R8_420_UNORM,
|
||||
PIPE_FORMAT_R8_G8_B8_UNORM,
|
||||
PIPE_FORMAT_Y8_UNORM,
|
||||
|
||||
PIPE_FORMAT_B8G8R8X8_SNORM,
|
||||
|
||||
Reference in New Issue
Block a user