<p dir="ltr">Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></p>
<div class="gmail_quote">On Jun 9, 2016 10:26 AM, "Nicolai Hähnle" <<a href="mailto:nhaehnle@gmail.com">nhaehnle@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looks reasonable.<br>
<br>
Reviewed-by: Nicolai Hähnle <<a href="mailto:nicolai.haehnle@amd.com" target="_blank">nicolai.haehnle@amd.com</a>><br>
<br>
On 09.06.2016 08:44, Michel Dänzer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Michel Dänzer <<a href="mailto:michel.daenzer@amd.com" target="_blank">michel.daenzer@amd.com</a>><br>
<br>
This makes sure that dri_set_tex_buffer2 -> dri_drawable_validate_att<br>
will re-create the front left attachment buffer after the drawable got<br>
invalidated.<br>
<br>
Fixes window contents not updating until the window is resized when<br>
using DRI2 PRIME.<br>
<br>
Signed-off-by: Michel Dänzer <<a href="mailto:michel.daenzer@amd.com" target="_blank">michel.daenzer@amd.com</a>><br>
---<br>
  src/gallium/state_trackers/dri/dri2.c | 1 +<br>
  1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c<br>
index 28f8078..c22a8cd 100644<br>
--- a/src/gallium/state_trackers/dri/dri2.c<br>
+++ b/src/gallium/state_trackers/dri/dri2.c<br>
@@ -167,6 +167,7 @@ dri2_invalidate_drawable(__DRIdrawable *dPriv)<br>
<br>
     dri2InvalidateDrawable(dPriv);<br>
     drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp;<br>
+   drawable->texture_mask = 0;<br>
<br>
     p_atomic_inc(&drawable->base.stamp);<br>
  }<br>
<br>
</blockquote>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>