r600g: add BC4/5 to RGTC conversion

this doesn't do anything much since the rest of mesa doesn't
support RGTC yet.
This commit is contained in:
Dave Airlie 2011-02-18 09:34:53 +10:00
parent 262b785ccd
commit 2a6cce09e3
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}