Issues with vulkan renderer
Opened this issue · 1 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
I got kind of hopeful after finding a note on the Arch wiki: https://wiki.archlinux.org/title/Vulkan#Nvidia_-_vulkan_is_not_working_and_can_not_initialize
Unfortunately, adding VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json
didn't fix my issues.
I also removed nvidia-vaapi-driver-git and libva-mesa driver to be sure, didn't help.
Something else that's kind of odd that may be related to my issue - vulkaninfo can only detect my GPU when run as root. Tried searching around for info on that issue, but wasn't able to find much.
Honestly, I haven't had any flickering issues, so maybe I should just live with it...