modesetting: Consistent whitespace in driver.c
For some reason a couple of the dirty functions in driver.c used 8 spaces per tab instead of 4 like the rest of the file. Fix this to make it more consistent and give me more room to work in ms_dirty_update in subsequent commits. v1: N/A v2: N/A v3: N/A v4: Initial commit Signed-off-by: Alex Goins <agoins@nvidia.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
137ac094e7
commit
2d0f151c61
|
@ -568,32 +568,32 @@ static void
|
||||||
redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty)
|
redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty)
|
||||||
{
|
{
|
||||||
|
|
||||||
RegionRec pixregion;
|
RegionRec pixregion;
|
||||||
|
|
||||||
PixmapRegionInit(&pixregion, dirty->slave_dst);
|
PixmapRegionInit(&pixregion, dirty->slave_dst);
|
||||||
DamageRegionAppend(&dirty->slave_dst->drawable, &pixregion);
|
DamageRegionAppend(&dirty->slave_dst->drawable, &pixregion);
|
||||||
PixmapSyncDirtyHelper(dirty);
|
PixmapSyncDirtyHelper(dirty);
|
||||||
|
|
||||||
DamageRegionProcessPending(&dirty->slave_dst->drawable);
|
DamageRegionProcessPending(&dirty->slave_dst->drawable);
|
||||||
RegionUninit(&pixregion);
|
RegionUninit(&pixregion);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ms_dirty_update(ScreenPtr screen)
|
ms_dirty_update(ScreenPtr screen)
|
||||||
{
|
{
|
||||||
RegionPtr region;
|
RegionPtr region;
|
||||||
PixmapDirtyUpdatePtr ent;
|
PixmapDirtyUpdatePtr ent;
|
||||||
|
|
||||||
if (xorg_list_is_empty(&screen->pixmap_dirty_list))
|
if (xorg_list_is_empty(&screen->pixmap_dirty_list))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
xorg_list_for_each_entry(ent, &screen->pixmap_dirty_list, ent) {
|
xorg_list_for_each_entry(ent, &screen->pixmap_dirty_list, ent) {
|
||||||
region = DamageRegion(ent->damage);
|
region = DamageRegion(ent->damage);
|
||||||
if (RegionNotEmpty(region)) {
|
if (RegionNotEmpty(region)) {
|
||||||
redisplay_dirty(screen, ent);
|
redisplay_dirty(screen, ent);
|
||||||
DamageEmpty(ent->damage);
|
DamageEmpty(ent->damage);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue