0

I'm trying to implement Vulkan to my game but I'm stuck at vkGetPhysicalDeviceSurfaceCapabilitiesKHR because the function not returning it just crash inside function.

I'm sure both VkPhysicalDevice and VkSurfaceKHR are initialized as they are used in other that works as expected.

I'm running Linux on X11 and I've an Intel chip and discrete Nvidia card. the function works fine when it getting surfaceCapabilities from Intel device but it crashes when it's Nvidia device.

Furthermore the function not returning any error, it even not returning zero.

EDIT

There is also no validation error.

Here a sample that illustrate the porblem :

3
  • @AlanBirtles I've updated my question on this new post because the older one got closed.
    – Gwendal
    Mar 1, 2021 at 17:10
  • @SaschaWillems I've updated my question on this new post because the older one got closed.
    – Gwendal
    Mar 1, 2021 at 17:11
  • I've runned vkcube demo and it's also crashing when using the Nvidia gpu. So I think it's a driver issue. I'm waiting for driver update.
    – Gwendal
    Mar 1, 2021 at 17:39

1 Answer 1

0

Ok my problem is solved, it was related to my setup. I'm running a linux laptop and the support for hybrid graphics is poor. But my program is working !!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.