r300g: fix precision issues with B10G10R10A2
authorMarek Olšák <maraeo@gmail.com>
Wed, 22 Dec 2010 01:22:09 +0000 (02:22 +0100)
committerMarek Olšák <maraeo@gmail.com>
Wed, 22 Dec 2010 02:39:37 +0000 (03:39 +0100)
src/gallium/drivers/r300/r300_texture.c

index 6d86bc282ffd0ccdab57c4ed87d4c449a75ee174..24f1d68f4a75c6cae96b78bad47fd7fc1d82175b 100644 (file)
@@ -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. */