r600g: trivially implement LATC/3DC
authorMarek Olšák <maraeo@gmail.com>
Sun, 24 Apr 2011 12:00:55 +0000 (14:00 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 24 Apr 2011 23:20:40 +0000 (01:20 +0200)
Passes fbo-generatemipmap-formats.

src/gallium/drivers/r600/r600_texture.c

index dc351bfb62deff8aa2dcecf9fe2bb00301373961..90f34f7afb1ae392355833057a6cd757b60f11f3 100644 (file)
@@ -883,13 +883,17 @@ uint32_t r600_translate_texformat(struct pipe_screen *screen,
 
                switch (format) {
                case PIPE_FORMAT_RGTC1_SNORM:
+               case PIPE_FORMAT_LATC1_SNORM:
                        word4 |= sign_bit[0];
                case PIPE_FORMAT_RGTC1_UNORM:
+               case PIPE_FORMAT_LATC1_UNORM:
                        result = FMT_BC4;
                        goto out_word4;
                case PIPE_FORMAT_RGTC2_SNORM:
+               case PIPE_FORMAT_LATC2_SNORM:
                        word4 |= sign_bit[0] | sign_bit[1];
                case PIPE_FORMAT_RGTC2_UNORM:
+               case PIPE_FORMAT_LATC2_UNORM:
                        result = FMT_BC5;
                        goto out_word4;
                default: