mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 06:00:35 +01:00
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:
parent
ea52d0d9e0
commit
2a8e627e3a
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue