vkCreateGraphicsPipelines call fail to compile specific SPIR-V fragment shader on some nvidia laptop gpus

vulkan-test.zip (213.4 KB)
GPU: NVIDIA GeForce RTX 3050Ti Laptop GPU
OS: Windows 11 Home 22621.2715
Driver: game ready 31.0.15.4617

I’ve been encountering vkCreateGraphicsPipelines failure and return error code VK_ERROR_UNKNOWN issue when try to compile a specific SPIR-V fragment shader on nvidia RTX 3050Ti laptop gpu with driver version 31.0.15.4617 and other versions released in 2023 october, the test source code and its precompiled executable and related vertex/fragment shaders are included in the attachment vulkan-test.zip. This issue also reproduced on some GTX 1660Ti max-Q gpu and RTX 3060 laptop gpu.
When i enable VK_LAYER_KHRONOS_validation, the debug message callback prints some compile error message as following:
NVVM compilation failed: 1
[VALIDATION]: Driver - CreatePipeline: failed to compile internal representation
[VALIDATION]: Driver - CreatePipeline: unexpected compilation failure
[VALIDATION]: Driver - CreateGraphicsPipeline: unexpected failure compiling SPIR-V shader: 0xcd85fbd896ea802f

This SPIR-V fragment shader compiled successfully on desktop nvidia gpus such as GT1030(tested on driver version 31.0.15.4617 and 31.0.15.3623) and GTX1050Ti(driver version 31.0.15.4617) and other vendor’s gpu such as intel uhd gpu.

Hello @hbye04, welcome to the NVIDIA developer forums.

Thank you for bringing this up.

Sadly there is not much I can do to give you immediate assistance, but opened up an internal issue for this, so hopefully engineering will come back to me no this soon.

Thanks!

Our latest Vulkan beta driver Windows version 538.03 and Linux version 535.43.20 have a fix for this problem. You can find the beta drivers here: https://developer.nvidia.com/vulkan-driver. Let us know how it works out for you. Many thanks.

The vulkan beta driver Windows version 538.03 fixed the problem, thanks.