radeonsi: kill outputs for mesh shader

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37505>
This commit is contained in:
Qiang Yu 2025-07-01 14:46:12 +08:00 committed by Marge Bot
parent 4c315bdbfa
commit e6e21dfbf2
2 changed files with 3 additions and 2 deletions

View file

@ -9,7 +9,8 @@ bool si_nir_kill_outputs(nir_shader *nir, const union si_shader_key *key)
{
nir_function_impl *impl = nir_shader_get_entrypoint(nir);
assert(impl);
assert(nir->info.stage <= MESA_SHADER_GEOMETRY);
assert(nir->info.stage <= MESA_SHADER_GEOMETRY ||
nir->info.stage == MESA_SHADER_MESH);
if (!key->ge.opt.kill_outputs &&
!key->ge.opt.kill_pointsize &&

View file

@ -1321,7 +1321,7 @@ static void run_pre_link_optimization_passes(struct si_nir_shader_ctx *ctx)
bool progress = false;
/* Kill outputs according to the shader key. */
if (nir->info.stage <= MESA_SHADER_GEOMETRY)
if (nir->info.stage <= MESA_SHADER_GEOMETRY || nir->info.stage == MESA_SHADER_MESH)
NIR_PASS(progress, nir, si_nir_kill_outputs, key);
bool inline_uniforms = false;