sway-nvidia icon indicating copy to clipboard operation
sway-nvidia copied to clipboard

Issues with vulkan renderer

Open dryya opened this issue 1 year ago • 2 comments

Hi there. This is more of a discussion than an issue report. I'm currently on sway 1.7 and wlroots 0.15.1 (the releases, not building from latest source). I also am on a 1050Ti with driver 515.76.

I am currently launching sway with the following wrapper:

#!/usr/bin/env sh
export WLR_NO_HARDWARE_CURSORS=1
export XDG_SESSION_TYPE=wayland
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export GBM_BACKEND=nvidia-drm
export __GL_GSYNC_ALLOWED=0
export __GL_VRR_ALLOWED=0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
exec sway --unsupported-gpu

which is very similar to the one included in this package. The reason I'm not using sway-nvidia is because, for some reason I can't figure out, sway won't work with the vulkan renderer. I can't get much in the way of informative error messages, just:

00:00:00.004 [INFO] [sway/main.c:394] Starting sway version 1.7
00:00:00.004 [INFO] [wlr] [render/wlr_renderer.c:271] Loading user-specified renderer due to WLR_RENDERER: vulkan
00:00:00.004 [INFO] [wlr] [render/vulkan/renderer.c:1472] The vulkan renderer is only experimental and not expected to be ready for daily use
00:00:00.013 [ERROR] [wlr] [render/vulkan/vulkan.c:208] Could not create instance: ERROR_INCOMPATIBLE_DRIVER (-9)
00:00:00.013 [ERROR] [wlr] [render/vulkan/renderer.c:1480] creating vulkan instance for renderer failed
00:00:00.013 [ERROR] [sway/server.c:79] Failed to create renderer

Now, I've also tried installing sway-git and wlroots-git from the AUR. Unfortunately, that actually makes things worse - I'm not sure what has changed since the last releases, but I now can't launch sway period, whether with the Vulkan renderer or without it.

I wanted to ask if this is just me doing something wrong and ask for some help troubleshooting, and also start a discussion about the latter point - have some upstream changes in wlroots or sway started to cause some new issues with Nvidia for anybody else?

Edit: I should also mention that I do think I have all necessary packages installed:

❯ pacman -Qs vulkan
local/nvidia-utils 515.76-1
    NVIDIA drivers utilities
local/spirv-tools 2022.1-1 (vulkan-devel)
    API and commands for processing SPIR-V modules
local/vulkan-headers 1:1.3.227-1 (vulkan-devel)
    Vulkan header files
local/vulkan-icd-loader 1.3.226-1
    Vulkan Installable Client Driver (ICD) Loader
local/vulkan-validation-layers 1.3.224.1-1 (vulkan-devel)
    Vulkan Validation Layers

dryya avatar Oct 07 '22 17:10 dryya