summaryrefslogtreecommitdiff
path: root/src/gallium/include
diff options
context:
space:
mode:
authorEmma Anholt <emma@anholt.net>2021-10-01 14:14:00 -0700
committerMarge Bot <eric+marge@anholt.net>2021-10-05 20:09:17 +0000
commite47b4ba62981f070e47be3869e0ac486df4b9498 (patch)
treeb2491dadfeda27d7b8fcf4285acacd164a99b009 /src/gallium/include
parentab0462e05df2ec47b518ecf5cedd5714eb8f922f (diff)
util/format: Add an RGB planar format for YV12, like we have for NV12.
Turnip will use this for mapping the to the corresponding hardware format, and we could also extend mesa/st to avoid adding extra samplers for external image sampling of YV12 on freedreno. Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13046>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_format.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h
index 1f300a018da..a697cd5edc1 100644
--- a/src/gallium/include/pipe/p_format.h
+++ b/src/gallium/include/pipe/p_format.h
@@ -504,6 +504,7 @@ enum pipe_format {
PIPE_FORMAT_XYUV,
PIPE_FORMAT_R8_G8B8_420_UNORM,
+ PIPE_FORMAT_R8_G8_B8_420_UNORM,
PIPE_FORMAT_B8G8R8X8_SNORM,
PIPE_FORMAT_B8G8R8X8_UINT,