diff options
author | Tilman Sauerbeck <[email protected]> | 2006-05-31 17:37:23 +0000 |
---|---|---|
committer | Tilman Sauerbeck <[email protected]> | 2006-05-31 17:37:23 +0000 |
commit | 49db174df5ede38de6d41b05dd544186a15ffe18 (patch) | |
tree | 506337d399d2533944c07fcb13e4364993963d57 /src/mesa/drivers | |
parent | 9efe17ed9152d29cfbc9acf6fd4e38d6a3a4ca2d (diff) |
pass src->NegateBase as-is in t_src() now, as the flags are equivalent to r300's VSF_FLAGs now
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_vertexprog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertexprog.c b/src/mesa/drivers/dri/r300/r300_vertexprog.c index a405d4e1856..a2af12e6bef 100644 --- a/src/mesa/drivers/dri/r300/r300_vertexprog.c +++ b/src/mesa/drivers/dri/r300/r300_vertexprog.c @@ -269,14 +269,16 @@ static unsigned long t_src_index(struct r300_vertex_program *vp, struct prog_src static unsigned long t_src(struct r300_vertex_program *vp, struct prog_src_register *src) { - + /* src->NegateBase uses the NEGATE_ flags from program_instruction.h, + * which equal our VSF_FLAGS_ values, so it's safe to just pass it here. + */ return MAKE_VSF_SOURCE(t_src_index(vp, src), t_swizzle(GET_SWZ(src->Swizzle, 0)), t_swizzle(GET_SWZ(src->Swizzle, 1)), t_swizzle(GET_SWZ(src->Swizzle, 2)), t_swizzle(GET_SWZ(src->Swizzle, 3)), t_src_class(src->File), - src->NegateBase ? VSF_FLAG_ALL : VSF_FLAG_NONE) | (src->RelAddr << 4); + src->NegateBase) | (src->RelAddr << 4); } static unsigned long t_src_scalar(struct r300_vertex_program *vp, struct prog_src_register *src) |