util/formats: Add PIPE_FORMAT_R8_G8B8_420_UNORM

This is a planar, subsampled format. It's basically NV12, but without
colorspace conversion.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6693>
This commit is contained in:
Kristian H. Kristensen
2020-09-28 15:34:07 +00:00
committed by Marge Bot
parent 3b784370c3
commit e23bcb69c3
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -104,6 +104,7 @@ def has_access(format):
'y16_u16_v16_422_unorm',
'y16_u16v16_422_unorm',
'y16_u16_v16_444_unorm',
'r8_g8b8_420_unorm',
]
if format.short_name() in noaccess_formats:
return False