From: Dave Airlie Date: Thu, 17 Feb 2011 23:34:53 +0000 (+1000) Subject: r600g: add BC4/5 to RGTC conversion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a6cce09e356a33337dbc193d8a580d0faab8915;p=mesa.git r600g: add BC4/5 to RGTC conversion this doesn't do anything much since the rest of mesa doesn't support RGTC yet. --- 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; }