agx: drop shader stage assertion

we'll reuse these for SW VS too which is HW compute

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
Alyssa Rosenzweig 2024-03-18 20:13:39 -04:00 committed by Marge Bot
parent 57fa9a2b8e
commit b0698b796e

View file

@ -1289,11 +1289,10 @@ agx_emit_intrinsic(agx_builder *b, nir_intrinsic_instr *instr)
agx_zero(), AGX_ICOND_UEQ, false);
case nir_intrinsic_load_vertex_id:
assert(b->shader->stage == MESA_SHADER_VERTEX);
/* We don't assert the HW stage since we use this same ABI with SW VS */
return agx_mov_to(b, dst, agx_abs(agx_vertex_id(b)));
case nir_intrinsic_load_instance_id:
assert(b->shader->stage == MESA_SHADER_VERTEX);
return agx_mov_to(b, dst, agx_abs(agx_instance_id(b)));
case nir_intrinsic_load_preamble: