summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-02-18 09:34:53 +1000
committerDave Airlie <[email protected]>2011-02-18 09:39:23 +1000
commit2a6cce09e356a33337dbc193d8a580d0faab8915 (patch)
treea16aafca87e842d383dc311db7ac942d4d51aa0c
parent262b785ccd4fae212c1314fba4fa64678705ba74 (diff)
r600g: add BC4/5 to RGTC conversion
this doesn't do anything much since the rest of mesa doesn't support RGTC yet.
-rw-r--r--src/gallium/drivers/r600/r600_texture.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index cc36d94cd7a..23212314ba6 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -895,6 +895,14 @@ uint32_t r600_translate_texformat(enum pipe_format format,
case PIPE_FORMAT_DXT5_SRGBA:
result = FMT_BC3;
goto out_word4;
+ case PIPE_FORMAT_RGTC1_UNORM:
+ case PIPE_FORMAT_RGTC1_SNORM:
+ result = FMT_BC4;
+ goto out_word4;
+ case PIPE_FORMAT_RGTC2_UNORM:
+ case PIPE_FORMAT_RGTC2_SNORM:
+ result = FMT_BC5;
+ goto out_word4;
default:
goto out_unknown;
}