[REFERENCE] Mali r4p0 for Image builders

Moderators: meveric, mdrjr, odroid

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Tue Aug 12, 2014 6:13 pm

Hi, I've returned to nag about fb drivers :D Not really though... I know you guys are waiting on (clearly useless) ARM for some sort of answer regarding some undisclosed issue you're having making this driver available to the community. I was just wandering why (a while back) it went from "r4p0 uses dma-buf, so yes, we can totally view accelerated content on the FB now" to "we're waiting for feedback from ARM". Keeping in mind, I'm in no way clued up when it comes to how Mali drivers work. This is just the impression that was passed to me, the ignorant OpenGL ES developer, when reading the posts on this topic.

Same as last time, I'm still okay with any answer. I just think this could be that little bit more of a deal, now that we have the XU3, which is using Mali too.
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby OverSun » Tue Aug 12, 2014 6:44 pm

There is a link on malideveloper site with SDK for T6xx:
http://malideveloper.arm.com/develop-fo ... e-drivers/
and the download link actually says "Download for fbdev" and "Download for X11"
And the "Download for fbdev" archive inside contains arm compiled libMali.so not linked against any X11 libraries.
I wasn't able to test it myself still because I found out it only yesterday, but looks promising.
User avatar
OverSun
 
Posts: 1377
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Tue Aug 12, 2014 6:59 pm

OverSun wrote:There is a link on malideveloper site with SDK for T6xx:
http://malideveloper.arm.com/develop-fo ... e-drivers/


Does seem hopeful, I'd love to test it too, but no XU3...probably for quite a while still :D But what about the U3/Mali400? I looked there on their site, but only the usual old Mali X driver, no userspace stuff...

EDIT: Also, I only see a driver for the T604 there :?
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby memeka » Tue Aug 12, 2014 8:30 pm

you would still need the binary blob for fbdev - which would need to be compiled by HK.
and currently they only provide the blob for x11.
User avatar
memeka
 
Posts: 4044
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby OverSun » Tue Aug 12, 2014 8:31 pm

Where this binary blob resides? Previously it was libMali.so
User avatar
OverSun
 
Posts: 1377
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby memeka » Tue Aug 12, 2014 8:41 pm

I haven't checked, I assumed it was the same?
User avatar
memeka
 
Posts: 4044
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Tue Aug 12, 2014 8:43 pm

OverSun wrote:Where this binary blob resides? Previously it was libMali.so


It still is. To my knowledge the Mali blobs provided by Hardkernel haven't changed since the posted in the OP here. And as memeka says, we can probably only use ones provided by Hardkernel and not necessarily any from the Mali site (not that they have any there to begin with...)

And so begins the vicious circle again, us developers rely on HK for a USEFUL Mali driver, who in turn rely on ARM for support in developing/providing resources to make this driver available, who in turn doesn't give a crap about HK or any other minority of developers. The possibility of HK not trying hard enough to convince ARM also exists, but to be honest, I doubt that's the case at all.

EDIT: Without going too far off-topic, this is why I HATE proprietary. If the driver were open, I still wouldn't be able to anything, but then I'd at least know I have a larger number of skilled developers around the world I could depend on as opposed to a company (ARM) who reckons they know better than their client-base
Last edited by youka on Tue Aug 12, 2014 8:49 pm, edited 1 time in total.
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby OverSun » Tue Aug 12, 2014 8:46 pm

This is the trick right now, as I understand now libMali.so is available from malideveloper site. It is not a wrapup with dummy functions, it is not for x86, as it was with imagination powervr, it looks like full blown libMali.so that can be used. There is no libMali.so for Mali400 at all, that was the part that was on platform vendor.
I'm not able to test it, I have some troubles with HDMI, but eventually we will get there.
User avatar
OverSun
 
Posts: 1377
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Tue Aug 12, 2014 8:52 pm

OverSun wrote:This is the trick right now, as I understand now libMali.so is available from malideveloper site. It is not a wrapup with dummy functions, it is not for x86, as it was with imagination powervr, it looks like full blown libMali.so that can be used. There is no libMali.so for Mali400 at all, that was the part that was on platform vendor.
I'm not able to test it, I have some troubles with HDMI, but eventually we will get there.


I'd love to know the results of your testing :) The only thing that bugged me about those blobs on the Mali site is, they claim to be for the T604, not the XU3's T628 (I think it was?)
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby OverSun » Tue Aug 12, 2014 9:00 pm

The link says "Mali T6xx GPU User Space Drivers"
User avatar
OverSun
 
Posts: 1377
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby memeka » Tue Aug 12, 2014 9:06 pm

I did try them, neither (x11 or fbdev) works. It's for T604 maybe only?
User avatar
memeka
 
Posts: 4044
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Tue Aug 12, 2014 9:17 pm

OverSun wrote:The link says "Mali T6xx GPU User Space Drivers"


It does on the drivers page. When you go in and scroll to the bottom, there's only download links for T604 X11 and fbdev blobs.

EDIT: And as memeka says, sadly... Maybe they'll upload more blobs on that page in the future?
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby memeka » Tue Aug 12, 2014 9:27 pm

I also tried: http://malideveloper.arm.com/downloads/ ... 02rel0.tgz and http://malideveloper.arm.com/downloads/ ... 02rel0.tgz - which apparently worked on arndale and chromebook. not working - the kernel drivers are r4p0 so that's a good enough reason :)
User avatar
memeka
 
Posts: 4044
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby mdrjr » Tue Aug 12, 2014 10:38 pm

They are for r3p0.....
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby OverSun » Wed Aug 13, 2014 3:04 am

well in the first look the mali blob doesn't work for fbdev on xu3, so giving back the question to mdrjr, can we expect nonX11 egl support?
User avatar
OverSun
 
Posts: 1377
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby mdrjr » Wed Aug 13, 2014 3:08 am

OverSun wrote:well in the first look the mali blob doesn't work for fbdev on xu3, so giving back the question to mdrjr, can we expect nonX11 egl support?


Maybe.. I didn't stop to look at that yet :(
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby OverSun » Thu Aug 14, 2014 3:01 am

And now exciting news everyone!!!
Malideveloper just rolled out the same mali blobs, but now for T62x (not T6xx) AND THEY WORK.
http://malideveloper.arm.com/develop-fo ... e-drivers/ (second line of downloads appeared)

No X11 running, no X11 linked:
Code: Select all
root@xu3:/usr/src/Mali_OpenGL_ES_SDK_v2.4.0/samples/opengles_20/cube# ldd cube
   libGLESv2.so => /usr/src/fbdev/libGLESv2.so (0xb6f8f000)
   libEGL.so => /usr/src/fbdev/libEGL.so (0xb6f85000)
   libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6eba000)
   libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6e4e000)
   libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6e2d000)
   libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6d46000)
   libmali.so => /usr/src/fbdev/libmali.so (0xb5bde000)
   libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb5bc3000)
   /lib/ld-linux-armhf.so.3 (0xb6f9b000)
   librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb5bb5000)
   libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb5baa000)
root@xu3:/usr/src/Mali_OpenGL_ES_SDK_v2.4.0/samples/opengles_20/cube# ./cube
FPS:   68.2

FPS:   66.6

^C


I cannot say it 100%, because as I mentioned earlier I have issues with HDMI and I have no video output on the screen right now, but the utilities that are written to run with EGL without X11 on fbdev runs.
User avatar
OverSun
 
Posts: 1377
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby mdrjr » Thu Aug 14, 2014 3:09 am

Hehehe.. Downloading it to test..
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby mdrjr » Thu Aug 14, 2014 3:38 am

True story bro.. fbdev working very well on XU3.. Including the GLES 3.0 samples (skybox)
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby memeka » Thu Aug 14, 2014 6:21 am

what am I doing wrong?
Code: Select all
root@odroid:~# es2gears_screen
EGLUT: failed to initialize EGL display

(failed with default X11 drivers)

root@odroid:~# LD_LIBRARY_PATH=/root/fbdev/ es2gears_screen
EGL_VERSION = 1.4 Midgard-"r4p0-02rel0"
EGLUT: failed to choose a config

(?????)

root@odroid:~#


other than that, yeah, the samples in mali sdk work for me too...
User avatar
memeka
 
Posts: 4044
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby mdrjr » Thu Aug 14, 2014 10:09 am

Mali fbdev doesn't support eglut.. eglut is a mesa only thing.
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Thu Aug 14, 2014 2:54 pm

Ohhh! This is very good news! :D Now I look forward to getting my XU3 even more~ Now if only we had such an easily available solution for the U3......
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby AreaScout » Thu Aug 14, 2014 5:37 pm

Hi all

While this are very good news, i would be happy if there is only one libMali.so for fbdev and X11 so i could choose on EGL init what DISPLAY i want to use e.g:

Code: Select all
eglGetDisplay(Display *XDisplay)    // Request X11 Display pointer
eglGetDisplay(EGL_DEFAULT_DISPLAY)   // Request fbdev Display pointer


Any example code for fbdev EGL init would be nice :)

RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby OverSun » Thu Aug 14, 2014 6:13 pm

The examples for EGL on fbdev can be downloaded from malideveloper site, they are part of SDK, just download it and you'll see "samples" directory there. Everything is very easy there.
Also there is as I remember glmark source code prior to the very last version it was for fbdev. Anyway, samples from SDK are pretty enough.

As for libMali.so for both version I don't think this is possible since even Mali arm manufacturer divides these libraries to two blobs. I'm pretty sure the code is very different.
User avatar
OverSun
 
Posts: 1377
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby memeka » Thu Aug 14, 2014 6:31 pm

I think you can check with some egl config function.
User avatar
memeka
 
Posts: 4044
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Thu Aug 14, 2014 6:32 pm

OverSun wrote:As for libMali.so for both version I don't think this is possible since even Mali arm manufacturer divides these libraries to two blobs. I'm pretty sure the code is very different.


And I think from a principal point of view, those wanting fbdev support usually don't want X in the picture at all. Those of us who want to be able to use only EGL/GLES. Plus, fbdev drivers that are linked against X11 libraries? No thanks :D

And as you've mentioned, these drivers are provided by ARM, not Hardkernel, so we just gotta take what we can get...(at least we're getting something)
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby memeka » Thu Aug 14, 2014 7:03 pm

@mdrjr given arm posted X11 drivers too, which ones should we use?
I've seen the same bug in full screen glmark so they look like they're kind of the same.

@youka maybr he wants same code for an app that runs in X11 and fbdev :)
User avatar
memeka
 
Posts: 4044
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby AreaScout » Thu Aug 14, 2014 7:06 pm

@youka

For my personal side of view i would like to have only one libMali.so, so i can fast switch from X11 to fbdev + decide if i want to start X11 or not, depending on the application i want to use

@OverSun

Thats what i meant, i did look on the examples on Malideveloper site but either these examples are only for fbdev or X11 is implemented in some way i have never seen befor in EGL init

Code: Select all
#elif defined(__arm__)
        /* Linux on ARM */
        display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
#else


RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Thu Aug 14, 2014 7:18 pm

Sure, I understand what you mean. Just boils down to personal preference/convenience. I'd say there should be an fbdev-only driver, and a separate X11+fbdev (in one) driver, if that were at all possible. EDIT: But in this case, you'd probably need some kind of wrapper that'll pick up if X is active or not and use a different libMali accordingly. Kinda sucks if you just want to be able to actively switch between the two...

As for using EGL, from what I could gather... In the Mali SDK folders there's a header file defining EGLNativeWindowType for fbdev specifically (inc/EGL/eglplatform.h)
Code: Select all
typedef fbdev_window* EGLNativeWindowType;


And in another header there's a struct definition for fbdev_window (simple_framework/inc/mali/EGL/fbdev_window.h)
Code: Select all
typedef struct fbdev_window
{
        unsigned short width;
        unsigned short height;
} fbdev_window;


So my guesses are you'd pass one of these when using glCreateWindowSurface....If that's the case, I kinda like it :) It's nice and simple

As for this:
Code: Select all
eglGetDisplay(EGL_DEFAULT_DISPLAY);

This is quite common on devices that don't rely on X11 or have some sort of drm/fbdev-supporting EGL driver. This how you'd get the display in Android too when using the NDK, if I remember correctly...
Last edited by youka on Thu Aug 14, 2014 7:48 pm, edited 1 time in total.
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby AreaScout » Thu Aug 14, 2014 7:45 pm

youka wrote:Sure, I understand what you mean. Just boils down to personal preference. I'd say there should be an fbdev-only driver, and a separate X11+fbdev (in one) driver, if that were at all possible.


That would be nice and a X11+fbdev driver is just the way other vendors do

youka wrote:As for using EGL, from what I could gather... In the Mali SDK folders there's a header file defining EGLNativeWindowType for fbdev specifically (inc/EGL/eglplatform.h)
Code: Select all
typedef fbdev_window* EGLNativeWindowType;


And in another header there's a struct definition for fbdev_window (simple_framework/inc/mali/EGL/fbdev_window.h)
Code: Select all
typedef struct fbdev_window
{
        unsigned short width;
        unsigned short height;
} fbdev_window;


So my guesses are you'd pass one of these when using glCreateWindowSurface....If that's the case, I kinda like it :) It's nice and simple


Sure EGL init with non-X11 was always that simple

