From 79b2605743e40b4fb99bd79e8de6bf53647a59ba Mon Sep 17 00:00:00 2001 From: George Ouzounoudis Date: Thu, 24 Aug 2023 20:03:02 +0300 Subject: [PATCH] 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 Part-of: (cherry picked from commit d8945dd51e47a026b5219b9f9d89fedb4ace04ca) --- .pick_status.json | 2 +- src/vulkan/runtime/vk_graphics_state.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 07735c5..621d38f 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -124,7 +124,7 @@ "description": "vulkan: Fix dynamic graphics state enum usage", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "9d0ed9cbcc01b31a71037fcb35742fc8b77f09fe", "notes": null diff --git a/src/vulkan/runtime/vk_graphics_state.c b/src/vulkan/runtime/vk_graphics_state.c index eb526cc..2a8e210 100644 --- a/src/vulkan/runtime/vk_graphics_state.c +++ b/src/vulkan/runtime/vk_graphics_state.c @@ -2338,7 +2338,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); } -- 2.7.4