VulkanMod icon indicating copy to clipboard operation
VulkanMod copied to clipboard

Linux arm64 support

Open Lolothepro opened this issue 2 years ago • 11 comments

Lolothepro avatar Apr 15 '23 21:04 Lolothepro

I would love to see this run on the Raspberry Pi 4 and on the Orange Pi 5, or other SBCs using RK 3588(s) with the Mali GP-610 GPU. The later too are continuoisly getting better 3d and Vulkan support, not only on Android, but also on Linux, and they are getting more and more affordable.

bagong avatar May 03 '23 10:05 bagong

I would love to see this run on the Raspberry Pi 4 and on the Orange Pi 5, or other SBCs using RK 3588(s) with the Mali GP-610 GPU. The later too are continuoisly getting better 3d and Vulkan support, not only on Android, but also on Linux, and they are getting more and more affordable.

https://gitlab.freedesktop.org/mesa/mesa/-/issues/8889

Lolothepro avatar May 03 '23 10:05 Lolothepro

So it's in the works? That's great to hear! Thanks!

bagong avatar May 03 '23 10:05 bagong

@Lolothepro The bug report is pretty much non-actionable for a mesa developer:

  • no version info of MC / VulkanMod specified to test
  • devs with the Broadcom GPU are unlikely to have Minecraft (or if there's a working demo version with mod support, it should be specified)
  • instructions how to install all that, including mods
  • there's a stacktrace going into libvulkan_broadcom.so, but I think it's useless because the compiled library is probably specific to the distro. Then there are no debugging symbols to find out what this address translates to in source code
Stack: [0x0000fffefa7e0000,0x0000fffefafdf000],  sp=0x0000fffefafdd5a0,  free space=8181k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libvulkan_broadcom.so+0x6aa9c]
C  [libvulkan_broadcom.so+0x6b4d8]
C  [libvulkan_broadcom.so+0x850d4]
C  [libvulkan_broadcom.so+0x853a4]
C  [libvulkan_broadcom.so+0xf8bdc]
C  [libc.so.6+0x7d5c8]

Ideally you would want to do the entire testing and tracing back to code on your end, if you want to have a chance of any mesa contributor looking at it. This means (generally) recompiling mesa to some kind of a debug build, seeing if it still crashes when running it and checking the new crash address against the debug symbols that you have from the building process. This should conclusively point at the code that causes the crash.

You should be able to receive help with towards this kind of a report on their mailing list https://docs.mesa3d.org/lists.html

vadcx avatar May 12 '23 23:05 vadcx

Update: there are simply too many issues with this mod to even bother the API/driver developers. For example this one: https://github.com/xCollateral/VulkanMod/issues/213

vadcx avatar May 13 '23 00:05 vadcx

  • no version info of MC / VulkanMod specified to test

It happens with all versions of VulkanMod

Lolothepro avatar May 13 '23 06:05 Lolothepro

I tried using Vulkanmod on a PI400 (64bit) with custom mesa/vulkan

mesa-aarch64-22.2.5.tar.gz from smartavionics/cura.

Installed it to /opt/mesa/ and started Prism Launcher with VK_ICD_FILENAMES=/opt/mesa/share/vulkan/icd.d/broadcom_icd.aarch64.json The Minecraft is Vanilla 1.19.4 with only VulkanMod 0.3.1+1.

The error message I get with this setup (instead of a quiet crash):

Unsupported extensions: [VK_KHR_dynamic_rendering]

Swapchain supported: true

---- Minecraft Crash Report ----

// Why did you do that?

Time: 2023-05-28 14:55:47

Description: Initializing game

java.lang.RuntimeException: Failed to find a suitable GPU

VK_KHR_dynamic_rendering has been introduced as of Vulkan 1.2.197 so perhaps it is missing for Raspberry Pi

J0hanss0n avatar May 28 '23 13:05 J0hanss0n

#245 can fix this

leonpano2006 avatar May 29 '23 09:05 leonpano2006

@leonpano2006 How should this fix lack of VK_KHR_dynamic_rendering for Raspberry Pi4 (v3dv)?

https://mesamatrix.net/

J0hanss0n avatar May 29 '23 15:05 J0hanss0n

Oops Maybe not for pi But on jetson Xavier nx works

leonpano2006 avatar May 29 '23 15:05 leonpano2006

I've tried it on Snapdragon 7c which has Vulkan 1.3 support. See tu field at https://mesamatrix.net/ for supported extensions.

It fails with:

[17:06:53] [Render thread/INFO]: [STDERR]: [LWJGL] Platform/architecture mismatch detected for module: org.lwjgl.vma

mc-7c-vulkan-log.txt crash-2023-07-14_17.06.53-client.txt

jenneron avatar Jul 14 '23 17:07 jenneron