mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
venus/pipeline: Ignore basePipelineHandle
Signed-off-by: Chad Versace <chadversary@chromium.org> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16681>
This commit is contained in:
parent
d39e202dac
commit
33e791bc02
1 changed files with 13 additions and 0 deletions
|
|
@ -255,6 +255,7 @@ struct vn_graphics_pipeline_create_info_fix {
|
|||
bool ignore_multisample_state;
|
||||
bool ignore_depth_stencil_state;
|
||||
bool ignore_color_blend_state;
|
||||
bool ignore_base_pipeline_handle;
|
||||
};
|
||||
|
||||
/** Temporary storage for fixes in vkCreateGraphicsPipelines. */
|
||||
|
|
@ -483,6 +484,15 @@ vn_fix_graphics_pipeline_create_info(
|
|||
}
|
||||
}
|
||||
|
||||
/* Ignore basePipelineHandle?
|
||||
* VUID-VkGraphicsPipelineCreateInfo-flags-00722
|
||||
*/
|
||||
if (!(info->flags & VK_PIPELINE_CREATE_DERIVATIVE_BIT) ||
|
||||
info->basePipelineIndex != -1) {
|
||||
fix.ignore_base_pipeline_handle = true;
|
||||
any_fix = true;
|
||||
}
|
||||
|
||||
if (!any_fix)
|
||||
continue;
|
||||
|
||||
|
|
@ -524,6 +534,9 @@ vn_fix_graphics_pipeline_create_info(
|
|||
|
||||
if (fix.ignore_color_blend_state)
|
||||
fixes->create_infos[i].pColorBlendState = NULL;
|
||||
|
||||
if (fix.ignore_base_pipeline_handle)
|
||||
fixes->create_infos[i].basePipelineHandle = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
if (!fixes)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue