summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-02-20 18:52:20 +0100
committerMarek Olšák <[email protected]>2010-02-21 14:24:12 +0100
commit2a30c268bdddf02300913c79ffbbb779c5399815 (patch)
tree2510b503681acb4b24ba557b6e9d20934c246490
parent7da9da190f44f504db13570c0cec05dffa240cae (diff)
r300g: re-enable SRGB formats
Ouch.
-rw-r--r--src/gallium/drivers/r300/r300_texture.h3
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;
}