summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-04-24 14:00:55 +0200
committerMarek Olšák <[email protected]>2011-04-25 01:20:40 +0200
commitdef6a91a62beb79956cb55805bff7d4c3e5461ec (patch)
tree8e539ce15fe9793b34eb9c8b3281a4328ead59f1 /src
parentd737857ed2ff4313fd6046dcd80018c6308a53c5 (diff)
r600g: trivially implement LATC/3DC
Passes fbo-generatemipmap-formats.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_texture.c4
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 dc351bfb62d..90f34f7afb1 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -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: