Mesa (master): r600g: trivially implement EXT_texture_shared_exponent

Marek Olšák mareko at kemper.freedesktop.org
Fri Apr 29 02:36:29 PDT 2011


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Tue Apr 26 02:24:47 2011 +0200

r600g: trivially implement EXT_texture_shared_exponent

Nothing else needed.

---

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

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index eb696b7..b22eb7b 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -930,6 +930,11 @@ uint32_t r600_translate_texformat(struct pipe_screen *screen,
 		}
 	}
 
+	if (format == PIPE_FORMAT_R9G9B9E5_FLOAT) {
+		result = FMT_5_9_9_9_SHAREDEXP;
+		goto out_word4;
+	}
+
 
 	for (i = 0; i < desc->nr_channels; i++) {
 		if (desc->channel[i].type == UTIL_FORMAT_TYPE_SIGNED) {



More information about the mesa-commit mailing list