From: Marek Olšák Date: Sat, 20 Feb 2010 17:52:20 +0000 (+0100) Subject: r300g: re-enable SRGB formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a30c268bdddf02300913c79ffbbb779c5399815;p=mesa.git r300g: re-enable SRGB formats Ouch. --- diff --git a/src/gallium/drivers/r300/r300_texture.h b/src/gallium/drivers/r300/r300_texture.h index 153f4eebdaf..e2c10325fa9 100644 --- a/src/gallium/drivers/r300/r300_texture.h +++ b/src/gallium/drivers/r300/r300_texture.h @@ -208,7 +208,8 @@ static INLINE uint32_t r300_translate_texformat(enum pipe_format format) switch (desc->channel[0].type) { case UTIL_FORMAT_TYPE_UNSIGNED: case UTIL_FORMAT_TYPE_SIGNED: - if (!desc->channel[0].normalized) { + if (!desc->channel[0].normalized && + desc->colorspace != UTIL_FORMAT_COLORSPACE_SRGB) { return ~0; }