[Mesa-dev] [PATCH] st/egl: Flush resources before presentation (android - bug 77966)

Paulo Sergio pstglia at gmail.com
Sun May 4 15:12:12 PDT 2014


Ok. Name is Paulo Sergio Travaglia. Shall I resend the patch?

Thanks
Em 04/05/2014 18:40, "Chia-I Wu" <olvaffe at gmail.com> escreveu:

> On Sun, May 4, 2014 at 7:02 PM, Marek Olšák <maraeo at gmail.com> wrote:
> > Reviewed-by: Marek Olšák <marek.olsak at amd.com>
> Looks good to me too, except please use your real name.
> > Marek
> >
> > On Fri, May 2, 2014 at 5:00 PM, pstglia <pstglia at gmail.com> wrote:
> >> ---
> >>  src/gallium/state_trackers/egl/android/native_android.cpp | 7 +++++++
> >>  1 file changed, 7 insertions(+)
> >>
> >> diff --git a/src/gallium/state_trackers/egl/android/native_android.cpp
> b/src/gallium/state_trackers/egl/android/native_android.cpp
> >> index e73d031..8620ed8 100644
> >> --- a/src/gallium/state_trackers/egl/android/native_android.cpp
> >> +++ b/src/gallium/state_trackers/egl/android/native_android.cpp
> >> @@ -396,6 +396,13 @@ android_surface_swap_buffers(struct native_surface
> *nsurf)
> >>     struct android_surface *asurf = android_surface(nsurf);
> >>     struct android_display *adpy = asurf->adpy;
> >>
> >> +   struct native_display *ndpy = &adpy->base;
> >> +   struct pipe_context *pipe = ndpy_get_copy_context(ndpy);
> >> +
> >> +   /* flush buffer */
> >> +   pipe->flush_resource(pipe, asurf->buf_res);
> >> +   pipe->flush(pipe, NULL, 0);
> >> +
> >>     android_surface_enqueue_buffer(&asurf->base);
> >>
> >>     asurf->stamp++;
> >> --
> >> 1.7.12.1
> >>
> >> _______________________________________________
> >> mesa-dev mailing list
> >> mesa-dev at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
>
>
> --
> olv at LunarG.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140504/eda15311/attachment-0001.html>


More information about the mesa-dev mailing list