mesa/src
Daniel Stone 974d31dba7 format: Generate sRGB<->linear conversions from table
Instead of having a hardcoded table to convert between sRGB formats and
their linear-gamma equivalents (and vice-versa), generate this from the
information in the format table.

This requires adding a 'sublayout' attribute to differentiate between,
e.g. DXT1 and DXT3, which otherwise appear to be equivalent but for
their name prefix.

As an anonymous union is being used, we also need named initialisers for
the util_format_description entries.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29649>
2024-07-19 13:50:42 +00:00
..
amd u_format: Rewrite format table to use YAML 2024-07-19 13:50:42 +00:00
android_stub vulkan/android: Add helper to probe AHB support 2024-05-14 14:53:44 +00:00
asahi format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
broadcom format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
c11 build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
compiler format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
drm-shim drm-shim: stub synobj_timeline_wait and query ioctl 2024-07-16 11:17:59 +02:00
egl egl: use loader's multibuffer check to deduplicate lots of code 2024-07-18 21:58:49 +00:00
etnaviv format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
freedreno tu: Enable VK_KHR_shader_subgroup_uniform_control_flow 2024-07-19 12:54:09 +00:00
gallium format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
gbm gbm: link directly with libgallium 2024-07-18 20:30:43 +00:00
getopt build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
glx loader/glx: move multibuffers check to loader 2024-07-18 21:58:49 +00:00
gtest build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
imagination build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
imgui
intel format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
loader format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
mapi mesa_interface: Move out of GL/internal/ 2024-07-17 23:47:05 +00:00
mesa mesa: Drop some version checking around ValidateEGLImage 2024-07-18 14:16:51 +00:00
microsoft format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
nouveau format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
panfrost format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
tool build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
util format: Generate sRGB<->linear conversions from table 2024-07-19 13:50:42 +00:00
virtio format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
vulkan format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
.clang-format asahi: add agx_ppp_push_merged helper 2024-05-14 04:57:27 +00:00
meson.build gbm: link directly with libgallium 2024-07-18 20:30:43 +00:00