mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
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 <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21613>
This commit is contained in:
parent
a8691f916b
commit
4887b88d22
1 changed files with 1 additions and 1 deletions
|
|
@ -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; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue