Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
511 stars 121 forks source link

Empty example doesn't work on X11 + Vulkan #844

Closed bluesillybeard closed 7 months ago

bluesillybeard commented 7 months ago

Describe the bug On Windows (Win32 + Vulkan) it works fine (in a virtual machine with a software implementation of Vulkan) image

On Linux, (X11 + Vulkan), the window opens but nothing is rendered on the viewport, and it's unresponsive (it won't respond to any event, such as closing or resizing). image

To Reproduce Compile the empty example ./make --from Tests/Empty --compile --target linux --arch x86_64 --graphics vulkan Run the example cd Tools/Empty/Deployment ./Empty

Expected behavior A triangle is drawn and the window closes when the X is pressed

Execution Environment:

RobDangerous commented 7 months ago

But the starfield is also nice.

RobDangerous commented 7 months ago

Your Kinc revision is 5697b892 by the way aka the Git revision.

RobDangerous commented 7 months ago

Seems tricky, so far nobody can reproduce this problem.

l0go commented 7 months ago

image I was unable to reproduce on Fedora so I setup a Pop!_OS VM. Not able to reproduce there as well.

bluesillybeard commented 7 months ago

Huh, weird. I'll try to reproduce the issue on a fresh Pop!_OS install, so I know what's wrong with my system.

RobDangerous commented 7 months ago

Our Mr logo couldn't even repro on Pop!_OS.

Edit: Oh, that actually was Mr logo up there, sorry.

bluesillybeard commented 7 months ago

When I switch to integrated graphics or hybrid graphics, the problem goes away. So, it is specific to nvidia.

Unless you have an nvidia GPU, I don't see an easy way to debug this. I'll try to fix it myself and submit a PR, although I don't know a lot about X11 so it might take me a while.