diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-05-01 07:37:47 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-05-03 07:07:06 +0000 |
| commit | 81e979b228e7815a36454fc1516337dd73423417 (patch) | |
| tree | d2d784682014f1ab71e1238acfdfb9c2bfdc09f9 /config.c | |
| parent | config: 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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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}, |
