Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Discrete graphics with Vulkan
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Tsigorf
n00b
n00b


Joined: 15 Jun 2017
Posts: 18

PostPosted: Sun May 17, 2020 1:36 pm    Post subject: [Solved] Discrete graphics with Vulkan Reply with quote

Hello,

Optimus laptop user here. I'm trying to configure Vulkan to use my discrete graphic card (GTX 1050) to be able to run Lutris with it.

For that purpose, I successfully configured Bumblebee, and heard about the primus_vk component I tried to install following this: https://medium.com/@bert.claesen/bumblebee-and-vulkan-linux-games-10d0c5bfa7b.

OpenGL seems to work:

Code:
$ LD_LIBRARY_PATH="/usr/lib64/opengl/nvidia/lib/" pvkrun glxinfo | grep -i opengl | head -n2
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 1050/PCIe/SSE2


vulkaninfo/vkcube are able to run correctly without Optimus. I'm also able to run them through optirun, primusrun (please find the paste here: https://pastebin.com/kwJSJqP8; the output doesn't differ with or without primusrun or optirun).

However, when running with pvkrun:

Code:
$ VK_ICD_FILENAMES=nvidia_icd.json pvkrun vulkaninfo
ERROR at /var/tmp/portage/dev-util/vulkan-tools-1.2.137/work/Vulkan-Tools-1.2.137/vulkaninfo/vulkaninfo.h:240:vkEnumerateInstanceExtensionProperties failed with ERROR_INITIALIZATION_FAILED


I considered it was some sort of bugs, that's why I tried with and without unmasking ~amd64 on mesa, vulkan-loader, vulkan-headers and vulkan-tools, without any change.

Switching context with an eselect opengl set nvidia/xorg-x11 just avoids me to specify the LD_LIBRARY_PATH on the glxinfo.

How can I successfully run Vulkan with primus?


Last edited by Tsigorf on Mon May 18, 2020 12:55 am; edited 1 time in total
Back to top
View user's profile Send private message
Tsigorf
n00b
n00b


Joined: 15 Jun 2017
Posts: 18

PostPosted: Mon May 18, 2020 12:55 am    Post subject: Reply with quote

In the end, it was an issue with the driver used.

If anyone comes accross this topic in the future, you can have a loot at this: https://github.com/felixdoerre/primus_vk/issues/63
Back to top
View user's profile Send private message
cihancan
n00b
n00b


Joined: 28 Aug 2019
Posts: 15
Location: Turkey

PostPosted: Sat Aug 15, 2020 4:51 pm    Post subject: Reply with quote

I use the newer supported prime offloading with my 1050ti Gpu im pretty pleased with it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum