From 2a6cce09e356a33337dbc193d8a580d0faab8915 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 18 Feb 2011 09:34:53 +1000 Subject: r600g: add BC4/5 to RGTC conversion this doesn't do anything much since the rest of mesa doesn't support RGTC yet. --- src/gallium/drivers/r600/r600_texture.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium') 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; } -- cgit v1.2.3