sna: Refine detection of when shadow is active during BlockHandler

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-04-18 20:55:49 +01:00
parent 2d9ae02c64
commit fb0ed43cbc
1 changed files with 4 additions and 1 deletions

View File

@ -632,7 +632,10 @@ static bool has_shadow(struct sna *sna)
if (!sna->mode.shadow_damage)
return false;
return RegionNotEmpty(DamageRegion(sna->mode.shadow_damage));
if (RegionNil(DamageRegion(sna->mode.shadow_damage)))
return false;
return sna->mode.shadow_flip == 0;
}
static void