mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
asahi: rm dated comment
no longer confusing. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29179>
This commit is contained in:
parent
8fd2e3c71b
commit
d90887a7f1
1 changed files with 2 additions and 7 deletions
|
|
@ -231,14 +231,9 @@ lower_gs_inputs(nir_builder *b, nir_intrinsic_instr *intr, void *_)
|
|||
nir_def *vertex = vertex_id_for_topology_class(
|
||||
b, vert_in_prim, b->shader->info.gs.input_primitive);
|
||||
|
||||
/* The unrolled vertex ID uses the input_vertices, which differs from what
|
||||
* our load_num_vertices will return (vertices vs primitives).
|
||||
*/
|
||||
nir_def *verts = load_geometry_param(b, input_vertices);
|
||||
nir_def *unrolled =
|
||||
nir_iadd(b,
|
||||
nir_imul(b, nir_load_instance_id(b),
|
||||
load_geometry_param(b, input_vertices)),
|
||||
vertex);
|
||||
nir_iadd(b, nir_imul(b, nir_load_instance_id(b), verts), vertex);
|
||||
|
||||
nir_def *val = agx_load_per_vertex_input(b, intr, unrolled);
|
||||
nir_def_rewrite_uses(&intr->def, val);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue