[Mesa-dev] [PATCH 11/11] android: egl: do not link against libglapi

Emil Velikov emil.l.velikov at gmail.com
Mon Jun 22 11:04:52 PDT 2015


Niiice, thank you. For most drivers - gallium, i965 this is
implemented, leaving nouveau_vieux, radeon, r200 and i915. From these
i915 does work with EGL, while nouveau_vieux dies miserably (missing
__DRI_IMAGE v7 iirc). How well does radeon/r200 fair ?

So as a nice starter task one can, modify EGL to use flush_with_flags
and fall-back do glFlush. Hmm... seems perfect for Google Code-In
(junior GSoC). The application for mentoring org. is around October,
perhaps we can give it a bash :-)

You did bring a very nice topic though... up-to when are we going to
support every loader/dri module combination out there  ?

Emil

On 21 June 2015 at 10:22, Marek Olšák <maraeo at gmail.com> wrote:
> FWIW, flushing can be done through
> flush_with_flags(__DRI2_FLUSH_CONTEXT), so glFlush shouldn't be
> needed, but some drivers don't implement flush_with_flags and I've
> heard libEGL and libGL need to support DRI drivers from older Mesas too.
>
> Marek
>
> On Fri, Jun 19, 2015 at 9:56 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> The only reason we touch glapi is to dlopen it to:
>>  - make sure that the unresolved _glapi* symbols in the dri modules are
>> provided.
>>  - fetch glFlush() and use it at various stages in the dri2 driver.
>>
>> XXX: If anyone has suggestions why the latter is required (or can
>> recommend any reading material) I'm all ears.
>>
>> Cc: Chih-Wei Huang <cwhuang at linux.org.tw>
>> Cc: Eric Anholt <eric at anholt.net>
>> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
>> ---
>>  src/egl/main/Android.mk | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/src/egl/main/Android.mk b/src/egl/main/Android.mk
>> index 8f687e9..0ba7295 100644
>> --- a/src/egl/main/Android.mk
>> +++ b/src/egl/main/Android.mk
>> @@ -44,7 +44,6 @@ LOCAL_CFLAGS := \
>>         -D_EGL_OS_UNIX=1
>>
>>  LOCAL_SHARED_LIBRARIES := \
>> -       libglapi \
>>         libdl \
>>         libhardware \
>>         liblog \
>> --
>> 2.4.2
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list