From: Iván Briano Date: Wed, 1 Mar 2023 00:04:56 +0000 (-0800) Subject: anv: use the parameter passed to the macro X-Git-Tag: upstream/23.3.3~12347 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4887b88d22f6a26d7044a2d46b28553aaf0dc770;p=platform%2Fupstream%2Fmesa.git anv: use the parameter passed to the macro 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: --- 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; \