Mesa (master): r300g: fix precision issues with B10G10R10A2

Marek Olšák mareko at kemper.freedesktop.org
Wed Dec 22 02:40:27 UTC 2010


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Wed Dec 22 02:22:09 2010 +0100

r300g: fix precision issues with B10G10R10A2

---

 src/gallium/drivers/r300/r300_texture.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 6d86bc2..24f1d68 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -481,6 +481,8 @@ static uint32_t r300_translate_out_fmt(enum pipe_format format)
     } else {
         if (desc->channel[i].size == 16) {
             modifier |= R300_US_OUT_FMT_C4_16;
+        } else if (desc->channel[i].size == 10) {
+            modifier |= R300_US_OUT_FMT_C4_10;
         } else {
             /* C4_8 seems to be used for the formats whose pixel size
              * is <= 32 bits. */




More information about the mesa-commit mailing list