diff options
Diffstat (limited to 'src/sna/gen4_render.c')
-rw-r--r-- | src/sna/gen4_render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index 6316f543..552da49a 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -1479,7 +1479,8 @@ gen4_render_video(struct sna *sna, } while (nbox); gen4_vertex_flush(sna); - sna_damage_add(&priv->gpu_damage, dstRegion); + if (!DAMAGE_IS_ALL(priv->gpu_damage)) + sna_damage_add(&priv->gpu_damage, dstRegion); return true; } |