config: tweak.surface-bit-depth: add 16f-bit

This adds support for 16-bit floating point surfaces, using the new
PIXMAN_rgba_float16 image buffer type. This maps to
WL_SHM_ABGR161616F.
This commit is contained in:
Daniel Eklöf 2025-05-01 09:37:47 +02:00
parent 970e13db8d
commit 81e979b228
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
9 changed files with 64 additions and 10 deletions

View file

@ -2811,7 +2811,12 @@ parse_section_tweak(struct context *ctx)
_Static_assert(sizeof(conf->tweak.surface_bit_depth) == sizeof(int),
"enum is not 32-bit");
#if defined(HAVE_PIXMAN_RGBA_16)
#if defined(HAVE_PIXMAN_RGBA_FLOAT16)
return value_to_enum(
ctx,
(const char *[]){"auto", "8-bit", "10-bit", "16-bit", "16f-bit", NULL},
(int *)&conf->tweak.surface_bit_depth);
#elif defined(HAVE_PIXMAN_RGBA_16)
return value_to_enum(
ctx,
(const char *[]){"auto", "8-bit", "10-bit", "16-bit", NULL},