VulkanMod

VulkanMod

357k Downloads

Linux arm64 support

Lolothepro opened this issue ยท 11 comments

commented
commented

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.

commented

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

commented

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

commented

@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

commented

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

commented
  • no version info of MC / VulkanMod specified to test

It happens with all versions of VulkanMod

commented

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

commented

#245 can fix this

commented

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

https://mesamatrix.net/

commented

Oops
Maybe not for pi
But on jetson Xavier nx works

commented

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