projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fa81d6
)
prog_optimize: get_src_arg_mask() respect writemask for more opcodes
author
Tom Stellard
<tstellar@gmail.com>
Wed, 6 Apr 2011 05:38:26 +0000
(22:38 -0700)
committer
Tom Stellard
<tstellar@gmail.com>
Sat, 16 Apr 2011 20:55:54 +0000
(13:55 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/prog_optimize.c
patch
|
blob
|
history
diff --git
a/src/mesa/program/prog_optimize.c
b/src/mesa/program/prog_optimize.c
index
164297a
..
acf0f60
100644
(file)
--- a/
src/mesa/program/prog_optimize.c
+++ b/
src/mesa/program/prog_optimize.c
@@
-74,6
+74,17
@@
get_src_arg_mask(const struct prog_instruction *inst,
case OPCODE_MAD:
case OPCODE_MUL:
case OPCODE_SUB:
+ case OPCODE_CMP:
+ case OPCODE_FLR:
+ case OPCODE_FRC:
+ case OPCODE_LRP:
+ case OPCODE_SEQ:
+ case OPCODE_SGE:
+ case OPCODE_SGT:
+ case OPCODE_SLE:
+ case OPCODE_SLT:
+ case OPCODE_SNE:
+ case OPCODE_SSG:
channel_mask = inst->DstReg.WriteMask & dst_mask;
break;
case OPCODE_RCP: