mesa/src/vulkan
Niklas Haas 83f8b19f9b vulkan/wsi/wayland: implement the full format table
This code was written but (rightfully) commented out, because it
referenced non-existing vulkan formats.

The correct vulkan analogs come in the form _PACK16 and _PACK32,
respectively, which have their component ordering in high->low bit
order. This is compatible with the DRM format ordering on little endian
systems, so we can just implement them all in the obvious way. On big
endian systems, the _PACKN formats have no analogs, because the
corresponding DRM formats are specified as always being little endian.

I implemented all of the formats I could, while excluding those that
don't map to vulkan at all (e.g. BGRA1010102), and commenting out the
ones that require an extra extension (e.g. ARGB4444) because they
probably need to be checked for extension presence first.

List slightly re-ordered to make it more neatly organized. Tested
working with the 2101010 and 565 variants. Was not able to test the 4444
or 1555 formats, but I verified the channel order was correct so they
should be working in theory.

Signed-off-by: Niklas Haas <git@haasn.xyz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9737>
2021-06-24 19:37:51 +00:00
..
device-select-layer vulkan/device_select: avoid segfault on Wayland if wl_drm is unavailable 2021-05-04 21:26:21 +00:00
overlay-layer vulkan-overlay-layer: Use the new dispatch tables 2021-02-01 18:54:24 +00:00
registry vulkan: Update the XML and headers to 1.2.182 2021-06-21 14:29:16 +00:00
util vk/util: add macros for multidraw 2021-06-22 15:53:03 +00:00
wsi vulkan/wsi/wayland: implement the full format table 2021-06-24 19:37:51 +00:00
Android.mk vulkan: Add framework for common entrypoints 2021-02-01 18:54:24 +00:00
Makefile.sources android: vulkan/util: add vk_descriptors.{c,h} to Makefile.sources 2021-03-23 20:29:55 +01:00
meson.build vulkan: fix duplicate win32 def 2021-04-19 22:46:30 +00:00
vulkan-icd-symbols.txt vulkan: Allow global symbol HMI for Android 2020-08-05 18:08:07 +00:00