<div dir="ltr">Thanks for the push Christian.<div><br></div><div>Cheers,</div><div>Nayan. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 20, 2016 at 2:49 PM, Christian König <span dir="ltr"><<a href="mailto:deathsimple@vodafone.de" target="_blank">deathsimple@vodafone.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've just pushed this version of the patchset.<br>
<br>
Thanks for the help,<br>
Christian.<div class="HOEnZb"><div class="h5"><br>
<br>
Am 20.09.2016 um 06:52 schrieb Nayan Deshmukh:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
so that the texture is rendered to back buffer before calling<br>
flush_frontbuffer and can be copied to a different buffer in<br>
the function<br>
<br>
v2: change comment style<br>
<br>
Signed-off-by: Nayan Deshmukh <<a href="mailto:nayan26deshmukh@gmail.com" target="_blank">nayan26deshmukh@gmail.com</a>><br>
Reviewed-by: Michel Dänzer <<a href="mailto:michel.daenzer@amd.com" target="_blank">michel.daenzer@amd.com</a>><br>
---<br>
  src/gallium/state_trackers/va/<wbr>surface.c | 6 +++++-<br>
  1 file changed, 5 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/gallium/state_trackers/v<wbr>a/surface.c b/src/gallium/state_trackers/v<wbr>a/surface.c<br>
index 00df69d..115db43 100644<br>
--- a/src/gallium/state_trackers/v<wbr>a/surface.c<br>
+++ b/src/gallium/state_trackers/v<wbr>a/surface.c<br>
@@ -321,10 +321,14 @@ vlVaPutSurface(VADriverContext<wbr>P ctx, VASurfaceID surface_id, void* draw, short s<br>
        return status;<br>
     }<br>
  +   /* flush before calling flush_frontbuffer so that rendering is flushed<br>
+    * to back buffer so the texture can be copied in flush_frontbuffer<br>
+    */<br>
+   drv->pipe->flush(drv->pipe, NULL, 0);<br>
+<br>
     screen->flush_frontbuffer(scr<wbr>een, tex, 0, 0,<br>
                               vscreen->get_private(vscreen)<wbr>, NULL);<br>
  -   drv->pipe->flush(drv->pipe, NULL, 0);<br>
       pipe_resource_reference(&tex, NULL);<br>
     pipe_surface_reference(&surf_<wbr>draw, NULL);<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br></div>