mesa/st: translate VERT_ATTRIB_GENERIC8..15 in st_translate_vertex_program
authorKeith Whitwell <keithw@vmware.com>
Mon, 27 Apr 2009 14:33:44 +0000 (15:33 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 28 Apr 2009 17:15:17 +0000 (18:15 +0100)
It seems quake4 can hit these attributes sometimes.

src/mesa/state_tracker/st_program.c

index 2795570cf10b2d08a3c0cb456a68c1731dea6812..6ec633c0b46d609bef371a30b6167c8067cf8126 100644 (file)
@@ -169,6 +169,14 @@ st_translate_vertex_program(struct st_context *st,
          case VERT_ATTRIB_GENERIC5:
          case VERT_ATTRIB_GENERIC6:
          case VERT_ATTRIB_GENERIC7:
+         case VERT_ATTRIB_GENERIC8:
+         case VERT_ATTRIB_GENERIC9:
+         case VERT_ATTRIB_GENERIC10:
+         case VERT_ATTRIB_GENERIC11:
+         case VERT_ATTRIB_GENERIC12:
+         case VERT_ATTRIB_GENERIC13:
+         case VERT_ATTRIB_GENERIC14:
+         case VERT_ATTRIB_GENERIC15:
             assert(attr < VERT_ATTRIB_MAX);
             vs_input_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
             vs_input_semantic_index[slot] = num_generic++;