st/dri: Clear drawable texture_mask in dri2_invalidate_drawable
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 9 Jun 2016 06:15:19 +0000 (15:15 +0900)
committerMichel Dänzer <michel@daenzer.net>
Tue, 14 Jun 2016 09:16:54 +0000 (18:16 +0900)
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>
src/gallium/state_trackers/dri/dri2.c

index 28f8078..c22a8cd 100644 (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);
 }