util/format: add trivial srgb<->linear conversion test
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 7 Nov 2019 17:33:19 +0000 (17:33 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 27 Dec 2019 21:04:43 +0000 (21:04 +0000)
commitda9937d09b2f3dc883ae8ad315ae9e5bfdecb1fd
treec615179dc63a69e4bd84da45ef37639124857d9d
parent8f4d4c808b6ed0b15b7a0cb0154a4cc3e8e7d907
util/format: add trivial srgb<->linear conversion test

This would've caught 8829f9ccb0267d113283 ("u_format: add ETC2 to
util_format_srgb/util_format_linear").

Suggested-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/util/meson.build
src/util/tests/format/meson.build [new file with mode: 0644]
src/util/tests/format/srgb.c [new file with mode: 0644]