nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
502 stars 24 forks source link

Git version not capturing Vulkan games #169

Closed gyvess closed 9 months ago

gyvess commented 9 months ago

Describe the bug Games using Vulkan are no longer captured when using obs-vkcapture built from git. OpenGL works fine. I downgraded to verson 1.4.2 of obs-vkcapture and it worked as expected again. The log complains about Wayland but I am using X11. Same result regardless of whether I append OBS_VKCAPTURE=1 or 'obs-gamecapture'.

System (please complete the following information):

Terminal output for non-working version 1.4.3

# obs-gamecapture vkcube
[obs-vkcapture] Init Vulkan 1.4.3
[obs-vkcapture] CreateInstance
[obs-vkcapture] CreateInstance VK_SUCCESS
[obs-vkcapture] could not get instance address for vkCreateWaylandSurfaceKHR
Selected GPU 0: AMD Radeon RX 6800 (RADV NAVI21), type: DiscreteGpu
[obs-vkcapture] CreateXcbSurfaceKHR
[obs-vkcapture] CreateDevice
[obs-vkcapture] CreateDevice VK_SUCCESS
[obs-vkcapture] instance not valid
[obs-vkcapture] DestroySwapchainKHR

Terminal output for working version 1.4.2

# obs-gamecapture vkcube
[obs-vkcapture] Init Vulkan 1.4.2
[obs-vkcapture] CreateInstance
[obs-vkcapture] CreateInstance VK_SUCCESS
Selected GPU 0: AMD Radeon RX 6800 (RADV NAVI21), type: DiscreteGpu
[obs-vkcapture] CreateXcbSurfaceKHR
[obs-vkcapture] CreateDevice
[obs-vkcapture] CreateDevice VK_SUCCESS
[obs-vkcapture] CreateSwapchainKHR VK_SUCCESS
[obs-vkcapture] GetSwapchainImagesKHR VK_SUCCESS
[obs-vkcapture] GetSwapchainImagesKHR VK_SUCCESS
[obs-vkcapture] CreateSwapchainKHR VK_SUCCESS
[obs-vkcapture] GetSwapchainImagesKHR VK_SUCCESS
[obs-vkcapture] GetSwapchainImagesKHR VK_SUCCESS
[obs-vkcapture] DestroySwapchainKHR
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 756x498
[obs-vkcapture] Available modifiers:
[obs-vkcapture]  0: modifier:144115188622605059 planes:2
[obs-vkcapture]  1: modifier:144115188622588675 planes:3
[obs-vkcapture]  2: modifier:144115188622392067 planes:3
[obs-vkcapture]  3: modifier:144115188621122307 planes:1
[obs-vkcapture]  4: modifier:144115188084250882 planes:1
[obs-vkcapture]  5: modifier:144115188075858177 planes:1
[obs-vkcapture]  6: modifier:0 planes:1
[obs-vkcapture] Got planes 2 fd 8
[obs-vkcapture] Got modifier 144115188622605059
[obs-vkcapture] ------------------ vulkan capture started ------------------
nowrep commented 9 months ago

Should work now.