5f2288095b
When compilation is required, we should return VK_PIPELINE_COMPILE_REQUIRED. The spec prevents the application from passing a module or SPIR-V code so we have nothing to compile if the cache lookup fails : VUID-VkPipelineShaderStageCreateInfo-stage-06844: If a shader module identifier is specified for this stage, a VkShaderModuleCreateInfo structure must not be present in the pNext chain VUID-VkPipelineShaderStageCreateInfo-stage-06848: If a shader module identifier is specified for this stage, module must be VK_NULL_HANDLE Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11208 Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29340>