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 <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Michel Dänzer 2016-06-09 15:15:19 +09:00 committed by Michel Dänzer
parent a93bb2e33f
commit 9ee3f097b6

View file

@ -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);
}