diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-06-30 21:03:40 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-06-30 23:30:55 +0200 |
commit | 87d3349393336d25f28ab0ad0cc5b479340e7fa3 (patch) | |
tree | 8ce81238bc9f6c315fe1d62324a66e10d2c027c7 /src/amd | |
parent | f215f42f1b325c7e15d03b1cc0c889a4b8f84cdd (diff) |
radv: Use v4i32 variant of llvm.SI.load.const.
We apparently still used v16i8 ....
As radeonsi doesn't use it with LLVM version checks I don't think
we need them either.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 2c5557c67f0..51daa3cff36 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2408,8 +2408,6 @@ static LLVMValueRef visit_load_ubo_buffer(struct nir_to_llvm_context *ctx, LLVMValueRef offset = get_src(ctx, instr->src[1]); int num_components = instr->num_components; - rsrc = LLVMBuildBitCast(ctx->builder, rsrc, LLVMVectorType(ctx->i8, 16), ""); - if (instr->dest.ssa.bit_size == 64) num_components *= 2; @@ -2419,7 +2417,7 @@ static LLVMValueRef visit_load_ubo_buffer(struct nir_to_llvm_context *ctx, LLVMBuildAdd(ctx->builder, LLVMConstInt(ctx->i32, 4 * i, 0), offset, "") }; - results[i] = ac_build_intrinsic(&ctx->ac, "llvm.SI.load.const", ctx->f32, + results[i] = ac_build_intrinsic(&ctx->ac, "llvm.SI.load.const.v4i32", ctx->f32, params, 2, AC_FUNC_ATTR_READNONE | AC_FUNC_ATTR_LEGACY); |