Closed Neo-Zhixing closed 11 months ago
@Neo-Zhixing could the issue be reproduced on Linux with amdvlk opensource driver? we find an issue in driver and have a fix, but it is in our proprietary shader compiler and only impacts our closed source driver. do you have a simple app for us to verify the fix?
Please check the fix with latest release
vkCreateRayTracingPipelinesKHR
seems to incorrectly assume thatstageCount > 0
andgroupCount > 0
, which are actually allowed by Vulkan specs. One might want to create a ray tracing pipeline entirely from pipeline libraries. However, callingvkCreateRayTracingPipelinesKHR
like this creates a segfault.Adding a dummy shader stage and general shader group to
VkRayTracingPipelineCreateInfoKHR
resolves the issue.This can be reproduced both on Linux and on Windows.
On Windows, this produces a stack frame that looks like this:![image](https://user-images.githubusercontent.com/8980455/233517303-7faf637b-ad98-4554-b7f4-a8461de79a1c.png)
On Ubuntu, this causes the screen to become completely frozen.
The issue was reproduced on all AMD GPUs I own: RX6600XT, RX6700S, and the integrated graphics in Ryzen 9 6900S.