Hi,
I own an odroid XU3 wich runs currently with the newest mali driver (r6p0) on ubuntu 15.01 without X.
I spend the last days in trying to pass the drm buffer using gbm into the mali gpu, until now with no success.
Problem is, that I'm not able to set up a renderable surface, I tried several extensions (MESA_GBM for example) but they all fail.
Can you pls. provide me with the information if its possible or not?
If it should be possible - are there any resources / samples where to look or the key?
Thanks!
Markus
Thanks for the quick response, Michael!
First let me say that I'm glad that the answer is not: "Not supported"
I came over this issue while building / testing the chromium content_shell application with the ozone gbm platform.
I already verified all the parameters passed to the function and they seem to be correct.
Chromium members told me, that the fbdev driver provided from malidevelopers might not work, I have to use the chrome-os driver (wich should have the same binary blob inside, doesn't it??)
I have a small test program, but it uses minigbm (from the chromium project) to handle the drm buffers.
I'll try to remove the minigbm dependencies this evening and send you a link to this simple program.
Thanks,
[Edit: I made a simple testcase wich uses only drm / egl now.
The example (https://github.com/mapfau/tests/blob/master/drm_image/drm_image.c) is without any cleanup code and written all in main for better readability.
On my odroid xu3 I have compiled it with: gcc -I/usr/include/libdrm/ -I/usr/include/exynos/ -O0 -g drm_image.c -ldrm -lmali -o drm_image
The example includes the steps: DRM setup / GEM buffer / DMA_Buffer retrieval and EGL initialization until the point where dhe eglImageKHR is created.
Thanks for looking over it!