From 54cfe69436c7b4749b01c5f8b74ba3d790ea2657 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 21 Oct 2005 15:22:36 +0000 Subject: fix broken SWZ instruction --- src/mesa/shader/arbprogparse.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/mesa/shader') diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index dba8280c27..244c85738f 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 6.2 + * Version: 6.5 * - * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -2444,15 +2444,15 @@ parse_swizzle_mask (GLubyte ** inst, GLubyte * mask, GLint len) /** */ static GLuint -parse_extended_swizzle_mask (GLubyte ** inst, GLubyte * mask, GLubyte * Negate) +parse_extended_swizzle_mask(GLubyte **inst, GLubyte *mask, GLubyte *negate) { GLint a; GLubyte swz; - *Negate = 0x0; + *negate = 0x0; for (a = 0; a < 4; a++) { if (parse_sign (inst) == -1) - *Negate |= 1<SrcReg[0].File = File; fp->SrcReg[0].Index = Index; - fp->SrcReg[0].NegateBase = NegateMask; + fp->SrcReg[0].NegateBase = negateMask; fp->SrcReg[0].Swizzle = (Swizzle[0] << 0 | Swizzle[1] << 3 | Swizzle[2] << 6 | @@ -3259,6 +3259,7 @@ parse_vp_instruction (GLcontext * ctx, GLubyte ** inst, vp->SrcReg[0].Swizzle = SWIZZLE_NOOP; vp->SrcReg[1].Swizzle = SWIZZLE_NOOP; vp->SrcReg[2].Swizzle = SWIZZLE_NOOP; + vp->SrcReg[3].Swizzle = SWIZZLE_NOOP; vp->DstReg.WriteMask = 0xf; switch (type) { -- cgit v1.2.3