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: f3876db1ee ("vulkan: Plumb rendering flags through vk_graphics_pipeline_state")
Reviewed-by: Faith Ekstrand <faith.ekstrand@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22301>
This commit is contained in:
Connor Abbott 2023-04-04 19:49:28 +02:00 committed by Marge Bot
parent ea52d0d9e0
commit 2a8e627e3a

View file

@ -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