[Mesa-dev] [PATCH] st/egl: Flush resources before presentation (android - bug 77966)
pstglia
pstglia at gmail.com
Fri May 2 08:00:11 PDT 2014
---
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
More information about the mesa-dev
mailing list