[rk3399]mesa panfrost feature
Hi,
i am using rk3399 platform, and kernel-5.4 with panfrost gpu driver. now, i want to enable gpu hw access using mesa.
i get mesa source from this git, and checkout d1283083 commit id.
build with option: meson -Ddri-drivers= -Dvulkan-drivers= -Dgallium-drivers=panfrost -Dllvm=false -Dprefix=/usr build/
when i run glmark2 , get error this below:
root@firefly:/home/te# glmark2
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/aarch64-linux-gnu/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri/)
libGL error: failed to load driver: swrast
Error: glXCreateNewContext failed
Error: CanvasGeneric: Invalid EGL state
Error: main: Could not initialize canvas
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 38
Current serial number in output stream: 39
and i change to /usr/lib/aarch64-linux-gnu/dri/, there don't have swrast_dri.so file.
if i rebuild mesa with option: meson -Ddri-drivers=swrast -Dvulkan-drivers= -Dgallium-drivers=panfrost -Dllvm=false -Dprefix=/usr build/ than, there will do have swrast_dri.so file in /usr/lib/aarch64-linux-gnu/dri/ but it using GL_Vendor: "Mesa project/Software Rasterization", it not Arm/Mali T860 also.
can you help me what should i do?
thx.