Module: Mesa
Branch: master
Commit: 21d71189eced527907232651d10357186abe4ced
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=21d71189eced527907232651d10357186abe4ced

Author: Timothy Arceri <tarc...@itsqueeze.com>
Date:   Thu Nov  2 12:39:48 2017 +1100

ac: use the ac i1 llvm type

Reviewed-by: Dave Airlie <airl...@redhat.com>
Reviewed-by: Marek Olšák <marek.ol...@amd.com
Acked-by: Nicolai Hähnle <nicolai.haeh...@amd.com>

---

 src/amd/common/ac_nir_to_llvm.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index d792042925..9c01f0ad37 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -134,7 +134,6 @@ struct nir_to_llvm_context {
        LLVMValueRef persp_sample, persp_center, persp_centroid;
        LLVMValueRef linear_sample, linear_center, linear_centroid;
 
-       LLVMTypeRef i1;
        LLVMTypeRef i8;
        LLVMTypeRef i16;
        LLVMTypeRef i64;
@@ -998,7 +997,6 @@ static void create_function(struct nir_to_llvm_context *ctx,
 static void setup_types(struct nir_to_llvm_context *ctx)
 {
        ctx->voidt = LLVMVoidTypeInContext(ctx->context);
-       ctx->i1 = LLVMIntTypeInContext(ctx->context, 1);
        ctx->i8 = LLVMIntTypeInContext(ctx->context, 8);
        ctx->i16 = LLVMIntTypeInContext(ctx->context, 16);
        ctx->i64 = LLVMIntTypeInContext(ctx->context, 64);
@@ -1343,7 +1341,7 @@ static LLVMValueRef emit_f2f16(struct nir_to_llvm_context 
*ctx,
                /* Check if the result is a denormal - and flush to 0 if so. */
                args[0] = result;
                args[1] = LLVMConstInt(ctx->ac.i32, N_SUBNORMAL | P_SUBNORMAL, 
false);
-               cond = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.class.f16", 
ctx->i1, args, 2, AC_FUNC_ATTR_READNONE);
+               cond = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.class.f16", 
ctx->ac.i1, args, 2, AC_FUNC_ATTR_READNONE);
        }
 
        /* need to convert back up to f32 */

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to