mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 15:32:24 +01:00
asahi: avoid silly internal NIR_PASS in gs lowering
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26976>
This commit is contained in:
parent
c87d46b600
commit
afefcc3b30
1 changed files with 4 additions and 4 deletions
|
|
@ -1054,14 +1054,14 @@ agx_nir_lower_gs(nir_shader *gs, nir_shader *vs, const nir_shader *libagx,
|
|||
* anything. Otherwise, smash the invocation ID to zero.
|
||||
*/
|
||||
if (gs->info.gs.invocations != 1) {
|
||||
NIR_PASS_V(gs, agx_nir_lower_gs_instancing);
|
||||
agx_nir_lower_gs_instancing(gs);
|
||||
} else {
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(gs);
|
||||
nir_builder b = nir_builder_at(nir_before_impl(impl));
|
||||
|
||||
NIR_PASS_V(gs, nir_shader_intrinsics_pass, rewrite_invocation_id,
|
||||
nir_metadata_block_index | nir_metadata_dominance,
|
||||
nir_imm_int(&b, 0));
|
||||
nir_shader_intrinsics_pass(
|
||||
gs, rewrite_invocation_id,
|
||||
nir_metadata_block_index | nir_metadata_dominance, nir_imm_int(&b, 0));
|
||||
}
|
||||
|
||||
/* Link VS into the GS */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue