跳到主要内容

OpenGL&Vulkan

最新版本的 Kernel 6.1 SDK 支持 Panthor&Panfrost + MESA 25.0.7. 可以运行 OpenGL 和Vulkan。(目前支持 RK3588,RK3576平台) 官网固件默认还是使用 Mali DDK ,可以通过脚本切换。

# 设备联网
panfrost.sh

reboot

确认驱动切换成功:

root@firefly:~# dmesg | grep panth
[ 7.702542] panthor fb000000.gpu-panthor: [drm] clock rate = 200000000
[ 7.726356] panthor fb000000.gpu-panthor: EM: OPP:400000 is inefficient
[ 7.726365] panthor fb000000.gpu-panthor: EM: OPP:300000 is inefficient
[ 7.726438] panthor fb000000.gpu-panthor: EM: created perf domain
[ 7.726673] panthor fb000000.gpu-panthor: [drm] mali-g610 id 0xa867 major 0x0 minor 0x0 status 0x5
[ 7.726677] panthor fb000000.gpu-panthor: [drm] Features: L2:0x7120306 Tiler:0x809 Mem:0x301 MMU:0x2830 AS:0xff
[ 7.726680] panthor fb000000.gpu-panthor: [drm] shader_present=0x50005 l2_present=0x1 tiler_present=0x1
[ 7.742748] panthor fb000000.gpu-panthor: [drm] Firmware protected mode entry not be supported, ignoring
[ 7.742813] panthor fb000000.gpu-panthor: [drm] Firmware git sha: 935af7024ac4bfdc31651dccbabd3467e749c51b
[ 7.743365] panthor fb000000.gpu-panthor: [drm] CSF FW using interface v1.1.0, Features 0x0 Instrumentation features 0x71
[ 7.744405] [drm] Initialized panthor 1.3.0 20230801 for fb000000.gpu-panthor on minor 2

测试 OpenGL:

apt install glmark2
root@firefly:~# glmark2
=======================================================
glmark2 2021.02
=======================================================
OpenGL Information
GL_VENDOR: Mesa
GL_RENDERER: Mali-G610 (Panfrost)
GL_VERSION: 3.1 Mesa 25.0.7-0ubuntu0.24.04.1
=======================================================
[build] use-vbo=false: FPS: 1799 FrameTime: 0.556 ms

测试 Vulkan:

apt install vulkan-tools
root@firefly:~# vkcube
Selected GPU 0: Mali-G610, type: 1