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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user