OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d24a9b2
)
new assertions
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 19 Dec 2007 15:49:59 +0000
(08:49 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 19 Dec 2007 20:16:36 +0000
(13:16 -0700)
src/mesa/state_tracker/st_program.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_program.c
b/src/mesa/state_tracker/st_program.c
index
6802bb3
..
1852228
100644
(file)
--- a/
src/mesa/state_tracker/st_program.c
+++ b/
src/mesa/state_tracker/st_program.c
@@
-167,6
+167,7
@@
st_translate_vertex_program(struct st_context *st,
switch (attr) {
case VERT_RESULT_HPOS:
+ assert(slot == 0);
vs.output_semantic_name[slot] = TGSI_SEMANTIC_POSITION;
vs.output_semantic_index[slot] = 0;
break;
@@
-218,6
+219,8
@@
st_translate_vertex_program(struct st_context *st,
}
}
+ assert(vs.output_semantic_name[0] == TGSI_SEMANTIC_POSITION);
+
if (outputMapping) {
/* find max output slot referenced to compute vs.num_outputs */