radeonsi: fix build with LLVM 3.6
authorMarek Olšák <marek.olsak@amd.com>
Thu, 11 Feb 2016 16:49:39 +0000 (17:49 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 11 Feb 2016 23:41:36 +0000 (00:41 +0100)
Broken by this cleanup: 3dc1cb0cc7605a2f3128311f5a6052f740fc7b0d

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index baa1090e2fbee4bdcdfa69faa7dfb73963b71d18..19c427a1bb9160860a6c855f038dd6626e595b44 100644 (file)
@@ -4336,7 +4336,7 @@ static void si_init_shader_ctx(struct si_shader_context *ctx,
        ctx->i1 = LLVMInt1TypeInContext(ctx->radeon_bld.gallivm.context);
        ctx->i8 = LLVMInt8TypeInContext(ctx->radeon_bld.gallivm.context);
        ctx->i32 = LLVMInt32TypeInContext(ctx->radeon_bld.gallivm.context);
-       ctx->i128 = LLVMInt128TypeInContext(ctx->radeon_bld.gallivm.context);
+       ctx->i128 = LLVMIntTypeInContext(ctx->radeon_bld.gallivm.context, 128);
        ctx->f32 = LLVMFloatTypeInContext(ctx->radeon_bld.gallivm.context);
        ctx->v16i8 = LLVMVectorType(ctx->i8, 16);
        ctx->v4i32 = LLVMVectorType(ctx->i32, 4);