mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 10:40:11 +01:00
Revert "ac/nir: handle negate modifier"
This reverts commit bfea7e4d29.
This commit is contained in:
parent
4a382d66ee
commit
73274c9ec2
1 changed files with 1 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue