util/format: Add an RGB planar format for YV12, like we have for NV12.
authorEmma Anholt <emma@anholt.net>
Fri, 1 Oct 2021 21:14:00 +0000 (14:14 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 5 Oct 2021 20:09:17 +0000 (20:09 +0000)
commite47b4ba62981f070e47be3869e0ac486df4b9498
treeb2491dadfeda27d7b8fcf4285acacd164a99b009
parentab0462e05df2ec47b518ecf5cedd5714eb8f922f
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>
src/gallium/include/pipe/p_format.h
src/util/format/u_format.csv
src/util/format/u_format_table.py