util: linearized sRGB values don't fit into 8bits

Fixes glean texture_srgb test.
This commit is contained in:
José Fonseca 2010-09-17 11:13:37 +01:00
parent c70d539e24
commit 903a66abaf

View file

@ -173,6 +173,14 @@ util_format_fits_8unorm(const struct util_format_description *format_desc)
{
unsigned chan;
/*
* After linearized sRGB values require more than 8bits.
*/
if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) {
return FALSE;
}
switch (format_desc->layout) {
case UTIL_FORMAT_LAYOUT_S3TC: