From: Matt Turner Date: Wed, 2 Mar 2016 19:01:33 +0000 (-0800) Subject: program: Clean up after condition code removal. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d047d10f196b72be938d004f2e0fc7e5c253702;p=mesa.git program: Clean up after condition code removal. --- diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c index 8f167be60cd..aadf82116e5 100644 --- a/src/mesa/program/prog_execute.c +++ b/src/mesa/program/prog_execute.c @@ -650,11 +650,9 @@ _mesa_execute_program(struct gl_context * ctx, program->Instructions[inst->BranchTarget].Opcode == OPCODE_ENDIF); /* eval condition */ - if (inst->SrcReg[0].File != PROGRAM_UNDEFINED) { - GLfloat a[4]; - fetch_vector1(&inst->SrcReg[0], machine, a); - cond = (a[0] != 0.0F); - } + GLfloat a[4]; + fetch_vector1(&inst->SrcReg[0], machine, a); + cond = (a[0] != 0.0F); if (DEBUG_PROG) { printf("IF: %d\n", cond); }