zink: fix line strip offsets in pv mode emulation

Offsets for line strips don't need to alternate like they do for
triangle strips.

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>
(cherry picked from commit ee4e7b9d4d)
This commit is contained in:
antonino 2023-04-04 18:55:52 +02:00 committed by Eric Engestrom
parent b918a421d8
commit 1ec333e6b6
2 changed files with 2 additions and 2 deletions

View file

@ -229,7 +229,7 @@
"description": "zink: fix line strip offsets in pv mode emulation",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "5a4083349f36ef6db36a962327de6952a30d0c92"
},

View file

@ -446,7 +446,7 @@ lower_pv_mode_emit_rotated_prim(nir_builder *b,
* [lines, tris][even/odd index][vertex mod 3]
*/
static const unsigned vert_maps[2][2][3] = {
{{1, 0, 0}, {0, 1, 0}},
{{1, 0, 0}, {1, 0, 0}},
{{2, 0, 1}, {2, 1, 0}}
};
/* When the primive supplied to the gs comes from a strip, the last provoking vertex