diff options
author | Michel Dänzer <[email protected]> | 2016-06-09 15:15:19 +0900 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2016-06-14 18:16:54 +0900 |
commit | 9ee3f097b65398250e836785a7e87520eda8298d (patch) | |
tree | f28e67ca192135af91b7266ad4338d9a04f27f86 /src/gallium | |
parent | a93bb2e33f189c838a80125bcd5ce388f681dcaf (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/dri/dri2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index 28f8078121d..c22a8cdc430 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); } |