r300: r300 hw doesn't support any input modifiers in tex insts
authorMaciej Cencora <m.cencora@gmail.com>
Mon, 20 Apr 2009 23:55:06 +0000 (01:55 +0200)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 21 Apr 2009 16:14:35 +0000 (12:14 -0400)
src/mesa/drivers/dri/r300/r300_fragprog_swizzle.c

index 6f0d733..fc9d855 100644 (file)
@@ -100,8 +100,7 @@ GLboolean r300FPIsNativeSwizzle(GLuint opcode, struct prog_src_register reg)
            opcode == OPCODE_TXP) {
                int j;
 
-               if (reg.Abs || (reg.Negate != NEGATE_XYZW &&
-                                reg.Negate != NEGATE_NONE))
+               if (reg.Abs || reg.Negate)
                        return GL_FALSE;
 
                for(j = 0; j < 4; ++j) {