diff options
author | Samuel Pitoiset <[email protected]> | 2017-12-12 18:10:22 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-12-14 22:24:42 +0100 |
commit | 24601810e9ea2847898e17a1b97323af89727585 (patch) | |
tree | 1cd1f50010ad16e07bf2872d69153bdb609fff26 | |
parent | ec4e566560ed9ae5afc38bf61fe5cf202f522505 (diff) |
amd/common: more use of i32_1
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 4ce8c8f0b69..25bdb341e0a 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -1996,7 +1996,7 @@ get_buffer_size(struct ac_nir_context *ctx, LLVMValueRef descriptor, bool in_ele */ LLVMValueRef stride = LLVMBuildExtractElement(ctx->ac.builder, descriptor, - LLVMConstInt(ctx->ac.i32, 1, false), ""); + ctx->ac.i32_1, ""); stride = LLVMBuildLShr(ctx->ac.builder, stride, LLVMConstInt(ctx->ac.i32, 16, false), ""); stride = LLVMBuildAnd(ctx->ac.builder, stride, @@ -6084,20 +6084,20 @@ write_tess_factors(struct nir_to_llvm_context *ctx) if (ctx->options->key.tcs.primitive_mode == GL_ISOLINES) { outer[0] = out[1] = ac_lds_load(&ctx->ac, lds_outer); lds_outer = LLVMBuildAdd(ctx->builder, lds_outer, - LLVMConstInt(ctx->ac.i32, 1, false), ""); + ctx->ac.i32_1, ""); outer[1] = out[0] = ac_lds_load(&ctx->ac, lds_outer); } else { for (i = 0; i < outer_comps; i++) { outer[i] = out[i] = ac_lds_load(&ctx->ac, lds_outer); lds_outer = LLVMBuildAdd(ctx->builder, lds_outer, - LLVMConstInt(ctx->ac.i32, 1, false), ""); + ctx->ac.i32_1, ""); } for (i = 0; i < inner_comps; i++) { inner[i] = out[outer_comps+i] = ac_lds_load(&ctx->ac, lds_inner); lds_inner = LLVMBuildAdd(ctx->builder, lds_inner, - LLVMConstInt(ctx->ac.i32, 1, false), ""); + ctx->ac.i32_1, ""); } } |