From 2a8e627e3a41dbf7e363c81cc55ea939bc6a2afe Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 4 Apr 2023 19:49:28 +0200 Subject: [PATCH] vulkan: Fix renderpass flags with driver-specific renderpass We need to use the driver's renderpass to get the flags if the driver provides it. Fixes: f3876db1ee5 ("vulkan: Plumb rendering flags through vk_graphics_pipeline_state") Reviewed-by: Faith Ekstrand Reviewed-by: Lionel Landwerlin Part-of: --- src/vulkan/runtime/vk_graphics_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vulkan/runtime/vk_graphics_state.c b/src/vulkan/runtime/vk_graphics_state.c index 95228d6cc2c..8b749d11e74 100644 --- a/src/vulkan/runtime/vk_graphics_state.c +++ b/src/vulkan/runtime/vk_graphics_state.c @@ -1041,7 +1041,8 @@ vk_render_pass_state_init(struct vk_render_pass_state *rp, VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT; } const VkPipelineCreateFlags pipeline_flags = - vk_get_pipeline_rendering_flags(info) & valid_pipeline_flags; + (driver_rp ? driver_rp->pipeline_flags : + vk_get_pipeline_rendering_flags(info)) & valid_pipeline_flags; /* If we already have render pass state and it has attachment info, then * it's complete and we don't need a new one. The one caveat here is that