Mesa (master): r600g: trivially implement LATC/3DC

Marek Olšák mareko at kemper.freedesktop.org
Sun Apr 24 16:22:35 PDT 2011


Module: Mesa
Branch: master
Commit: def6a91a62beb79956cb55805bff7d4c3e5461ec
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=def6a91a62beb79956cb55805bff7d4c3e5461ec

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Apr 24 14:00:55 2011 +0200

r600g: trivially implement LATC/3DC

Passes fbo-generatemipmap-formats.

---

 src/gallium/drivers/r600/r600_texture.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index dc351bf..90f34f7 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -883,13 +883,17 @@ uint32_t r600_translate_texformat(struct pipe_screen *screen,
 
 		switch (format) {
 		case PIPE_FORMAT_RGTC1_SNORM:
+		case PIPE_FORMAT_LATC1_SNORM:
 			word4 |= sign_bit[0];
 		case PIPE_FORMAT_RGTC1_UNORM:
+		case PIPE_FORMAT_LATC1_UNORM:
 			result = FMT_BC4;
 			goto out_word4;
 		case PIPE_FORMAT_RGTC2_SNORM:
+		case PIPE_FORMAT_LATC2_SNORM:
 			word4 |= sign_bit[0] | sign_bit[1];
 		case PIPE_FORMAT_RGTC2_UNORM:
+		case PIPE_FORMAT_LATC2_UNORM:
 			result = FMT_BC5;
 			goto out_word4;
 		default:



More information about the mesa-commit mailing list