Module: Mesa
Branch: main
Commit: 4887b88d22f6a26d7044a2d46b28553aaf0dc770
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4887b88d22f6a26d7044a2d46b28553aaf0dc770

Author: Iván Briano <[email protected]>
Date:   Tue Feb 28 16:04:56 2023 -0800

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 <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21613>

---

 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 7f935cc8b9e..309639c2157 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;     \

Reply via email to