mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
asahi/gs: avoid recalculating
we'd CSE but meh Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33901>
This commit is contained in:
parent
e70544d135
commit
184416a5e8
1 changed files with 1 additions and 3 deletions
|
|
@ -1059,9 +1059,7 @@ agx_nir_create_pre_gs(struct lower_gs_state *state, bool indexed, bool restart,
|
|||
|
||||
nir_def *emitted_prims = nir_imm_int(b, 0);
|
||||
u_foreach_bit(i, streams) {
|
||||
emitted_prims =
|
||||
nir_iadd(b, emitted_prims,
|
||||
previous_xfb_primitives(b, state, i, unrolled_in_prims));
|
||||
emitted_prims = nir_iadd(b, emitted_prims, in_prims[i]);
|
||||
}
|
||||
|
||||
add_counter(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue