From ee4e7b9d4dcec46ddff0471b34dd654e82f288f0 Mon Sep 17 00:00:00 2001 From: antonino Date: Tue, 4 Apr 2023 18:55:52 +0200 Subject: [PATCH] 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: 5a4083349f3 ("zink: add provoking vertex mode lowering") Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/zink_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index a23a036ad90..30c4873d68f 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -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