From: Michel Dänzer Date: Thu, 9 Jun 2016 06:15:19 +0000 (+0900) Subject: st/dri: Clear drawable texture_mask in dri2_invalidate_drawable X-Git-Tag: upstream/17.1.0~8746 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ee3f097b65398250e836785a7e87520eda8298d;p=platform%2Fupstream%2Fmesa.git st/dri: Clear drawable texture_mask in dri2_invalidate_drawable This makes sure that dri_set_tex_buffer2 -> dri_drawable_validate_att will re-create the front left attachment buffer after the drawable got invalidated. Fixes window contents not updating until the window is resized when using DRI2 PRIME. Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index 28f8078..c22a8cd 100644 --- a/src/gallium/state_trackers/dri/dri2.c +++ b/src/gallium/state_trackers/dri/dri2.c @@ -167,6 +167,7 @@ dri2_invalidate_drawable(__DRIdrawable *dPriv) dri2InvalidateDrawable(dPriv); drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp; + drawable->texture_mask = 0; p_atomic_inc(&drawable->base.stamp); }