Commit b2669445 authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer Committed by Marek Olšák
Browse files

radeonsi/gfx11: add assert in legacy vs path

Only ngg should be used.
parent 53d682d1
This commit is part of merge request !16328. Comments created here will be created in the context of that merge request.
......@@ -89,6 +89,8 @@ uint32_t ac_vgt_gs_mode(unsigned gs_max_vert_out, enum chip_class chip_class)
{
unsigned cut_mode;
assert (chip_class < GFX11);
if (gs_max_vert_out <= 128) {
cut_mode = V_028A40_GS_CUT_128;
} else if (gs_max_vert_out <= 256) {
......
......@@ -356,6 +356,9 @@ void si_preload_esgs_ring(struct si_shader_context *ctx)
void si_preload_gs_rings(struct si_shader_context *ctx)
{
if (ctx->ac.chip_class >= GFX11)
return;
const struct si_shader_selector *sel = ctx->shader->selector;
LLVMBuilderRef builder = ctx->ac.builder;
LLVMValueRef offset = LLVMConstInt(ctx->ac.i32, SI_RING_GSVS, 0);
......
......@@ -1245,6 +1245,7 @@ static void gfx10_emit_ge_cntl(struct si_context *sctx, unsigned num_patches)
} else {
unsigned primgroup_size;
unsigned vertgroup_size;
assert(GFX_VERSION < GFX11);
if (HAS_TESS) {
primgroup_size = num_patches; /* must be a multiple of NUM_PATCHES */
......
......@@ -1619,6 +1619,8 @@ static void si_shader_vs(struct si_screen *sscreen, struct si_shader *shader,
info->base.vs.window_space_position : 0;
bool enable_prim_id = shader->key.ge.mono.u.vs_export_prim_id || info->uses_primid;
assert(sscreen->info.chip_class < GFX11);
pm4 = si_get_shader_pm4_state(shader);
if (!pm4)
return;
......@@ -3676,6 +3678,8 @@ static void si_emit_vgt_flush(struct radeon_cmdbuf *cs)
/* Initialize state related to ESGS / GSVS ring buffers */
bool si_update_gs_ring_buffers(struct si_context *sctx)
{
assert(sctx->chip_class < GFX11);
struct si_shader_selector *es =
sctx->shader.tes.cso ? sctx->shader.tes.cso : sctx->shader.vs.cso;
struct si_shader_selector *gs = sctx->shader.gs.cso;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment