radeonsi: remove unused ngg llvm code
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17109>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -141,9 +141,6 @@ struct si_shader_context {
|
||||
LLVMValueRef tess_offchip_ring;
|
||||
LLVMValueRef instance_divisor_constbuf;
|
||||
|
||||
LLVMValueRef gs_next_vertex[4];
|
||||
LLVMValueRef gs_curprim_verts[4];
|
||||
LLVMValueRef gs_generated_prims[4];
|
||||
LLVMValueRef gs_ngg_emit;
|
||||
struct ac_llvm_pointer gs_ngg_scratch;
|
||||
LLVMValueRef return_value;
|
||||
@@ -181,18 +178,10 @@ void si_fix_resource_usage(struct si_screen *sscreen, struct si_shader *shader);
|
||||
LLVMValueRef gfx10_get_thread_id_in_tg(struct si_shader_context *ctx);
|
||||
unsigned gfx10_ngg_get_vertices_per_prim(struct si_shader *shader);
|
||||
bool gfx10_ngg_export_prim_early(struct si_shader *shader);
|
||||
void gfx10_ngg_build_sendmsg_gs_alloc_req(struct si_shader_context *ctx);
|
||||
void gfx10_ngg_build_export_prim(struct si_shader_context *ctx, LLVMValueRef user_edgeflags[3],
|
||||
LLVMValueRef prim_passthrough);
|
||||
void gfx10_ngg_culling_build_end(struct si_shader_context *ctx);
|
||||
void gfx10_ngg_build_end(struct si_shader_context *ctx);
|
||||
void gfx10_ngg_export_vertex(struct ac_shader_abi *abi);
|
||||
void gfx10_ngg_atomic_add_prim_count(struct ac_shader_abi *abi, unsigned stream,
|
||||
LLVMValueRef prim_count, enum ac_prim_count count_type);
|
||||
void gfx10_ngg_gs_emit_vertex(struct si_shader_context *ctx, unsigned stream,
|
||||
LLVMValueRef vertexidx, LLVMValueRef *addrs);
|
||||
void gfx10_ngg_gs_emit_begin(struct si_shader_context *ctx);
|
||||
void gfx10_ngg_gs_build_end(struct si_shader_context *ctx);
|
||||
unsigned gfx10_ngg_get_scratch_dw_size(struct si_shader *shader);
|
||||
bool gfx10_ngg_calculate_subgroup_info(struct si_shader *shader);
|
||||
|
||||
|
||||
@@ -167,10 +167,7 @@ static void si_llvm_emit_vertex(struct ac_shader_abi *abi, unsigned stream,
|
||||
{
|
||||
struct si_shader_context *ctx = si_shader_context_from_abi(abi);
|
||||
|
||||
if (ctx->shader->key.ge.as_ngg) {
|
||||
gfx10_ngg_gs_emit_vertex(ctx, stream, vertexidx, addrs);
|
||||
return;
|
||||
}
|
||||
assert(!ctx->shader->key.ge.as_ngg);
|
||||
|
||||
struct si_shader_info *info = &ctx->shader->selector->info;
|
||||
struct si_shader *shader = ctx->shader;
|
||||
@@ -213,10 +210,7 @@ static void si_llvm_emit_primitive(struct ac_shader_abi *abi, unsigned stream)
|
||||
{
|
||||
struct si_shader_context *ctx = si_shader_context_from_abi(abi);
|
||||
|
||||
if (ctx->shader->key.ge.as_ngg) {
|
||||
LLVMBuildStore(ctx->ac.builder, ctx->ac.i32_0, ctx->gs_curprim_verts[stream]);
|
||||
return;
|
||||
}
|
||||
assert(!ctx->shader->key.ge.as_ngg);
|
||||
|
||||
/* Signal primitive cut */
|
||||
ac_build_sendmsg(&ctx->ac, AC_SENDMSG_GS_OP_CUT | AC_SENDMSG_GS | (stream << 8),
|
||||
|
||||
Reference in New Issue
Block a user