mesa/src
Faith Ekstrand eb23ce91b5 vulkan/format: Use correct swizzle for 1-plane YCbCr formats
VK_FORMAT_G8B8G8R8_422_UNORM and VK_FORMAT_B8G8R8G8_422_UNORM already
place the luminance channel in the green component which is where we NIR
lowering code for ycbcr expects it.  Set an RGBA swizzle in the common
format table and make it the driver's responsibility to re-map the
formats as needed for their hardware.

The only Vulkan drivers affected by this change are the Intel drivers
and lavapipe.  None of NVK, RADV, and v3dv support these formats yet and
Turnip has its own lowering that doesn't rely on the YCbCr format table
in util/vk_format.c.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24619>
2023-08-14 23:44:19 +00:00
..
amd nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
android_stub util/log: improve logger_android 2023-02-22 17:55:40 +00:00
asahi nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
broadcom nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
c11 util/meson: Getting mesa util core to be self contained 2023-08-02 03:41:24 +00:00
compiler nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
drm-shim drm-shim: Avoid assertion fail if someone does close(-1). 2023-06-01 01:50:41 +00:00
egl clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
etnaviv ci/baremetal: shorten BM_KERNEL to filename and BM_DTB to name only 2023-08-14 17:18:04 +00:00
freedreno nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
gallium vulkan/format: Use correct swizzle for 1-plane YCbCr formats 2023-08-14 23:44:19 +00:00
gbm egl/drm: Assume modern DRI interface versions 2023-07-28 12:25:19 +00:00
getopt scons: Remove. 2021-03-20 10:38:55 +00:00
glx glx: There is no need to psc++ 2023-08-03 20:46:32 +00:00
gtest gtest: Update to 1.13.0 2023-05-14 11:09:02 +00:00
imagination nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
imgui
intel vulkan/format: Use correct swizzle for 1-plane YCbCr formats 2023-08-14 23:44:19 +00:00
loader dri3: only invalidate drawables on geometry change if geometry has changed 2023-06-15 12:22:24 +00:00
mapi mesa: Implement and advertise GL_MESA_sampler_objects 2023-08-01 14:52:10 +00:00
mesa nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
microsoft nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
nouveau nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
panfrost panfrost/ci: updated CI expectations 2023-08-14 22:41:10 +00:00
tool meson: remove needless c++17-overrides 2023-05-19 12:45:31 +00:00
util util/format: Add G8B8_G8R8_422_UNORM and B8G8_R8G8_422_UNORM formats 2023-08-14 23:44:19 +00:00
virtio clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
vulkan vulkan/format: Use correct swizzle for 1-plane YCbCr formats 2023-08-14 23:44:19 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
meson.build nvk: add vulkan skeleton 2023-08-04 21:31:52 +00:00