shm: fix compilation on pixman without PIXMAN_rgba_float16

This commit is contained in:
Daniel Eklöf 2025-05-01 09:49:47 +02:00
parent 8faea42d9e
commit d6a40dee35
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 12 additions and 4 deletions

View file

@ -2811,9 +2811,7 @@ parse_section_tweak(struct context *ctx)
_Static_assert(sizeof(conf->tweak.surface_bit_depth) == sizeof(int),
"enum is not 32-bit");
/* TODO: check which version PIXMAN_rgba_float16 ended up in;
guessing 0.47.0, but PR is currently stuck at 0.44.3 */
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 44, 3)
#if defined(HAVE_PIXMAN_RGBA_FLOAT16)
return value_to_enum(
ctx,
(const char *[]){"auto", "8-bit", "10-bit", "16f-bit", NULL},