mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
vulkan: Fix calculation of flags in vk_graphics_pipeline_state_fill
Fixes:2b62d90158("vk/graphics_state: Support VK_KHR_maintenance5") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10705 Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27929> (cherry picked from commit4b7f4724f8)
This commit is contained in:
parent
fa4eea1f12
commit
b98965d507
2 changed files with 5 additions and 3 deletions
|
|
@ -764,7 +764,7 @@
|
|||
"description": "vulkan: Fix calculation of flags in vk_graphics_pipeline_state_fill",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "2b62d90158821f16a9b223a04b2b5a7641b98f34",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1283,9 +1283,11 @@ vk_graphics_pipeline_state_fill(const struct vk_device *device,
|
|||
vk_find_struct_const(info->pNext, GRAPHICS_PIPELINE_LIBRARY_CREATE_INFO_EXT);
|
||||
const VkPipelineLibraryCreateInfoKHR *lib_info =
|
||||
vk_find_struct_const(info->pNext, PIPELINE_LIBRARY_CREATE_INFO_KHR);
|
||||
|
||||
VkPipelineCreateFlags2KHR pipeline_flags = vk_graphics_pipeline_create_flags(info);
|
||||
|
||||
VkShaderStageFlagBits allowed_stages;
|
||||
if (!(info->flags & VK_PIPELINE_CREATE_LIBRARY_BIT_KHR)) {
|
||||
if (!(pipeline_flags & VK_PIPELINE_CREATE_2_LIBRARY_BIT_KHR)) {
|
||||
allowed_stages = VK_SHADER_STAGE_ALL_GRAPHICS |
|
||||
VK_SHADER_STAGE_TASK_BIT_EXT |
|
||||
VK_SHADER_STAGE_MESH_BIT_EXT;
|
||||
|
|
@ -1330,7 +1332,7 @@ vk_graphics_pipeline_state_fill(const struct vk_device *device,
|
|||
if (gpl_info) {
|
||||
lib = gpl_info->flags;
|
||||
} else if ((lib_info && lib_info->libraryCount > 0) ||
|
||||
(info->flags & VK_PIPELINE_CREATE_LIBRARY_BIT_KHR)) {
|
||||
(pipeline_flags & VK_PIPELINE_CREATE_2_LIBRARY_BIT_KHR)) {
|
||||
/*
|
||||
* From the Vulkan 1.3.210 spec:
|
||||
* "If this structure is omitted, and either VkGraphicsPipelineCreateInfo::flags
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue