radeonsi: get rid of the ambiguous "prologue" word
It has nothing to do with our "prolog" shader parts. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16467>
This commit is contained in:
parent
4118717cba
commit
2b7906ea74
|
@ -1835,7 +1835,7 @@ void gfx10_ngg_gs_emit_vertex(struct si_shader_context *ctx, unsigned stream, LL
|
|||
ac_build_endif(&ctx->ac, 9001);
|
||||
}
|
||||
|
||||
void gfx10_ngg_gs_emit_prologue(struct si_shader_context *ctx)
|
||||
void gfx10_ngg_gs_emit_begin(struct si_shader_context *ctx)
|
||||
{
|
||||
/* Zero out the part of LDS scratch that is used to accumulate the
|
||||
* per-stream generated primitive count.
|
||||
|
|
|
@ -193,7 +193,7 @@ void gfx10_ngg_build_export_prim(struct si_shader_context *ctx, LLVMValueRef use
|
|||
void gfx10_ngg_culling_build_end(struct si_shader_context *ctx);
|
||||
void gfx10_ngg_build_end(struct si_shader_context *ctx);
|
||||
void gfx10_ngg_gs_emit_vertex(struct si_shader_context *ctx, unsigned stream, LLVMValueRef *addrs);
|
||||
void gfx10_ngg_gs_emit_prologue(struct si_shader_context *ctx);
|
||||
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);
|
||||
|
|
|
@ -870,7 +870,7 @@ bool si_llvm_translate_nir(struct si_shader_context *ctx, struct si_shader *shad
|
|||
|
||||
/* NGG GS: Initialize LDS and insert s_barrier, which must not be inside the if statement. */
|
||||
if (ctx->stage == MESA_SHADER_GEOMETRY && shader->key.ge.as_ngg)
|
||||
gfx10_ngg_gs_emit_prologue(ctx);
|
||||
gfx10_ngg_gs_emit_begin(ctx);
|
||||
|
||||
if (ctx->stage == MESA_SHADER_GEOMETRY ||
|
||||
(ctx->stage == MESA_SHADER_TESS_CTRL && !shader->is_monolithic)) {
|
||||
|
@ -928,7 +928,7 @@ bool si_llvm_translate_nir(struct si_shader_context *ctx, struct si_shader *shad
|
|||
ac_build_s_barrier(&ctx->ac, ctx->stage);
|
||||
}
|
||||
} else if (ctx->stage == MESA_SHADER_GEOMETRY && !shader->key.ge.as_ngg) {
|
||||
/* gfx10_ngg_gs_emit_prologue inserts the barrier for NGG. */
|
||||
/* gfx10_ngg_gs_emit_begin inserts the barrier for NGG. */
|
||||
ac_build_waitcnt(&ctx->ac, AC_WAIT_LGKM);
|
||||
ac_build_s_barrier(&ctx->ac, ctx->stage);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue