radeonsi: don't use lp_build_alloca

This commit is contained in:
Marek Olšák 2019-07-23 20:41:30 -04:00
parent 9234275320
commit 3406a57ff3
3 changed files with 3 additions and 4 deletions

View File

@ -1137,7 +1137,7 @@ void gfx10_ngg_gs_emit_epilogue(struct si_shader_context *ctx)
/* TODO: culling */
/* Determine vertex liveness. */
LLVMValueRef vertliveptr = lp_build_alloca(&ctx->gallivm, ctx->ac.i1, "vertexlive");
LLVMValueRef vertliveptr = ac_build_alloca(&ctx->ac, ctx->ac.i1, "vertexlive");
tmp = LLVMBuildICmp(builder, LLVMIntULT, tid, num_emit_threads, "");
ac_build_ifcc(&ctx->ac, tmp, 5120);

View File

@ -31,7 +31,6 @@
#include "ac_llvm_util.h"
#include "radeon/radeon_uvd.h"
#include "gallivm/lp_bld_misc.h"
#include "util/disk_cache.h"
#include "util/u_log.h"
#include "util/u_memory.h"

View File

@ -6151,9 +6151,9 @@ static bool si_compile_tgsi_main(struct si_shader_context *ctx)
if (shader->key.as_ngg) {
for (unsigned i = 0; i < 4; ++i) {
ctx->gs_curprim_verts[i] =
lp_build_alloca(&ctx->gallivm, ctx->ac.i32, "");
ac_build_alloca(&ctx->ac, ctx->ac.i32, "");
ctx->gs_generated_prims[i] =
lp_build_alloca(&ctx->gallivm, ctx->ac.i32, "");
ac_build_alloca(&ctx->ac, ctx->ac.i32, "");
}
unsigned scratch_size = 8;