mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 09:40:29 +01:00
mesa: added some assertions in BNGLOOP/ENDLOOP cases
This commit is contained in:
parent
d186079520
commit
e8ea2d26cd
1 changed files with 4 additions and 0 deletions
|
|
@ -684,9 +684,13 @@ _mesa_execute_program(GLcontext * ctx,
|
|||
break;
|
||||
case OPCODE_BGNLOOP:
|
||||
/* no-op */
|
||||
ASSERT(program->Instructions[inst->BranchTarget].Opcode
|
||||
== OPCODE_ENDLOOP);
|
||||
break;
|
||||
case OPCODE_ENDLOOP:
|
||||
/* subtract 1 here since pc is incremented by for(pc) loop */
|
||||
ASSERT(program->Instructions[inst->BranchTarget].Opcode
|
||||
== OPCODE_BGNLOOP);
|
||||
pc = inst->BranchTarget - 1; /* go to matching BNGLOOP */
|
||||
break;
|
||||
case OPCODE_BGNSUB: /* begin subroutine */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue