diff options
author | Marek Olšák <[email protected]> | 2010-02-20 18:52:20 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-02-21 14:24:12 +0100 |
commit | 2a30c268bdddf02300913c79ffbbb779c5399815 (patch) | |
tree | 2510b503681acb4b24ba557b6e9d20934c246490 /src/gallium | |
parent | 7da9da190f44f504db13570c0cec05dffa240cae (diff) |
r300g: re-enable SRGB formats
Ouch.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |