diff options
author | Dave Airlie <[email protected]> | 2011-02-16 08:50:30 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-02-16 08:54:14 +1000 |
commit | 632918d3ecd9756ad34098d28ed9eeda874d41a9 (patch) | |
tree | 8ccf4063f9e08bf353b271d59470cb0277982e20 /src | |
parent | eafb7f234d11a290b00dcaf5492b9bdad1cf5148 (diff) |
r600g: add srgb compressed formats to the list.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index dd14143c2c1..86de005031b 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -885,12 +885,16 @@ uint32_t r600_translate_texformat(enum pipe_format format, switch (format) { case PIPE_FORMAT_DXT1_RGB: case PIPE_FORMAT_DXT1_RGBA: + case PIPE_FORMAT_DXT1_SRGB: + case PIPE_FORMAT_DXT1_SRGBA: result = FMT_BC1; goto out_word4; case PIPE_FORMAT_DXT3_RGBA: + case PIPE_FORMAT_DXT3_SRGBA: result = FMT_BC2; goto out_word4; case PIPE_FORMAT_DXT5_RGBA: + case PIPE_FORMAT_DXT5_SRGBA: result = FMT_BC3; goto out_word4; default: |