r300g: re-enable SRGB formats

Ouch.
This commit is contained in:
Marek Olšák 2010-02-20 18:52:20 +01:00
parent 7da9da190f
commit 2a30c268bd

View file

@ -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;
}