From 4887b88d22f6a26d7044a2d46b28553aaf0dc770 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Iv=C3=A1n=20Briano?= Date: Tue, 28 Feb 2023 16:04:56 -0800 Subject: [PATCH] anv: use the parameter passed to the macro MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The two points calling this macro pass dyn->rs.provoking_vertex to it, which is why it works, but it's cleaner to use the parameter instead. Reviewed-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 7f935cc..309639c 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -4011,7 +4011,7 @@ anv_line_rasterization_mode(VkLineRasterizationModeEXT line_mode, /* Fill provoking vertex mode to packet. */ #define ANV_SETUP_PROVOKING_VERTEX(cmd, mode) \ - switch (dyn->rs.provoking_vertex) { \ + switch (mode) { \ case VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT: \ cmd.TriangleStripListProvokingVertexSelect = 0; \ cmd.LineStripListProvokingVertexSelect = 0; \ -- 2.7.4