projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5faa0dc
)
i965: Make the cube mapping RCP use a writemask.
author
Eric Anholt
<eric@anholt.net>
Wed, 12 Aug 2009 20:49:06 +0000
(13:49 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 12 Aug 2009 20:50:09 +0000
(13:50 -0700)
Fixes cube mapping since the scalar changes.
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 8e37a01ff167378b357520199b99709a1267c799..0eac1bf86a3b05fd52b9a3352e23d2afc5214e50 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/
src/mesa/drivers/dri/i965/brw_wm_fp.c
@@
-716,7
+716,7
@@
static void precalc_tex( struct brw_wm_compile *c,
/* tmp0 = 1 / tmp1 */
emit_op(c, OPCODE_RCP,
-
tmp0
,
+
dst_mask(tmp0, WRITEMASK_X)
,
0,
tmp1src,
src_undef(),
@@
-727,7
+727,7
@@
static void precalc_tex( struct brw_wm_compile *c,
tmpcoord,
0,
src0,
-
tmp0src
,
+
src_swizzle1(tmp0src, SWIZZLE_X)
,
src_undef());
release_temp(c, tmp0);