Revert "ac/nir: handle negate modifier"

This reverts commit bfea7e4d29.
This commit is contained in:
Connor Abbott 2019-08-02 11:14:50 +02:00
parent 4a382d66ee
commit 73274c9ec2

View file

@ -187,18 +187,7 @@ static LLVMValueRef get_alu_src(struct ac_nir_context *ctx,
swizzle, "");
}
}
if (src.negate) {
LLVMTypeRef type = LLVMTypeOf(value);
if (LLVMGetTypeKind(type) == LLVMVectorTypeKind)
type = LLVMGetElementType(type);
if (LLVMGetTypeKind(type) == LLVMIntegerTypeKind)
value = LLVMBuildNeg(ctx->ac.builder, value, "");
else
value = LLVMBuildFNeg(ctx->ac.builder, value, "");
}
assert(!src.negate);
assert(!src.abs);
return value;
}