projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
961ead6
)
program: Clean up after condition code removal.
author
Matt Turner
<mattst88@gmail.com>
Wed, 2 Mar 2016 19:01:33 +0000
(11:01 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Wed, 2 Mar 2016 20:15:58 +0000
(12:15 -0800)
src/mesa/program/prog_execute.c
patch
|
blob
|
history
diff --git
a/src/mesa/program/prog_execute.c
b/src/mesa/program/prog_execute.c
index 8f167be60cdc282580ac0613e86693d501420ba9..aadf82116e59dc006d2bf1c0b1677bcc7ba6259e 100644
(file)
--- 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);
}