shader-slang / slang

Making it easier to work with shaders
http://shader-slang.com
MIT License
2.14k stars 181 forks source link

Slang-RHI: Intel driver crashes in vkCreateDevice during DeviceImpl::initVulkanInstanceAndDevice #5275

Open aleino-nv opened 1 week ago

aleino-nv commented 1 week ago

Note again that this is for the intel driver, igvk64.dll. Edit: However, there are issues even when running on discrete GPU: https://github.com/shader-slang/slang/issues/5275#issuecomment-2410225134

I ran slang-test -bindir %BINDIR% -category full -api wgpu tests/bugs/atomic-coerce.slang. I don't understand why slang-test is creating a Vulkan device.

Affected tests:

csyonghe commented 1 week ago

slang-test will attempt to create a device at start with all possible APIs to determine which APIs are available on the system.

aleino-nv commented 1 week ago

slang-test will attempt to create a device at start with all possible APIs to determine which APIs are available on the system.

Ok I see.

in slang-test.exe: Microsoft C++ exception: VK::Exception at memory location 0x000000AEAD598A58

Should we wrap this in a try-catch and just conclude that VK is not available in this case? Currently it seems to tear down the whole test.

aleino-nv commented 1 week ago

For the moment I'll set slang-test to use the discrete GPU on my machine.

aleino-nv commented 1 week ago

For the moment I'll set slang-test to use the discrete GPU on my machine.

That didn't help much. Still crashing but now instead on WGPU device/instance destructors. Need to investigate this case as well.