LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-17-2021, 09:56 AM   #16
sasha69
LQ Newbie
 
Registered: May 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by teerl View Post
Would you mind sharing your SlackBuild? I'm having a heck of a time trying to get mesa to build.

Edit:

I'm running nvidia-drivers and was finally able to get vkcube to run with

Code:
VK_ICD_FILENAMES=/etc/vulkan/icd.d/nvidia_icd.json vkcube
Various settings of MESA_VK_DEVICE_SELECT and DRI_PRIME produced no effect for me.
I uploaded it for you but the latest mesa 20.3.3 in slackware works OK for me. https://drive.google.com/file/d/1kbf...ew?usp=sharing
 
Old 05-17-2021, 02:58 PM   #17
sasha69
LQ Newbie
 
Registered: May 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
If anyone still has this problem (it returned for me), exporting VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json fixes it.
 
Old 05-17-2021, 03:37 PM   #18
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
Or, just remove lvp_icd.x86_64.json and lvp_icd.i686.json from /usr/share/vulkan/icd.d. That's what I do with unwanted vulkan icd loader files... move them out of there. The vulkan loader may not choose the one you want, if other valid ones are in there. For example I've had it load AMDVLK when unwanted, and then later the behaviour of the vulkan loader changed. Make up your damned mind... I'm not second guessing that.

The problem with setting VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json is that it will be wrong for 32 bit games. OK, so set it to the 32 bit one for those games, right? Not so fast... some (windows) games have 32 bit launchers/clients that will fail when loading directx and 64 bit binaries with the wrong back end. I think it's possible to specify both with a colon between, but I've just come to rely on having both the 64 bit and lib32 vulkan icd loader and not have any unwanted .json files.

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/share/vulkan/icd.d/radeon_icd.i686.json
 
2 members found this post helpful.
Old 07-07-2021, 04:19 PM   #19
PCMcGarry#452
LQ Newbie
 
Registered: Jul 2021
Posts: 1

Rep: Reputation: Disabled
I joined this Forum just to say a massive thankyou to TheRealGrogan for this solution. I've been tearing my hair out and getting extremely angry trying to get Fallout4 working on my Optimus graphics laptop under WINE.

It was actually working extremely well, I managed to get F4SE (a sort of master mod loader), all my mods (98 of them), and sound working perfectly on Fedora34 with WINE v6.11 (staging) - but only at a lousy 5fps using the Intel "GPU".

WINE simply refused to use my Nvidia card and I couldn't figure out why. Steam for Linux was using Nvidia, but it simply refused to load my mods (it couldn't find the Windows "AppData" folder for some unknown reason) which made it useless for me.

With some amazing luck, I tumbled on this page and followed TheRealGrogan's advice and removed everything except nvidia_icd.json from /usr/share/vulkan/icd.d/ (...moved them to a backup folder) - and it worked .

So many many thanks for your input.

Regards, Me .
 
Old 07-07-2021, 06:32 PM   #20
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
I'm glad to hear it helped you. I play Fallout 4 through SteamPlay, but I don't have your mods so I don't have a problem. Probably in the Wine registry files, %LOCALAPPDATA% is set to "drive_c\users\steamuser\local settings\application data". On a normal modern windows system, that would be a hard link (to AppData\Local), but Proton uses that old Windows XP path for AppData. Possibly that is what confused your mod loader that wasn't correctly using the environment variable in their paths. (you're never supposed to hard code paths to userdirs like that)

You may have been able to work around that by making a symlink in the Wine Prefix (in steamapps/compatdata/377160/pfx/drive_c/users/steamuser/AppData) named Local and pointing to ../local settings/application data but it's better that you have it working in your own native wine anyway.

Last edited by TheRealGrogan; 07-07-2021 at 06:41 PM.
 
3 members found this post helpful.
Old 02-10-2022, 01:07 AM   #21
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I am aware this is an older post. On Tinycore the Mesa package is Xorg-7.7-3d and @TheRealGrogan

Quote:
That's what I do with unwanted vulkan icd loader files
works a treat.


Code:
vulkaninfo | grep error
was giving me an error for lavapipe
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DOOM Eternal won't launch - amdgpu driver won't run Vulkan 1337_powerslacker Slackware 43 06-05-2020 01:51 AM
[SOLVED] Unable to run Vulkan in Slackware64-current with amdgpu ScrambledLogic Slackware 15 09-26-2018 12:32 PM
LXer: Vulkan at GDC videos now up, with Valve talking about porting Source 2 to Vulkan LXer Syndicated Linux News 0 03-19-2016 11:53 AM
LXer: Vulkan 1.0 and Vulkan SDK Announced for Linux and Windows LXer Syndicated Linux News 0 02-17-2016 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration