Lines 503-509
Link Here
|
503 |
{ |
503 |
{ |
504 |
ret = drmSetMaster(pNv->dev->fd); |
504 |
ret = drmSetMaster(pNv->dev->fd); |
505 |
if (ret) |
505 |
if (ret) |
506 |
ErrorF("Unable to get master: %s\n", strerror(errno)); |
506 |
ErrorF("Unable to get primary: %s\n", strerror(errno)); |
507 |
} |
507 |
} |
508 |
|
508 |
|
509 |
if (XF86_CRTC_CONFIG_PTR(pScrn)->num_crtc && !xf86SetDesiredModes(pScrn)) |
509 |
if (XF86_CRTC_CONFIG_PTR(pScrn)->num_crtc && !xf86SetDesiredModes(pScrn)) |
Lines 541-547
Link Here
|
541 |
|
541 |
|
542 |
ret = drmDropMaster(pNv->dev->fd); |
542 |
ret = drmDropMaster(pNv->dev->fd); |
543 |
if (ret && errno != EIO && errno != ENODEV) |
543 |
if (ret && errno != EIO && errno != ENODEV) |
544 |
ErrorF("Error dropping master: %i(%m)\n", -errno); |
544 |
ErrorF("Error dropping primary: %i(%m)\n", -errno); |
545 |
} |
545 |
} |
546 |
|
546 |
|
547 |
static void |
547 |
static void |
Lines 559-574
Link Here
|
559 |
{ |
559 |
{ |
560 |
RegionRec pixregion; |
560 |
RegionRec pixregion; |
561 |
|
561 |
|
562 |
PixmapRegionInit(&pixregion, dirty->slave_dst); |
562 |
PixmapRegionInit(&pixregion, dirty->secondary_dst); |
563 |
|
563 |
|
564 |
DamageRegionAppend(&dirty->slave_dst->drawable, &pixregion); |
564 |
DamageRegionAppend(&dirty->secondary_dst->drawable, &pixregion); |
565 |
#ifdef HAS_DIRTYTRACKING_ROTATION |
565 |
#ifdef HAS_DIRTYTRACKING_ROTATION |
566 |
PixmapSyncDirtyHelper(dirty); |
566 |
PixmapSyncDirtyHelper(dirty); |
567 |
#else |
567 |
#else |
568 |
PixmapSyncDirtyHelper(dirty, &pixregion); |
568 |
PixmapSyncDirtyHelper(dirty, &pixregion); |
569 |
#endif |
569 |
#endif |
570 |
|
570 |
|
571 |
DamageRegionProcessPending(&dirty->slave_dst->drawable); |
571 |
DamageRegionProcessPending(&dirty->secondary_dst->drawable); |
572 |
RegionUninit(&pixregion); |
572 |
RegionUninit(&pixregion); |
573 |
} |
573 |
} |
574 |
|
574 |
|