diff options
author | Vinson Lee <vlee@vmware.com> | 2010-04-17 23:48:37 -0700 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-04-17 23:48:37 -0700 |
commit | 4485dd8a3e8aff8d4fb73684d0d7a5a1179f60cc (patch) | |
tree | 22b87ec21ddc51d57cbac363a642254d3264b713 /src/mesa | |
parent | 010f81f32b9e68b768b3436f98953f1d1c0bf1d4 (diff) |
i965: Assert that an OPCODE_IF was seen before an OPCODE_ELSE.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 227261409c..7adb7956c7 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: |