[Mesa-dev] [PATCH 7/8] android: support creating texture from gralloc buffer

Mauro Rossi issor.oruam at gmail.com
Mon May 1 14:17:54 UTC 2017


Hi all,

another try to merge android swrast patches in mesa 17.1 or mesa-dev
if they are somehow considered useful for android.

Mauro

2017-01-20 20:17 GMT+01:00 Mauro Rossi <issor.oruam at gmail.com>:

>
>
> Il lunedì 9 gennaio 2017, Zhen Wu <wuzhen at jidemail.com> ha scritto:
>
>> Thanks for your review, Rob. Using kms-dri would mean writing a new
>> gralloc to basically the same thing as
>> gralloc.default and moving to grm_gralloc seems to be a bigger task meant
>> for another day. But I agree we would
>> want to avoid introducing dependency. Would extending drisw loader func
>> and limit gralloc dependency in egl_android
>> ok with you?
>>
>
> Just to avoid a stall situation,
>
> I get that Rob comments are here as here is the gralloc dependency to be
> avoided.
> Is this assumption correct?
>
> BTW I can also confirm patches are working as I tested with Android CTS
> dEQP test for EGL and GLES2 modules with marshmallow-x86
>
> Mauro
>

Hi Rob,
we are still maintaining these changes to use llvmpipe
they are working and they are useful for testing on VMs and for software
rendering.

May I kindly jask  if the unwanted gralloc dependency was essentially in
 this patch 07/08
"android: support creating texture from gralloc buffer"?

And if that is confirmed, which approaches are applicable here?

1. Reuse some kms-dri specific change implemented in CrOS (? Tomasz did you
neeed to change something in dri/sw winsys ? )

2. Look into openswr corresponding code paths (? I don't know if Tapani may
provide some info for cross reference)

3. Not touching current  AS-IS src/gallium/winsys/sw/dri/dri_sw_winsys.c (?
was this option mentioned by Emil ?)

4. Rewrite only dri/sw winsys parts with buffer allocation provided by
gralloc.gbm (?a kind confirmation by Emil, Rob if this is viable and
acceptable)

I think that some kind of retro compatibility/coexistence with gralloc.drm
is desirable, so I wanted to kindly ask for you feedbacks
and as usual I'm available for building/testing and also to try to patch
some code
to have it working, acceptable and merged.

Mauro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170501/e07b2cb3/attachment-0001.html>


More information about the mesa-dev mailing list