<font size=2 face="sans-serif">Hello Juha,</font>
<br>
<br><font size=2 face="sans-serif">Please find the patch I have come up
with.</font>
<br>
<br><font size=2 face="sans-serif"><br>
Thanks & Regards<br>
Arun S L</font>
<br>
<br>
<table width=100% style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">Juha-Pekka
Heikkilä <juha-pekka.heikkila@linux.intel.com></font>
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">"Arun
Sl" <arun.sl@tcs.com></font>
<tr height=8>
<td width=96 valign=top style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">waffle@lists.freedesktop.org</font>
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">02/27/2014
06:14 PM</font>
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">Re:
[waffle] waffle for android-4.1.2_r1</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Hi Arun,<br>
<br>
In the beginning of the file droid_surfaceflingerlink.cpp you can see how<br>
to juggle with the different Android versions using #if/#else's. Would
be<br>
superb if you could make your fix into a patch format, I can test it on<br>
JellyBean Android how it work there.<br>
<br>
/Juha-Pekka<br>
<br>
On Thu, February 27, 2014 12:08 pm, Arun Sl wrote:<br>
> Hello Again,<br>
><br>
> Just fixed the issue:<br>
><br>
> This seems to be something to do with the order in which the arguments
are<br>
> given to createSurface that was causing the issue.<br>
><br>
>  pANWContainer->surface_control =<br>
>             pSFContainer->composer_client->createSurface(<br>
>                 String8("Waffle
Surface"),0,<br>
>             droid_magic_surface_width,
droid_magic_surface_height,<br>
>             PIXEL_FORMAT_RGB_888);<br>
><br>
> Now this is solved.<br>
> But the code need to branch based on Android version make it work
on old<br>
> android versions as well as newer ones.<br>
><br>
> Thanks & Regards<br>
> Arun S L<br>
><br>
><br>
><br>
> From:<br>
> Arun Sl/HYD/TCS<br>
> To:<br>
> waffle@lists.freedesktop.org<br>
> Date:<br>
> 02/27/2014 03:12 PM<br>
> Subject:<br>
> waffle for android-4.1.2_r1<br>
><br>
><br>
> Hello,<br>
><br>
> I have tried latest waffle against android-4.1.2_r1 but it segfaults.<br>
><br>
> So to avoid the same, I did make the following changes:<br>
><br>
> struct wcore_window*<br>
> droid_window_create(struct wcore_platform *wc_plat,<br>
>                    
struct wcore_config *wc_config,<br>
>                    
int width,<br>
>                    
int height)<br>
> {<br>
>     struct droid_window *self;<br>
>     struct wegl_config *config = wegl_config(wc_config);<br>
>     struct droid_display *dpy = droid_display(wc_config->display);<br>
>     bool ok = true;<br>
><br>
>     self = wcore_calloc(sizeof(*self));<br>
>     if (self == NULL)<br>
>         return NULL;<br>
><br>
>     self->pANWContainer = droid_create_surface(width,
height,<br>
>                    
                     
     dpy->pSFContainer);<br>
>     if (!self->pANWContainer)<br>
>         goto error1;<br>
><br>
>     ok = wegl_window_init(&self->wegl, wc_config,<br>
>                    
      (intptr_t) *((intptr_t*)(self->pANWContainer)));<br>
>     if (!ok)<br>
>         goto error;<br>
><br>
>     return &self->wegl.wcore;<br>
><br>
> error:<br>
>     droid_window_destroy(&self->wegl.wcore);<br>
> error1:<br>
>     return NULL;<br>
> }<br>
><br>
> The waffle is still not working against even gl_basic, I am getting
the<br>
> following error:<br>
><br>
> gl_basic --platform=android --api=gles2<br>
> gl_basic: error: WAFFLE_ERROR_UNKNOWN: Unable to get<br>
> android::SurfaceControl<br>
><br>
> Can anyone guide me here?<br>
><br>
> Thanks & Regards<br>
> Arun S L<br>
><br>
> =====-----=====-----=====<br>
> Notice: The information contained in this e-mail<br>
> message and/or attachments to it may contain<br>
> confidential or privileged information. If you are<br>
> not the intended recipient, any dissemination, use,<br>
> review, distribution, printing or copying of the<br>
> information contained in this e-mail message<br>
> and/or attachments to it are strictly prohibited. If<br>
> you have received this communication in error,<br>
> please notify us by reply e-mail or telephone and<br>
> immediately and permanently delete the message<br>
> and any attachments. Thank you<br>
><br>
><br>
> _______________________________________________<br>
> waffle mailing list<br>
> waffle@lists.freedesktop.org<br>
> </font></tt><a href=http://lists.freedesktop.org/mailman/listinfo/waffle><tt><font size=2>http://lists.freedesktop.org/mailman/listinfo/waffle</font></tt></a><tt><font size=2><br>
><br>
<br>
</font></tt>
<br>
<br>