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

Author: Dave Airlie <[email protected]>
Date:   Mon Sep  5 15:03:34 2011 +0100

r600g: add 10/10/10/2 vertex format conversion.

---

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

diff --git a/src/gallium/drivers/r600/r600_asm.c 
b/src/gallium/drivers/r600/r600_asm.c
index 27febdf..523c531 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -2077,6 +2077,12 @@ static void r600_vertex_data_type(enum pipe_format 
pformat, unsigned *format,
                                break;
                        }
                        break;
+               case 10:
+                       if (desc->nr_channels != 4)
+                               goto out_unknown;
+
+                       *format = FMT_2_10_10_10;
+                       break;
                case 16:
                        switch (desc->nr_channels) {
                        case 1:

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to