From: Brian Paul Date: Sat, 13 Jun 2015 13:58:53 +0000 (-0600) Subject: tgsi: new comments, assertion for executing TGSI_OPCODE_CAL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12c1c0706d4356819cfbaa15c3d71402a42e3539;p=mesa.git tgsi: new comments, assertion for executing TGSI_OPCODE_CAL --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index a098a82be63..fde99b9e494 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -4401,8 +4401,12 @@ exec_instruction( mach->BreakStack[mach->BreakStackTop++] = mach->BreakType; mach->FuncStack[mach->FuncStackTop++] = mach->FuncMask; - /* Finally, jump to the subroutine */ + /* Finally, jump to the subroutine. The label is a pointer + * (an instruction number) to the BGNSUB instruction. + */ *pc = inst->Label.Label; + assert(mach->Instructions[*pc].Instruction.Opcode + == TGSI_OPCODE_BGNSUB); } break;