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

Author: George Ouzounoudis <[email protected]>
Date:   Thu Aug 24 20:03:02 2023 +0300

vulkan: Fix dynamic graphics state enum usage

Simply replace the correct rasterization stream enum

Fixes: 9d0ed9cbcc01 ("vulkan: Add more dynamic rasterizer state")
Reviewed-by: Faith Ekstrand <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24872>

---

 src/vulkan/runtime/vk_graphics_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vulkan/runtime/vk_graphics_state.c 
b/src/vulkan/runtime/vk_graphics_state.c
index 2bfc3833153..d4f42c3083b 100644
--- a/src/vulkan/runtime/vk_graphics_state.c
+++ b/src/vulkan/runtime/vk_graphics_state.c
@@ -2423,7 +2423,7 @@ vk_common_CmdSetRasterizationStreamEXT(VkCommandBuffer 
commandBuffer,
    VK_FROM_HANDLE(vk_command_buffer, cmd, commandBuffer);
    struct vk_dynamic_graphics_state *dyn = &cmd->dynamic_graphics_state;
 
-   SET_DYN_VALUE(dyn, RS_PROVOKING_VERTEX,
+   SET_DYN_VALUE(dyn, RS_RASTERIZATION_STREAM,
                  rs.rasterization_stream, rasterizationStream);
 }
 

Reply via email to