r600g: add srgb compressed formats to the list.
authorDave Airlie <airlied@redhat.com>
Tue, 15 Feb 2011 22:50:30 +0000 (08:50 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 15 Feb 2011 22:54:14 +0000 (08:54 +1000)
src/gallium/drivers/r600/r600_texture.c

index dd14143c2c1f65468f1809d08b18ae3d63fe23a5..86de005031b7ce52b0e18480a2948b1d86dea547 100644 (file)
@@ -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: