mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
zink: fix pv mode lowring index calculation
The provoking vertex mode pass was calculating an offset and then using
it directly instead of adding it to the base index.
Fixes: 5a4083349f ("zink: add provoking vertex mode lowering")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22599>
This commit is contained in:
parent
aa45b13398
commit
436dacf754
1 changed files with 1 additions and 0 deletions
|
|
@ -470,6 +470,7 @@ lower_pv_mode_emit_rotated_prim(nir_builder *b,
|
|||
else if (state->prim == ZINK_PVE_PRIMITIVE_FAN)
|
||||
rotated_i = nir_imod(b, nir_iadd_imm(b, rotated_i, 2),
|
||||
three);
|
||||
rotated_i = nir_iadd(b, rotated_i, current_vertex);
|
||||
nir_foreach_variable_with_modes(var, b->shader, nir_var_shader_out) {
|
||||
gl_varying_slot location = var->data.location;
|
||||
if (state->varyings[location]) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue