-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installed mesa 22.0 but receive error in grvk log #46
Comments
That's interesting, Battlefield is trying to create two devices, one with RADV and the other with lavapipe (llvmpipe in the logs). The latter doesn't support the required extensions. One quick fix would be to disable lavapipe on your side, but I suppose GRVK could be a little smarter about this and not expose certain devices. |
Well that kind of makes me feel better. I made some progress on this after-all. I came across this. I will let you know if it works. I am going to try and remove the package as suggested or rename the file. https://forum.garudalinux.org/t/most-vulkan-applications-broken-due-to-llvmpipe/8599 My OS is POPOS 21.10 update edit* It worked, I just renamed lvp_icd.x86_64.json to lvp_icd.x86_64.json.bu Thanks again sir! === GRVK 0.5.0 === |
I am a noob when it comes to developing or anything like that. But for those that have made it this far and got the right ppa there is another issue that comes up. Basically when the ppa updates it adds the file back in which undermines the little fix mentioned above: "renaming lvp_icd.x86_64.json to lvp_icd.x86_64.json.bu" and causes GRVK to see the lavapipe device. So I made a little simple thing I run each time Mesa 22.0 ppa updates:
I am unaware of this breaking anything and basically anytime the ppa updates it adds the file back anyway. If there is a more effective way to disable this device from being created let me know. Or if GRVK could differentiate better as mentioned above by the developer would also work. In either case I have been using GRVK to play BF4 since I first opened this issue and I have noticed better performance in my situation with mantle and will continue to use it. I play on 4k auto settings which sets it at medium basically. I am running Steam/Proton-ge 7.1 to play BF4 on POPOS 21.10 **Adding this in case someone like me struggled with getting the right ppa for mesa 22.0: I added the PPA:
Then I modified /etc/apt/preferences.d/pop-default-settings:
I then ran "sudo apt update -y" and "sudo apt upgrade -y" and checked "glxinfo | grep Mesa" to confirm if Mesa 22.0 was present. |
That's great. What kind of hardware do you have, and what's the perf impact, roughly? |
Previously when I would run it in DirectX instead of mantle, every now and again (intermittent) it would stutter or micro freeze for less than a second. There are other reports of this on proton/lutris pages for bf4 on linux and I have tried some of these fixes which is what lead me to use proton-ge 6-7 versions (tried many of them because i continue to update it when a new version comes out). While proton-ge has solved most of my problems, every now and again this slight micro stutter would occur). It wasn't that much of a problem but previously when I was on windows 10 on my old system I would use mantle which was faster for me. I got the idea of trying to get mantle to work on bf4 on my current system to see if it would fix this small issue I had or have any benefit. I was surprised that mantle was gone from the options to I went to google and found your github. I'd be willing to test or try things out for you or help in anyway I can such as providing data or etc. I hope I am not fooling myself into thinking that I am getting gains that aren't actually there or related to using this API. Extra info on different graphics settings: I run in 4K resolution 3840 × 2160 (radeon 5700xt red dragon) Software: Hardware:
|
That makes sense. I recommend using the latest dev build from here to get the best performance, if you're not already doing that. |
I grabbed it, I will let you know if I see any improvements. Thank you. |
This last build should help CPU-bound scenarios. |
I've tried to newer builds and see an improvement. I am wondering if you will fix GRVK to pick the correct device so I don't have to keep renaming the file as described up above. Thanks in advance! |
I previously opened an issue and did as you suggested. I installed mesa 22.0.
Tried running this via steam/protonGE and origin/lutris. (both did not work)
What am I missing here?
=== GRVK 0.5.0 ===
I/000003B4/grInitAndEnumerateGpus: app "Battlefield" (01000000), engine "Frostbite" (00C00000), api 00018000
I/000003B4/quirkInit: enabled 0x4
W/000003B4/grInitAndEnumerateGpus: unhandled alloc callbacks
W/000003B4/getGrPhysicalGpuType: unsupported type 4
W/000003B4/getGrPhysicalGpuType: unsupported type 4
I/000003B4/grCreateDevice: 1002:731F "AMD RADV NAVI10" (Vulkan 1.3.204, driver 22.0.99)
I/000003B4/grCreateDevice: DMA queue remapped to compute queue 1
I/000003B4/grCreateDevice: 10005:0000 "llvmpipe (LLVM 13.0.1, 256 bits)" (Vulkan 1.2.204, driver 0.0.1)
I/000003B4/grCreateDevice: compute queue remapped to universal queue 0
I/000003B4/grCreateDevice: DMA queue remapped to universal queue 0
E/000003B4/grCreateDevice: vkCreateDevice failed (-7)
E/000003B4/grCreateDevice: missing extension. make sure your Vulkan driver supports:
E/000003B4/grCreateDevice: - VK_EXT_custom_border_color
E/000003B4/grCreateDevice: - VK_EXT_extended_dynamic_state
E/000003B4/grCreateDevice: - VK_EXT_shader_demote_to_helper_invocation
E/000003B4/grCreateDevice: - VK_KHR_dynamic_rendering
E/000003B4/grCreateDevice: - VK_KHR_swapchain
I am not sure how to enable VK_KHR_dynamic_rendering other than ensuring I have the most up to date vulkan driver.
I see that LLVM shows 1.2 but my actual AMD driver shows vulkan 1.3 and when I checked "glxinfo | grep Mesa"
It printed this:
client glx vendor string: Mesa Project and SGI
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.1.0-devel (git-8335fdf 2022-02-08 impish-oibaf-ppa)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.1.0-devel (git-8335fdf 2022-02-08 impish-oibaf-ppa)
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.1.0-devel (git-8335fdf 2022-02-08 impish-oibaf-ppa)
Looking for any suggestions or help you can provide. I'd really love to test this out.
The text was updated successfully, but these errors were encountered: