mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
57fa9a2b8e
commit
b0698b796e
1 changed files with 1 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue