[PATCH] Android: glretracer for Android.

Nigel Stewart nigels.com at gmail.com
Thu Jul 18 08:14:13 PDT 2013


Regal doesn't use Waffle directly.  But I've been experimenting with
Waffle version of the Regal dreamtorus example - working nicely
for Linux and Mac - but Android...  not quite there. (build issue most
likely, on my side)

My primary interest in Waffle is for apitrace playback on Android. :-)
(Get it done! :-)

- Nigel


On Thu, Jul 18, 2013 at 5:31 AM, Juha-Pekka Heikkilä
<juha-pekka.heikkila at linux.intel.com> wrote:
> The patch which I posted uses inside the cmake files environment variables
> which are put in place by build/envsetup.sh and lunch. This mean now you
> could not go around from having the entire Android tree in place while
> compile apitrace retracer for Android. I will be adjusting the cmake files
> to steer away from having the Android tree as mandatory, I will keep your
> suggestion in mind and try to see if I can implement it. I am not very
> fluent with cmake so I don't make promises on this but on idea level I
> think it should work without any problem.
>
> Does Regal on Android use Waffle?
>
> /Juha-Pekka
>
> On Wed, July 17, 2013 3:45 pm, Nigel Stewart wrote:
>> Concerning Android tree versus NDK.  I see apitrace as very user-space
>> oriented, what I was considering for Regal was to build a
>> non-functional waffle .so for linking, and assume that the real waffle
>> is already installed on the device.  Does that same assumption make
>> sense for apitrace also?
>>
>> - Nigel
>>
>> On Wed, Jul 17, 2013 at 6:08 AM, Juha-Pekka Heikkilä
>> <juha-pekka.heikkila at linux.intel.com> wrote:
>>> Hei,
>>>
>>> I'm back from vacation being lot more tan :) Thanks for all the feedback
>>> while I was away!
>>>
>>> Nigel, did you get things working? In Waffle directory there is /example
>>> folder where if you do "mm" and then "adb remount" and "adb sync" you
>>> will
>>> get small program called "gl_basic" into your device. This is very
>>> simple
>>> test software for Waffle which should show in top left corner of the
>>> screen red, green and blue boxes one after each other. If this work then
>>> Waffle work ok. Good command line for running gl_basic would for example
>>> be "gl_basic android gles2". I have previously successfully run Waffle
>>> on
>>> ICS and JB&JBMR2 with PVR and Mesa drivers -- the driver underneath
>>> Surfaceflinger should not matter so much I think. Retracer I have now
>>> run
>>> only on top of JBMR2 with Mesa. In any case you should have seen some
>>> window with Waffle, the window size with retracer coming from the trace
>>> file.
>>>
>>> I am currently fixing things Alexander pointed out for me. I am also
>>> pondering what should I do with the issue where now thanks to Waffle I
>>> am
>>> adding requirement for full Android tree instead of just the ndk. It
>>> would
>>> of course be possible to change from cmakefiles those 'if (ANDROID)'
>>> which
>>> I added to check for if Waffle was found but don't know if it is worth
>>> the
>>> effort?
>>>
>>> /Juha-Pekka
>>>
>>>
>


More information about the apitrace mailing list