r600g: add 10/10/10/2 vertex format conversion.
authorDave Airlie <airlied@redhat.com>
Mon, 5 Sep 2011 14:03:34 +0000 (15:03 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 5 Sep 2011 18:08:18 +0000 (19:08 +0100)
src/gallium/drivers/r600/r600_asm.c

index 27febdf9d030f8f727eb86400b6698e35312f67d..523c5313df26b2efbdf876c5a24efc5c7a77bd51 100644 (file)
@@ -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: