diff options
author | Brian Paul <[email protected]> | 2005-11-05 03:02:28 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-11-05 03:02:28 +0000 |
commit | fd4395b8d1d6f8f018e7e7c3dd0c52fe52ab2794 (patch) | |
tree | adbfd291e7a2947ad2f587d219720648f0c79b24 | |
parent | 613e1ad5d517d9964bd9cf94daa931dda33113fe (diff) |
don't need MAKE_SWIZZLE() macro
-rw-r--r-- | src/mesa/shader/nvfragparse.c | 4 | ||||
-rw-r--r-- | src/mesa/shader/program.h | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/shader/nvfragparse.c b/src/mesa/shader/nvfragparse.c index 41344ec8694..3d72b485a29 100644 --- a/src/mesa/shader/nvfragparse.c +++ b/src/mesa/shader/nvfragparse.c @@ -700,7 +700,7 @@ Parse_CondCodeMask(struct parse_state *parseState, if (!Parse_SwizzleSuffix(token, swz)) RETURN_ERROR1("Invalid swizzle suffix"); - dstReg->CondSwizzle = MAKE_SWIZZLE(swz); + dstReg->CondSwizzle = MAKE_SWIZZLE4(swz[0], swz[1], swz[2], swz[3]); } return GL_TRUE; @@ -1073,7 +1073,7 @@ Parse_VectorSrc(struct parse_state *parseState, if (!Parse_SwizzleSuffix(token, swz)) RETURN_ERROR1("Invalid swizzle suffix"); - srcReg->Swizzle = MAKE_SWIZZLE(swz); + srcReg->Swizzle = MAKE_SWIZZLE4(swz[0], swz[1], swz[2], swz[3]); } /* Finish absolute value */ diff --git a/src/mesa/shader/program.h b/src/mesa/shader/program.h index 2d8ff4ab14d..b45f9a50dfa 100644 --- a/src/mesa/shader/program.h +++ b/src/mesa/shader/program.h @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.3 + * Version: 6.5 * * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * @@ -52,7 +52,6 @@ #define SWIZZLE_ONE 5 /* keep these values together: KW */ #define MAKE_SWIZZLE4(a,b,c,d) (((a)<<0) | ((b)<<3) | ((c)<<6) | ((d)<<9)) -#define MAKE_SWIZZLE(x) MAKE_SWIZZLE4((x)[0], (x)[1], (x)[2], (x)[3]) #define SWIZZLE_NOOP MAKE_SWIZZLE4(0,1,2,3) #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7) #define GET_BIT(msk, idx) (((msk) >> (idx)) & 0x1) @@ -119,7 +118,7 @@ _mesa_delete_program(GLcontext *ctx, struct program *prog); -/* +/** * Used for describing GL state referenced from inside ARB vertex and * fragment programs. * A string such as "state.light[0].ambient" gets translated into a @@ -185,7 +184,7 @@ enum state_index { STATE_INTERNAL, /* Mesa additions */ STATE_NORMAL_SCALE, - STATE_POSITION_NORMALIZED + STATE_POSITION_NORMALIZED /* normalized light position */ }; @@ -256,7 +255,7 @@ _mesa_load_state_parameters(GLcontext *ctx, /* - * API functions + * API functions common to ARB/NV_vertex/fragment_program */ extern void GLAPIENTRY |