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:
c0d3b76
)
i965: minor tweak: replace OPCODE_MOV with OPCODE_SWZ
author
Brian Paul
<brianp@vmware.com>
Wed, 28 Jan 2009 21:51:35 +0000
(14:51 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 28 Jan 2009 21:51:35 +0000
(14:51 -0700)
Just to reinforce the understanding that an extended swizzle with 0 and 1
terms is possible there.
src/mesa/drivers/dri/i965/brw_wm_fp.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_wm_fp.c
b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index
6b3f51d
..
ea3f3fc
100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/
src/mesa/drivers/dri/i965/brw_wm_fp.c
@@
-761,7
+761,7
@@
static void precalc_tex( struct brw_wm_compile *c,
if (c->key.tex_swizzles[unit] != SWIZZLE_NOOP) {
/* swizzle the result of the TEX instruction */
struct prog_src_register tmpsrc = src_reg_from_dst(inst->DstReg);
- emit_op(c, OPCODE_
MOV
,
+ emit_op(c, OPCODE_
SWZ
,
inst->DstReg,
SATURATE_OFF, /* saturate already done above */
0, 0, /* tex unit, target N/A */