diff options
author | Dave Airlie <[email protected]> | 2011-02-25 09:13:14 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-02-25 09:18:42 +1000 |
commit | b2413de91682e3908d8ab1635956a290f603681c (patch) | |
tree | 07f2f51f8103b8b13826016168ee4d5b61415641 /src/gallium/drivers/r600/r600_texture.c | |
parent | c9bca01819ef0fa3c64a28e26bd63953cf7f1364 (diff) |
r600g: explicity set sign bits for RGTC
Diffstat (limited to 'src/gallium/drivers/r600/r600_texture.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index 87143ee54cc..3a85a25065a 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -878,12 +878,14 @@ uint32_t r600_translate_texformat(enum pipe_format format, goto out_unknown; switch (format) { - case PIPE_FORMAT_RGTC1_UNORM: case PIPE_FORMAT_RGTC1_SNORM: + word4 |= sign_bit[0]; + case PIPE_FORMAT_RGTC1_UNORM: result = FMT_BC4; goto out_word4; - case PIPE_FORMAT_RGTC2_UNORM: case PIPE_FORMAT_RGTC2_SNORM: + word4 |= sign_bit[0] | sign_bit[1]; + case PIPE_FORMAT_RGTC2_UNORM: result = FMT_BC5; goto out_word4; default: |