limadriver-ng/lima (mali 400 driver) questions

Moderators: mdrjr, odroid

limadriver-ng/lima (mali 400 driver) questions

Unread postby mlinuxguy » Tue Apr 05, 2016 7:30 am

I pulled this driver down to play with on the C2
https://github.com/limadriver-ng/lima

I had to make a small patch to get it to build on the C2
https://github.com/limadriver-ng/lima/pull/5

However it fails in the build process here:
Code: Select all
gcc -O3 -march=armv8-a+crc -mtune=cortex-a53 -fexpensive-optimizations -fprefetch-loop-arrays -fomit-frame-pointer -funroll-loops -ftree-vectorize -ffast-math -I../../../include -I../../lib/ -I../common   -c -MD -o ../common/egl_common.o ../common/egl_common.c
../common/egl_common.c:51:27: error: array type has incomplete element type ‘struct mali_native_window’
 struct mali_native_window native_window[1];
                           ^
../../../Makefile.post:8: recipe for target '../common/egl_common.o' failed


So the build error comes from our EGL include files being way out of date
Code: Select all
root@odroid64-0:/usr/include/EGL# !1536
dpkg -S eglplatform.h
mali-fbdev: /usr/include/EGL/eglplatform.h

What I'm missing is this:
Code: Select all
root@odroid64-0:~/sunxi_mali# grep mali *.h
eglplatform_fb.h:struct mali_native_window {
eglplatform_fb.h:typedef struct mali_native_window *EGLNativeWindowType;


We have no eglplatform_fb.h (nor: struct mali_native_window )
Obviously I could "fix" this but I have questions about the bigger picture

How does limadriver-ng fit into X11 acceleration on the C2?
I know Hardkernel plans X11 acceleration, but I'm a bit fuzzy how an opensource driver like this lima driver
fits into the big picture.... Can anyone explain how limadriver-ng/lima might be useful on the C2 and if its worth getting it working?
mlinuxguy
 
Posts: 793
Joined: Thu Feb 28, 2013 10:28 am
languages_spoken: english
ODROIDs: X, X2, XU, XU3, XU4, C1, C1+, C2, N1, USB-IO

Re: limadriver-ng/lima (mali 400 driver) questions

Unread postby LiquidAcid » Tue Apr 05, 2016 8:14 am

Lima's codebase has stopped at r3p2, it's not useable for any of the current Hardkernel boards.
LiquidAcid
 
Posts: 1080
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2

Re: limadriver-ng/lima (mali 400 driver) questions

Unread postby crashoverride » Tue Apr 05, 2016 8:20 am

mlinuxguy wrote:So the build error comes from our EGL include files being way out of date

Actually, its the other way around. That code has "bit rotted" for 3 years.
crashoverride
 
Posts: 4028
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 5 guests