youka wrote:As for this:
Code: Select all
eglGetDisplay(EGL_DEFAULT_DISPLAY);

This is quite common on devices that don't rely on X11 or have some sort of drm/fbdev-supporting EGL driver. This how you'd get the display in Android too when using the NDK, if I remember correctly...


that is not common, that is the way it should be on non-X11, but as i have the fbdev init now, i miss the X11 init ^^ ;)
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Thu Aug 14, 2014 7:56 pm

AreaScout wrote:that is not common, that is the way it should be on non-X11, but as i have the fbdev init now, i miss the X11 init ^^ ;)


Ah snap! You're right :/ I've been using SDL2 for so long now I completely forgot eglGetDisplay takes different EGLNativeDisplay's based on the window system being used :(

...and speaking of SDL2, a port to support using these fbdev drivers would be sweet :) ...think I'll give that a shot when I get my XU3 one day
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby AreaScout » Thu Aug 14, 2014 8:21 pm

...and speaking of SDL2, a port to support using these fbdev drivers would be sweet :) ...think I'll give that a shot when I get my XU3 one day


I am not sure on that but if SDL2 is not able to connect to xserver it will automatically fallback to EGL non-X11 init if you request accel hw surface, so having a library which support both X11/non-X11 would be essential, no need to port anything

RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Thu Aug 14, 2014 8:29 pm

It does that...? Last I checked I get absolutely nothing if X isn't present. I tested this on a Beagle a few months ago which had its own working fbdev drivers. I know on the Pi and the OpenPandora everything works as you describe. In the case of the Beagle, I just fell back to the Pandora's driver and it worked, since they had the same GPU, etc.

Well, I hope it is as you say, that would be great
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby AreaScout » Thu Aug 14, 2014 8:43 pm

while i didn't test this @ all ( no XU3 yet ), if it works that way on rpi and pandora i am ~90% sure it will work the same way on ODROID's, beagle has his OMAP driver's which are different IIRC

RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby mdrjr » Thu Aug 14, 2014 8:47 pm

Sorry guys.. but fb+x11 on the same driver is kind impossible according to ARM.
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby AreaScout » Thu Aug 14, 2014 9:01 pm

@mdrjr

well sometimes this happens, but it's good to have a non-X11 driver, thx for feedback

RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Thu Aug 14, 2014 9:13 pm

AreaScout wrote:while i didn't test this @ all ( no XU3 yet ), if it works that way on rpi and pandora i am ~90% sure it will work the same way on ODROID's, beagle has his OMAP driver's which are different IIRC


If I remember correctly, using EGL/GLES on the Pi without X still required some extra setup and stuff (in-code, of course). As for the Openpandora, it was OMAP too. In fact, it used the exact same userspace binaries the Beaglebone did. And I recall for eglCreateWindowSurface (with the OMAP SGX530/540 GPU's) you could just pass a straight-up (0) for the EGLNativeWindowType (as opposed to Mali's cute little struct) and it'd work just fine.

So for SDL2, I imagine the Pandora's implementation should work, if updated to use the fbdev_window struct instead of just passing (0) like it currently does. Or not :D I dunno. I guess we'll just have to wait and see... *hints and members who already have a XU3*
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby AreaScout » Thu Aug 14, 2014 10:05 pm

If I remember correctly, using EGL/GLES on the Pi without X still required some extra setup and stuff (in-code, of course)


yes :) the very very ( good working ) unique dispmanx

As for the Openpandora, it was OMAP too


yeah i remembered my BeagleBoard and this is back from 2008 or 2009 and IIRC there wasn't an OpenGL ES implementation @ this time, don't know about the pandora @ this time

So for SDL2, I imagine the Pandora's implementation should work, if updated to use the fbdev_window struct instead of just passing (0) like it currently does. Or not :D I dunno


lol yes i dunno too :) well last time i compiled SDL2 with disable-opengl ( enable-opengles is default on ) i could run retroarch gui in fullspeed, so i guess it should also work on fbdev as the initialization looks very close to some opengles specs samples

I guess we'll just have to wait and see... *hints and members who already have a XU3*


thats so true :lol:
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Thu Aug 14, 2014 11:06 pm

SDL2 initialization should look the same for all platforms, that's why I like it :) One codebase for all platforms, and LOVE that it fully supports Android too~ Anyway, I'm going to stop with the off-topic now :D ...or I might upset mdrjr :?

