diff options
author | Marek Olšák <[email protected]> | 2010-12-22 13:28:55 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-12-23 16:54:59 +0100 |
commit | c420c0e7d6c4b8fac90fd6a64a49652ac58535fd (patch) | |
tree | f3102992288f3d301a12ae2905ae69f52ccee4a5 /src/gallium/drivers/r300/r300_texture.c | |
parent | bf7b6f60aea3caa12c858271af167387fc0cfa4e (diff) |
r300g: add support for B2G3R3 texturing
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index 24f1d68f4a7..6fdc504ed54 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -244,6 +244,11 @@ uint32_t r300_translate_texformat(enum pipe_format format, desc->channel[2].size == 6) { return R300_TX_FORMAT_Z6Y5X5 | result; } + if (desc->channel[0].size == 2 && + desc->channel[1].size == 3 && + desc->channel[2].size == 3) { + return R300_TX_FORMAT_Z3Y3X2 | result; + } return ~0; /* Unsupported/unknown. */ case 4: |