From: Connor Abbott Date: Fri, 2 Aug 2019 09:14:50 +0000 (+0200) Subject: Revert "ac/nir: handle negate modifier" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73274c9ec218117d4a7de34a35f39b4e9aef8d5a;p=mesa.git Revert "ac/nir: handle negate modifier" This reverts commit bfea7e4d2965269bff8f1f6449cb99c312fd7384. --- diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index f78daf694e8..457a8d71703 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -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; }