projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
010f81f
)
i965: Assert that an OPCODE_IF was seen before an OPCODE_ELSE.
author
Vinson Lee
<vlee@vmware.com>
Sun, 18 Apr 2010 06:48:37 +0000
(23:48 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 18 Apr 2010 06:48:37 +0000
(23:48 -0700)
src/mesa/drivers/dri/i965/brw_vs_emit.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vs_emit.c
b/src/mesa/drivers/dri/i965/brw_vs_emit.c
index
2272614
..
7adb795
100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_vs_emit.c
+++ b/
src/mesa/drivers/dri/i965/brw_vs_emit.c
@@
-1657,6
+1657,7
@@
void brw_vs_emit(struct brw_vs_compile *c )
if_depth++;
break;
case OPCODE_ELSE:
+ assert(if_depth > 0);
if_inst[if_depth-1] = brw_ELSE(p, if_inst[if_depth-1]);
break;
case OPCODE_ENDIF: