Mesa (master): i965: Assert that an OPCODE_IF was seen before an OPCODE_ELSE.
Vinson Lee
vlee at kemper.freedesktop.org
Sun Apr 18 06:51:07 UTC 2010
Module: Mesa
Branch: master
Commit: 4485dd8a3e8aff8d4fb73684d0d7a5a1179f60cc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4485dd8a3e8aff8d4fb73684d0d7a5a1179f60cc
Author: Vinson Lee <vlee at vmware.com>
Date: Sat Apr 17 23:48:37 2010 -0700
i965: Assert that an OPCODE_IF was seen before an OPCODE_ELSE.
---
src/mesa/drivers/dri/i965/brw_vs_emit.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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
--- 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:
More information about the mesa-commit
mailing list