Back to the Mali drivers through, what would it be for ARM to release binaries for the Mali400 too? I mean, fbdev on the XU3 is great and all, but here at my work we could really do with the fbdev support on the U3 as well...
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby mdrjr » Thu Aug 14, 2014 11:11 pm

youka wrote:SDL2 initialization should look the same for all platforms, that's why I like it :) One codebase for all platforms, and LOVE that it fully supports Android too~ Anyway, I'm going to stop with the off-topic now :D ...or I might upset mdrjr :?

Back to the Mali drivers through, what would it be for ARM to release binaries for the Mali400 too? I mean, fbdev on the XU3 is great and all, but here at my work we could really do with the fbdev support on the U3 as well...


Still working on U3 fbdev drivers :(
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Thu Aug 14, 2014 11:44 pm

mdrjr wrote:Still working on U3 fbdev drivers :(


Just a question regarding that..does Hardkernel physically produce the userspace binary for the U3? If this is the case, I imagine it's with the help of something provided by ARM, since I doubt they'd just give out their driver source to any 3rd party. Regardless of how the binaries are produced, I'm guessing there's something ARM didn't give/tell you when it comes to producing these binaries with fbdev support (I assume this as both you and odroid mentioned last time that you were waiting on an answer from ARM regarding this support).

So is ARM just not being helpful here?

EDIT: Also, which binaries would be better to use for X11 on the XU3 in the future, your r4p0 ones, or the ones on the Mali developer site?
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby odroid » Thu Aug 14, 2014 11:53 pm

We got the DDK source code via very long complicated licensing process with some exceptional/abnormal chances.
ARM Mali team is very helpful from time to time :)
But.. we are not a big customer for ARM obviously.... so their support can't be real-time.
User avatar
odroid
Site Admin
 
Posts: 28718
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby mdrjr » Thu Aug 14, 2014 11:59 pm

For X11.. use blobs that we built.. they should be slightly better.. 1 or 2% better.

As far as your other questions .. odroid already answered ;)
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby AreaScout » Fri Aug 15, 2014 12:58 am

youka wrote:SDL2 initialization should look the same for all platforms, that's why I like it :) One codebase for all platforms


That's why i like it too :D

Thx odroid & mdrjr for answering this questions, i am always interested to read about that, so hurry up with the new fbdev userspace libraries for U3 ;)
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby youka » Fri Aug 15, 2014 2:32 pm

odroid wrote:We got the DDK source code via very long complicated licensing process with some exceptional/abnormal chances.

Haha, that's what I thought

odroid wrote:ARM Mali team is very helpful from time to time :)
But.. we are not a big customer for ARM obviously.... so their support can't be real-time.

Such a pity. But to be honest, I think this community alone makes you guys a big enough of a deal for ARM to invest a little more time in to supporting...

mdrjr wrote:For X11.. use blobs that we built.. they should be slightly better.. 1 or 2% better.

Thanks for the feedback. Though I'll most likely never use X11 now when developing for XU3 :D But still good to know for future cases (and other image builders)
youka
 
Posts: 163
Joined: Wed Oct 09, 2013 8:38 pm
languages_spoken: english
ODROIDs: Odroid XU+E, U2, U3, XU3, XU4 + Cloudshell

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby mdrjr » Wed Aug 20, 2014 12:15 am

Updated with Mali MP400-4 FBDEV support.
Its still a workaround. A proper fix will be made on the future.
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby memeka » Wed Aug 20, 2014 12:22 am

let wayland and gnome 3.14 come :)
User avatar
memeka
 
Posts: 4044
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby AreaScout » Wed Aug 20, 2014 12:40 am

Am i dreaming or is this the truth ? Do i have to run the update script to get it ? WoW this will be fun :)

EDIT: ok got it ! thx

RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby OverSun » Wed Aug 20, 2014 3:09 am

I've compiled XBMC X11 headless, it works, except it's not vsynced and there is a cursor blinking through the interface from the console. And also it is not smooth for some reason, the X11 implementation is muuuuch smoother. It looks like it is losing frames, like 13fps or something. 50fps movies looks like 25fps should... Or is it just me sitting to close to the monitor?..
But this is so cool anyway! =D
User avatar
OverSun
 
Posts: 1377
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english

Re: [REFERENCE] Mali r4p0 for Image builders

Unread postby OverSun » Wed Aug 20, 2014 4:43 am

Oh yes, made it vsync'ing and it look soooo cool, as cool as X11 version.
User avatar
OverSun
 
Posts: 1377
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english

PreviousNext

Return to Ubuntu (All Linux'es)

Who is online

Users browsing this forum: No registered users and 2 guests