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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user