aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-05-01 07:37:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-05-03 07:07:06 +0000
commit81e979b228e7815a36454fc1516337dd73423417 (patch)
treed2d784682014f1ab71e1238acfdfb9c2bfdc09f9 /config.c
parentconfig: tweak.surface-bit-depth: add support for 16-bit surfaces (diff)
config: tweak.surface-bit-depth: add 16f-bitpixman-16f-2
This adds support for 16-bit floating point surfaces, using the new PIXMAN_rgba_float16 image buffer type. This maps to WL_SHM_ABGR161616F.
Diffstat (limited to 'config.c')
-rw-r--r--config.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/config.c b/config.c
index d0aae6a5..0bf846f6 100644
--- a/config.c
+++ b/config.c
@@ -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},