Mesa (master): mesa/st: translate VERT_ATTRIB_GENERIC8.. 15 in st_translate_vertex_program
Keith Whitwell
keithw at kemper.freedesktop.org
Tue Apr 28 17:17:40 UTC 2009
Module: Mesa
Branch: master
Commit: afc0c59dbd7f89d914763fd78701461f22c00450
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=afc0c59dbd7f89d914763fd78701461f22c00450
Author: Keith Whitwell <keithw at vmware.com>
Date: Mon Apr 27 15:33:44 2009 +0100
mesa/st: translate VERT_ATTRIB_GENERIC8..15 in st_translate_vertex_program
It seems quake4 can hit these attributes sometimes.
---
src/mesa/state_tracker/st_program.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 2795570..6ec633c 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -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++;
More information about the mesa-commit
mailing list