mesa: merge the prog_src_register::NegateBase and NegateAbs fields

There's really no need for two negation fields.  This came from the
GL_NV_fragment_program extension.  The new, unified Negate bitfield applies
after the absolute value step.
This commit is contained in:
Brian Paul
2009-04-14 22:14:30 -06:00
parent 0115a4f8f1
commit 7db7ff878d
26 changed files with 156 additions and 208 deletions

View File

@@ -162,12 +162,12 @@ src_vector(struct i915_fragment_program *p,
GET_SWZ(source->Swizzle, 1),
GET_SWZ(source->Swizzle, 2), GET_SWZ(source->Swizzle, 3));
if (source->NegateBase)
if (source->Negate)
src = negate(src,
GET_BIT(source->NegateBase, 0),
GET_BIT(source->NegateBase, 1),
GET_BIT(source->NegateBase, 2),
GET_BIT(source->NegateBase, 3));
GET_BIT(source->Negate, 0),
GET_BIT(source->Negate, 1),
GET_BIT(source->Negate, 2),
GET_BIT(source->Negate, 3));
return src;
}