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:
parent
2d9ae02c64
commit
fb0ed43cbc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue