Module: Mesa
Branch: main
Commit: a5952c362e9100bf9916a9006f8f11bca52d47c2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5952c362e9100bf9916a9006f8f11bca52d47c2

Author: Jason Ekstrand <[email protected]>
Date:   Wed Jul 20 18:17:21 2022 -0500

vulkan: Don't assert VkGraphicsPipelineLibraryCreateInfoEXT::Flags == 0

There are VUs that imply that this is a requirement but the CTS seems to
ignore it.

Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17696>

---

 src/vulkan/runtime/vk_graphics_state.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/vulkan/runtime/vk_graphics_state.c 
b/src/vulkan/runtime/vk_graphics_state.c
index b566fc23091..620e41de768 100644
--- a/src/vulkan/runtime/vk_graphics_state.c
+++ b/src/vulkan/runtime/vk_graphics_state.c
@@ -1066,16 +1066,6 @@ vk_graphics_pipeline_state_fill(const struct vk_device 
*device,
    if (info->flags & VK_PIPELINE_CREATE_LIBRARY_BIT_KHR) {
       const VkGraphicsPipelineLibraryCreateInfoEXT *gfx_lib_info =
          vk_find_struct_const(info->pNext, 
GRAPHICS_PIPELINE_LIBRARY_CREATE_INFO_EXT);
-
-      /* If we're building a pipeline library, trust the client.
-       *
-       * From the Vulkan 1.3.218 spec:
-       *
-       *    VUID-VkGraphicsPipelineLibraryCreateInfoEXT-flags-requiredbitmask
-       *
-       *    "flags must not be 0"
-       */
-      assert(gfx_lib_info->flags != 0);
       lib = gfx_lib_info->flags;
    } else {
       /* We're building a complete pipeline.  From the Vulkan 1.3.218 spec:

Reply via email to