projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
589d835
)
r300/compiler: TEX instructions don't support negation on source arguments
author
Marek Olšák
<maraeo@gmail.com>
Sat, 12 Mar 2011 09:22:18 +0000
(10:22 +0100)
committer
Marek Olšák
<maraeo@gmail.com>
Sat, 12 Mar 2011 09:22:18 +0000
(10:22 +0100)
This fixes piglit:
- glsl-fs-texture2d-dependent-4
NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/mesa/drivers/dri/r300/compiler/r500_fragprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/compiler/r500_fragprog.c
b/src/mesa/drivers/dri/r300/compiler/r500_fragprog.c
index 899f0d9829a4845cb3d41c9b59ded828a687779c..140eeed3de33a7376e34a5ca006df477ffff59ff 100644
(file)
--- a/
src/mesa/drivers/dri/r300/compiler/r500_fragprog.c
+++ b/
src/mesa/drivers/dri/r300/compiler/r500_fragprog.c
@@
-77,9
+77,6
@@
static int r500_swizzle_is_native(rc_opcode opcode, struct rc_src_register reg)
if (opcode == RC_OPCODE_KIL && (reg.Swizzle != RC_SWIZZLE_XYZW || reg.Negate != RC_MASK_NONE))
return 0;
- if (reg.Negate)
- reg.Negate ^= RC_MASK_XYZW;
-
for(i = 0; i < 4; ++i) {
unsigned int swz = GET_SWZ(reg.Swizzle, i);
if (swz == RC_SWIZZLE_UNUSED) {