mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 03:40:10 +01:00
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:
parent
4c315bdbfa
commit
e6e21dfbf2
2 changed files with 3 additions and 2 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue