diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-03-12 10:22:18 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-03-12 10:22:18 +0100 |
commit | 1e97b4dd103a00f497cc92571498ffd7178ba263 (patch) | |
tree | 9bd88ae5fec66ad53a164b5a82e6e4d6a2101faf | |
parent | 589d835dfd9b07f49ee12af2dfa04a4e054bec68 (diff) |
r300/compiler: TEX instructions don't support negation on source arguments
This fixes piglit:
- glsl-fs-texture2d-dependent-4
NOTE: This is a candidate for the 7.9 and 7.10 branches.
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/r500_fragprog.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/r500_fragprog.c b/src/mesa/drivers/dri/r300/compiler/r500_fragprog.c index 899f0d9829..140eeed3de 100644 --- 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) { |