Julien Cristau pushed to branch debian-unstable at X Strike Force / driver / xserver-xorg-video-ati
Commits:
-
f223035f
by Adam Jackson at 2020-02-05T11:39:53-05:00
-
4d84cf43
by Michel Dänzer at 2020-02-10T15:53:48+00:00
-
c0eb5dbd
by Alexey Sheplyakov at 2020-02-10T15:55:37+00:00
-
38453924
by Niclas Zeising at 2020-04-14T18:53:26+02:00
-
8da3e456
by Dave Airlie at 2020-07-13T09:16:47+10:00
-
b72fc967
by Julien Cristau at 2020-09-18T14:17:27+02:00
-
f0be7172
by Julien Cristau at 2020-09-18T14:58:16+02:00
11 changed files:
- debian/changelog
- man/radeon.man
- src/compat-api.h
- src/drmmode_display.c
- src/drmmode_display.h
- src/evergreen_state.h
- src/r600_state.h
- src/radeon.h
- src/radeon_exa.c
- src/radeon_glamor.c
- src/radeon_kms.c
Changes:
1 |
-xserver-xorg-video-ati (1:19.1.0-2) UNRELEASED; urgency=medium
|
|
1 |
+xserver-xorg-video-ati (1:19.1.0-2) unstable; urgency=medium
|
|
2 | 2 |
|
3 |
+ * Team upload
|
|
4 |
+ |
|
5 |
+ [ Debian Janitor ]
|
|
3 | 6 |
* Trim trailing whitespace.
|
4 | 7 |
* Bump debhelper from old 11 to 12.
|
5 | 8 |
* Set debhelper-compat version in Build-Depends.
|
6 | 9 |
* Set upstream metadata fields: Repository, Repository-Browse.
|
7 | 10 |
* Update standards version to 4.2.1, no changes needed.
|
8 | 11 |
|
9 |
- -- Debian Janitor <janitor@jelmer.uk> Wed, 18 Dec 2019 19:12:09 +0000
|
|
12 |
+ [ Julien Cristau ]
|
|
13 |
+ * Pull fixes from upstream master including a GCC 10 build fix
|
|
14 |
+ (closes: #957998).
|
|
15 |
+ |
|
16 |
+ -- Julien Cristau <jcristau@debian.org> Fri, 18 Sep 2020 14:58:08 +0200
|
|
10 | 17 |
|
11 | 18 |
xserver-xorg-video-ati (1:19.1.0-1) unstable; urgency=medium
|
12 | 19 |
|
... | ... | @@ -290,7 +290,7 @@ on. If this option is set, the default value of the property is 'on' or 'off' |
290 | 290 |
accordingly. If this option isn't set, the default value of the property is
|
291 | 291 |
.B auto,
|
292 | 292 |
which means that TearFree is on for rotated outputs, outputs with RandR
|
293 |
-transforms applied and for RandR 1.4 slave outputs, otherwise off.
|
|
293 |
+transforms applied and for RandR 1.4 secondary outputs, otherwise off.
|
|
294 | 294 |
.TP
|
295 | 295 |
.BI "Option \*qAccelMethod\*q \*q" "string" \*q
|
296 | 296 |
Chooses between available acceleration architectures. Valid values are
|
... | ... | @@ -34,4 +34,10 @@ |
34 | 34 |
#define BLOCKHANDLER_ARGS pScreen, pTimeout, pReadmask
|
35 | 35 |
#endif
|
36 | 36 |
|
37 |
+#if ABI_VIDEODRV_VERSION < SET_ABI_VERSION(25, 2)
|
|
38 |
+#define current_primary current_master
|
|
39 |
+#define primary_pixmap master_pixmap
|
|
40 |
+#define secondary_dst slave_dst
|
|
41 |
+#endif
|
|
42 |
+ |
|
37 | 43 |
#endif
|
... | ... | @@ -720,7 +720,7 @@ drmmode_crtc_prime_scanout_update(xf86CrtcPtr crtc, DisplayModePtr mode, |
720 | 720 |
xorg_list_for_each_entry(dirty, &screen->pixmap_dirty_list,
|
721 | 721 |
ent) {
|
722 | 722 |
if (radeon_dirty_src_equals(dirty, drmmode_crtc->prime_scanout_pixmap)) {
|
723 |
- dirty->slave_dst =
|
|
723 |
+ dirty->secondary_dst =
|
|
724 | 724 |
drmmode_crtc->scanout[scanout_id].pixmap;
|
725 | 725 |
break;
|
726 | 726 |
}
|
... | ... | @@ -1275,7 +1275,7 @@ drmmode_show_cursor (xf86CrtcPtr crtc) |
1275 | 1275 |
arg.hot_y = yhot;
|
1276 | 1276 |
|
1277 | 1277 |
ret = drmIoctl(pRADEONEnt->fd, DRM_IOCTL_MODE_CURSOR2, &arg);
|
1278 |
- if (ret == -EINVAL)
|
|
1278 |
+ if (ret == -1 && errno == EINVAL)
|
|
1279 | 1279 |
use_set_cursor2 = FALSE;
|
1280 | 1280 |
else
|
1281 | 1281 |
return;
|
... | ... | @@ -1356,7 +1356,7 @@ drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix) |
1356 | 1356 |
|
1357 | 1357 |
xorg_list_for_each_entry(dirty, &screen->pixmap_dirty_list, ent) {
|
1358 | 1358 |
if (radeon_dirty_src_equals(dirty, drmmode_crtc->prime_scanout_pixmap)) {
|
1359 |
- PixmapStopDirtyTracking(dirty->src, dirty->slave_dst);
|
|
1359 |
+ PixmapStopDirtyTracking(dirty->src, dirty->secondary_dst);
|
|
1360 | 1360 |
break;
|
1361 | 1361 |
}
|
1362 | 1362 |
}
|
... | ... | @@ -262,7 +262,7 @@ Bool drmmode_wait_vblank(xf86CrtcPtr crtc, drmVBlankSeqType type, |
262 | 262 |
uint64_t *ust, uint32_t *result_seq);
|
263 | 263 |
|
264 | 264 |
|
265 |
-miPointerSpriteFuncRec drmmode_sprite_funcs;
|
|
265 |
+extern miPointerSpriteFuncRec drmmode_sprite_funcs;
|
|
266 | 266 |
|
267 | 267 |
|
268 | 268 |
#endif
|
... | ... | @@ -350,7 +350,7 @@ extern void *RADEONEXACreatePixmap2(ScreenPtr pScreen, int width, int height, |
350 | 350 |
int *new_pitch);
|
351 | 351 |
extern void RADEONEXADestroyPixmap(ScreenPtr pScreen, void *driverPriv);
|
352 | 352 |
extern Bool RADEONEXAPixmapIsOffscreen(PixmapPtr pPix);
|
353 |
-extern Bool RADEONEXASharePixmapBacking(PixmapPtr ppix, ScreenPtr slave, void **handle_p);
|
|
353 |
+extern Bool RADEONEXASharePixmapBacking(PixmapPtr ppix, ScreenPtr secondary, void **handle_p);
|
|
354 | 354 |
extern Bool RADEONEXASetSharedPixmapBacking(PixmapPtr ppix, void *handle);
|
355 | 355 |
|
356 | 356 |
#endif
|
... | ... | @@ -321,6 +321,6 @@ extern void *RADEONEXACreatePixmap2(ScreenPtr pScreen, int width, int height, |
321 | 321 |
int *new_pitch);
|
322 | 322 |
extern void RADEONEXADestroyPixmap(ScreenPtr pScreen, void *driverPriv);
|
323 | 323 |
extern Bool RADEONEXAPixmapIsOffscreen(PixmapPtr pPix);
|
324 |
-extern Bool RADEONEXASharePixmapBacking(PixmapPtr ppix, ScreenPtr slave, void **handle_p);
|
|
324 |
+extern Bool RADEONEXASharePixmapBacking(PixmapPtr ppix, ScreenPtr secondary, void **handle_p);
|
|
325 | 325 |
extern Bool RADEONEXASetSharedPixmapBacking(PixmapPtr ppix, void *handle);
|
326 | 326 |
#endif
|
... | ... | @@ -182,18 +182,18 @@ typedef enum { |
182 | 182 |
|
183 | 183 |
|
184 | 184 |
static inline ScreenPtr
|
185 |
-radeon_master_screen(ScreenPtr screen)
|
|
185 |
+radeon_primary_screen(ScreenPtr screen)
|
|
186 | 186 |
{
|
187 |
- if (screen->current_master)
|
|
188 |
- return screen->current_master;
|
|
187 |
+ if (screen->current_primary)
|
|
188 |
+ return screen->current_primary;
|
|
189 | 189 |
|
190 | 190 |
return screen;
|
191 | 191 |
}
|
192 | 192 |
|
193 | 193 |
static inline ScreenPtr
|
194 |
-radeon_dirty_master(PixmapDirtyUpdatePtr dirty)
|
|
194 |
+radeon_dirty_primary(PixmapDirtyUpdatePtr dirty)
|
|
195 | 195 |
{
|
196 |
- return radeon_master_screen(dirty->slave_dst->drawable.pScreen);
|
|
196 |
+ return radeon_primary_screen(dirty->secondary_dst->drawable.pScreen);
|
|
197 | 197 |
}
|
198 | 198 |
|
199 | 199 |
static inline DrawablePtr
|
... | ... | @@ -790,8 +790,8 @@ static inline Bool radeon_set_pixmap_bo(PixmapPtr pPix, struct radeon_buffer *bo |
790 | 790 |
|
791 | 791 |
static inline struct radeon_buffer *radeon_get_pixmap_bo(PixmapPtr pPix)
|
792 | 792 |
{
|
793 |
-#ifdef USE_GLAMOR
|
|
794 | 793 |
RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(pPix->drawable.pScreen));
|
794 |
+#ifdef USE_GLAMOR
|
|
795 | 795 |
|
796 | 796 |
if (info->use_glamor) {
|
797 | 797 |
struct radeon_pixmap *priv;
|
... | ... | @@ -799,7 +799,7 @@ static inline struct radeon_buffer *radeon_get_pixmap_bo(PixmapPtr pPix) |
799 | 799 |
return priv ? priv->bo : NULL;
|
800 | 800 |
} else
|
801 | 801 |
#endif
|
802 |
- {
|
|
802 |
+ if (info->accelOn) {
|
|
803 | 803 |
struct radeon_exa_pixmap_priv *driver_priv;
|
804 | 804 |
driver_priv = exaGetPixmapDriverPrivate(pPix);
|
805 | 805 |
return driver_priv ? driver_priv->bo : NULL;
|
... | ... | @@ -896,7 +896,7 @@ radeon_pixmap_get_fb(PixmapPtr pix) |
896 | 896 |
handle);
|
897 | 897 |
}
|
898 | 898 |
|
899 |
- return *fb_ptr;
|
|
899 |
+ return fb_ptr ? *fb_ptr : NULL;
|
|
900 | 900 |
}
|
901 | 901 |
|
902 | 902 |
|
... | ... | @@ -282,7 +282,7 @@ void RADEONEXADestroyPixmap(ScreenPtr pScreen, void *driverPriv) |
282 | 282 |
free(driverPriv);
|
283 | 283 |
}
|
284 | 284 |
|
285 |
-Bool RADEONEXASharePixmapBacking(PixmapPtr ppix, ScreenPtr slave, void **fd_handle)
|
|
285 |
+Bool RADEONEXASharePixmapBacking(PixmapPtr ppix, ScreenPtr seconndary, void **fd_handle)
|
|
286 | 286 |
{
|
287 | 287 |
struct radeon_exa_pixmap_priv *driver_priv = exaGetPixmapDriverPrivate(ppix);
|
288 | 288 |
|
... | ... | @@ -366,7 +366,7 @@ radeon_glamor_set_pixmap_bo(DrawablePtr drawable, PixmapPtr pixmap) |
366 | 366 |
|
367 | 367 |
|
368 | 368 |
static Bool
|
369 |
-radeon_glamor_share_pixmap_backing(PixmapPtr pixmap, ScreenPtr slave,
|
|
369 |
+radeon_glamor_share_pixmap_backing(PixmapPtr pixmap, ScreenPtr secondary,
|
|
370 | 370 |
void **handle_p)
|
371 | 371 |
{
|
372 | 372 |
ScreenPtr screen = pixmap->drawable.pScreen;
|
... | ... | @@ -559,8 +559,8 @@ dirty_region(PixmapDirtyUpdatePtr dirty) |
559 | 559 |
if (dirty->rotation != RR_Rotate_0) {
|
560 | 560 |
dstregion = transform_region(damageregion,
|
561 | 561 |
&dirty->f_inverse,
|
562 |
- dirty->slave_dst->drawable.width,
|
|
563 |
- dirty->slave_dst->drawable.height);
|
|
562 |
+ dirty->secondary_dst->drawable.width,
|
|
563 |
+ dirty->secondary_dst->drawable.height);
|
|
564 | 564 |
} else
|
565 | 565 |
#endif
|
566 | 566 |
{
|
... | ... | @@ -568,7 +568,7 @@ dirty_region(PixmapDirtyUpdatePtr dirty) |
568 | 568 |
|
569 | 569 |
dstregion = RegionDuplicate(damageregion);
|
570 | 570 |
RegionTranslate(dstregion, -dirty->x, -dirty->y);
|
571 |
- PixmapRegionInit(&pixregion, dirty->slave_dst);
|
|
571 |
+ PixmapRegionInit(&pixregion, dirty->secondary_dst);
|
|
572 | 572 |
RegionIntersect(dstregion, dstregion, &pixregion);
|
573 | 573 |
RegionUninit(&pixregion);
|
574 | 574 |
}
|
... | ... | @@ -585,8 +585,8 @@ redisplay_dirty(PixmapDirtyUpdatePtr dirty, RegionPtr region) |
585 | 585 |
if (RegionNil(region))
|
586 | 586 |
goto out;
|
587 | 587 |
|
588 |
- if (dirty->slave_dst->master_pixmap)
|
|
589 |
- DamageRegionAppend(&dirty->slave_dst->drawable, region);
|
|
588 |
+ if (dirty->secondary_dst->primary_pixmap)
|
|
589 |
+ DamageRegionAppend(&dirty->secondary_dst->drawable, region);
|
|
590 | 590 |
|
591 | 591 |
#ifdef HAS_DIRTYTRACKING_ROTATION
|
592 | 592 |
PixmapSyncDirtyHelper(dirty);
|
... | ... | @@ -595,8 +595,8 @@ redisplay_dirty(PixmapDirtyUpdatePtr dirty, RegionPtr region) |
595 | 595 |
#endif
|
596 | 596 |
|
597 | 597 |
radeon_cs_flush_indirect(src_scrn);
|
598 |
- if (dirty->slave_dst->master_pixmap)
|
|
599 |
- DamageRegionProcessPending(&dirty->slave_dst->drawable);
|
|
598 |
+ if (dirty->secondary_dst->primary_pixmap)
|
|
599 |
+ DamageRegionProcessPending(&dirty->secondary_dst->drawable);
|
|
600 | 600 |
|
601 | 601 |
out:
|
602 | 602 |
DamageEmpty(dirty->damage);
|
... | ... | @@ -613,12 +613,12 @@ radeon_prime_scanout_update_abort(xf86CrtcPtr crtc, void *event_data) |
613 | 613 |
void
|
614 | 614 |
radeon_sync_shared_pixmap(PixmapDirtyUpdatePtr dirty)
|
615 | 615 |
{
|
616 |
- ScreenPtr master_screen = radeon_dirty_master(dirty);
|
|
616 |
+ ScreenPtr primary_screen = radeon_dirty_primary(dirty);
|
|
617 | 617 |
PixmapDirtyUpdatePtr ent;
|
618 | 618 |
RegionPtr region;
|
619 | 619 |
|
620 |
- xorg_list_for_each_entry(ent, &master_screen->pixmap_dirty_list, ent) {
|
|
621 |
- if (!radeon_dirty_src_equals(dirty, ent->slave_dst))
|
|
620 |
+ xorg_list_for_each_entry(ent, &primary_screen->pixmap_dirty_list, ent) {
|
|
621 |
+ if (!radeon_dirty_src_equals(dirty, ent->secondary_dst))
|
|
622 | 622 |
continue;
|
623 | 623 |
|
624 | 624 |
region = dirty_region(ent);
|
... | ... | @@ -631,45 +631,45 @@ radeon_sync_shared_pixmap(PixmapDirtyUpdatePtr dirty) |
631 | 631 |
#if HAS_SYNC_SHARED_PIXMAP
|
632 | 632 |
|
633 | 633 |
static Bool
|
634 |
-master_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty)
|
|
634 |
+primary_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty)
|
|
635 | 635 |
{
|
636 |
- ScreenPtr master_screen = radeon_dirty_master(dirty);
|
|
636 |
+ ScreenPtr primary_screen = radeon_dirty_primary(dirty);
|
|
637 | 637 |
|
638 |
- return !!master_screen->SyncSharedPixmap;
|
|
638 |
+ return !!primary_screen->SyncSharedPixmap;
|
|
639 | 639 |
}
|
640 | 640 |
|
641 | 641 |
static Bool
|
642 |
-slave_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty)
|
|
642 |
+secondary_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty)
|
|
643 | 643 |
{
|
644 |
- ScreenPtr slave_screen = dirty->slave_dst->drawable.pScreen;
|
|
644 |
+ ScreenPtr secondary_screen = dirty->secondary_dst->drawable.pScreen;
|
|
645 | 645 |
|
646 |
- return !!slave_screen->SyncSharedPixmap;
|
|
646 |
+ return !!secondary_screen->SyncSharedPixmap;
|
|
647 | 647 |
}
|
648 | 648 |
|
649 | 649 |
static void
|
650 | 650 |
call_sync_shared_pixmap(PixmapDirtyUpdatePtr dirty)
|
651 | 651 |
{
|
652 |
- ScreenPtr master_screen = radeon_dirty_master(dirty);
|
|
652 |
+ ScreenPtr primary_screen = radeon_dirty_primary(dirty);
|
|
653 | 653 |
|
654 |
- master_screen->SyncSharedPixmap(dirty);
|
|
654 |
+ primary_screen->SyncSharedPixmap(dirty);
|
|
655 | 655 |
}
|
656 | 656 |
|
657 | 657 |
#else /* !HAS_SYNC_SHARED_PIXMAP */
|
658 | 658 |
|
659 | 659 |
static Bool
|
660 |
-master_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty)
|
|
660 |
+primary_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty)
|
|
661 | 661 |
{
|
662 |
- ScrnInfoPtr master_scrn = xf86ScreenToScrn(radeon_dirty_master(dirty));
|
|
662 |
+ ScrnInfoPtr primary_scrn = xf86ScreenToScrn(radeon_dirty_primary(dirty));
|
|
663 | 663 |
|
664 |
- return master_scrn->driverName == scrn->driverName;
|
|
664 |
+ return primary_scrn->driverName == scrn->driverName;
|
|
665 | 665 |
}
|
666 | 666 |
|
667 | 667 |
static Bool
|
668 |
-slave_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty)
|
|
668 |
+secondary_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty)
|
|
669 | 669 |
{
|
670 |
- ScrnInfoPtr slave_scrn = xf86ScreenToScrn(dirty->slave_dst->drawable.pScreen);
|
|
670 |
+ ScrnInfoPtr secondary_scrn = xf86ScreenToScrn(dirty->secondary_dst->drawable.pScreen);
|
|
671 | 671 |
|
672 |
- return slave_scrn->driverName == scrn->driverName;
|
|
672 |
+ return secondary_scrn->driverName == scrn->driverName;
|
|
673 | 673 |
}
|
674 | 674 |
|
675 | 675 |
static void
|
... | ... | @@ -684,12 +684,12 @@ call_sync_shared_pixmap(PixmapDirtyUpdatePtr dirty) |
684 | 684 |
static xf86CrtcPtr
|
685 | 685 |
radeon_prime_dirty_to_crtc(PixmapDirtyUpdatePtr dirty)
|
686 | 686 |
{
|
687 |
- ScreenPtr screen = dirty->slave_dst->drawable.pScreen;
|
|
687 |
+ ScreenPtr screen = dirty->secondary_dst->drawable.pScreen;
|
|
688 | 688 |
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
|
689 | 689 |
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
|
690 | 690 |
int c;
|
691 | 691 |
|
692 |
- /* Find the CRTC which is scanning out from this slave pixmap */
|
|
692 |
+ /* Find the CRTC which is scanning out from this secondary pixmap */
|
|
693 | 693 |
for (c = 0; c < xf86_config->num_crtc; c++) {
|
694 | 694 |
xf86CrtcPtr xf86_crtc = xf86_config->crtc[c];
|
695 | 695 |
drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
|
... | ... | @@ -714,7 +714,7 @@ radeon_prime_scanout_do_update(xf86CrtcPtr crtc, unsigned scanout_id) |
714 | 714 |
if (radeon_dirty_src_equals(dirty, drmmode_crtc->prime_scanout_pixmap)) {
|
715 | 715 |
RegionPtr region;
|
716 | 716 |
|
717 |
- if (master_has_sync_shared_pixmap(scrn, dirty))
|
|
717 |
+ if (primary_has_sync_shared_pixmap(scrn, dirty))
|
|
718 | 718 |
call_sync_shared_pixmap(dirty);
|
719 | 719 |
|
720 | 720 |
region = dirty_region(dirty);
|
... | ... | @@ -727,7 +727,7 @@ radeon_prime_scanout_do_update(xf86CrtcPtr crtc, unsigned scanout_id) |
727 | 727 |
radeon_cs_flush_indirect(scrn);
|
728 | 728 |
RegionCopy(&drmmode_crtc->scanout_last_region, region);
|
729 | 729 |
RegionTranslate(region, -crtc->x, -crtc->y);
|
730 |
- dirty->slave_dst = drmmode_crtc->scanout[scanout_id].pixmap;
|
|
730 |
+ dirty->secondary_dst = drmmode_crtc->scanout[scanout_id].pixmap;
|
|
731 | 731 |
}
|
732 | 732 |
|
733 | 733 |
redisplay_dirty(dirty, region);
|
... | ... | @@ -754,7 +754,7 @@ radeon_prime_scanout_update_handler(xf86CrtcPtr crtc, uint32_t frame, uint64_t u |
754 | 754 |
static void
|
755 | 755 |
radeon_prime_scanout_update(PixmapDirtyUpdatePtr dirty)
|
756 | 756 |
{
|
757 |
- ScreenPtr screen = dirty->slave_dst->drawable.pScreen;
|
|
757 |
+ ScreenPtr screen = dirty->secondary_dst->drawable.pScreen;
|
|
758 | 758 |
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
|
759 | 759 |
RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn);
|
760 | 760 |
xf86CrtcPtr xf86_crtc = radeon_prime_dirty_to_crtc(dirty);
|
... | ... | @@ -818,7 +818,7 @@ radeon_prime_scanout_update(PixmapDirtyUpdatePtr dirty) |
818 | 818 |
static void
|
819 | 819 |
radeon_prime_scanout_flip(PixmapDirtyUpdatePtr ent)
|
820 | 820 |
{
|
821 |
- ScreenPtr screen = ent->slave_dst->drawable.pScreen;
|
|
821 |
+ ScreenPtr screen = ent->secondary_dst->drawable.pScreen;
|
|
822 | 822 |
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
|
823 | 823 |
RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn);
|
824 | 824 |
xf86CrtcPtr crtc = radeon_prime_dirty_to_crtc(ent);
|
... | ... | @@ -893,11 +893,11 @@ radeon_dirty_update(ScrnInfoPtr scrn) |
893 | 893 |
if (screen->isGPU) {
|
894 | 894 |
PixmapDirtyUpdatePtr region_ent = ent;
|
895 | 895 |
|
896 |
- if (master_has_sync_shared_pixmap(scrn, ent)) {
|
|
897 |
- ScreenPtr master_screen = radeon_dirty_master(ent);
|
|
896 |
+ if (primary_has_sync_shared_pixmap(scrn, ent)) {
|
|
897 |
+ ScreenPtr primary_screen = radeon_dirty_primary(ent);
|
|
898 | 898 |
|
899 |
- xorg_list_for_each_entry(region_ent, &master_screen->pixmap_dirty_list, ent) {
|
|
900 |
- if (radeon_dirty_src_equals(ent, region_ent->slave_dst))
|
|
899 |
+ xorg_list_for_each_entry(region_ent, &primary_screen->pixmap_dirty_list, ent) {
|
|
900 |
+ if (radeon_dirty_src_equals(ent, region_ent->secondary_dst))
|
|
901 | 901 |
break;
|
902 | 902 |
}
|
903 | 903 |
}
|
... | ... | @@ -921,7 +921,7 @@ radeon_dirty_update(ScrnInfoPtr scrn) |
921 | 921 |
|
922 | 922 |
RegionDestroy(region);
|
923 | 923 |
} else {
|
924 |
- if (slave_has_sync_shared_pixmap(scrn, ent))
|
|
924 |
+ if (secondary_has_sync_shared_pixmap(scrn, ent))
|
|
925 | 925 |
continue;
|
926 | 926 |
|
927 | 927 |
region = dirty_region(ent);
|
... | ... | @@ -1216,7 +1216,7 @@ static void RADEONBlockHandler_KMS(BLOCKHANDLER_ARGS_DECL) |
1216 | 1216 |
(*pScreen->BlockHandler) (BLOCKHANDLER_ARGS);
|
1217 | 1217 |
pScreen->BlockHandler = RADEONBlockHandler_KMS;
|
1218 | 1218 |
|
1219 |
- if (!xf86ScreenToScrn(radeon_master_screen(pScreen))->vtSema)
|
|
1219 |
+ if (!xf86ScreenToScrn(radeon_primary_screen(pScreen))->vtSema)
|
|
1220 | 1220 |
return;
|
1221 | 1221 |
|
1222 | 1222 |
if (!pScreen->isGPU)
|
... | ... | @@ -2584,7 +2584,7 @@ CARD32 cleanup_black_fb(OsTimerPtr timer, CARD32 now, pointer data) |
2584 | 2584 |
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
|
2585 | 2585 |
int c;
|
2586 | 2586 |
|
2587 |
- if (xf86ScreenToScrn(radeon_master_screen(screen))->vtSema)
|
|
2587 |
+ if (xf86ScreenToScrn(radeon_primary_screen(screen))->vtSema)
|
|
2588 | 2588 |
return 0;
|
2589 | 2589 |
|
2590 | 2590 |
/* Unreference the all-black FB created by RADEONLeaveVT_KMS. After
|