]>
Commit | Line | Data |
---|---|---|
49fde1d3 JR |
1 | diff -ur xf86-video-ati-19.1.0/src/drmmode_display.c xf86-video-ati-19.1.0-pc/src/drmmode_display.c |
2 | --- xf86-video-ati-19.1.0/src/drmmode_display.c 2019-10-15 18:16:29.000000000 +0200 | |
3 | +++ xf86-video-ati-19.1.0-pc/src/drmmode_display.c 2021-11-03 16:12:18.529160483 +0100 | |
4 | @@ -720,7 +720,7 @@ | |
5 | xorg_list_for_each_entry(dirty, &screen->pixmap_dirty_list, | |
6 | ent) { | |
7 | if (radeon_dirty_src_equals(dirty, drmmode_crtc->prime_scanout_pixmap)) { | |
8 | - dirty->slave_dst = | |
9 | + dirty->secondary_dst = | |
10 | drmmode_crtc->scanout[scanout_id].pixmap; | |
11 | break; | |
12 | } | |
13 | @@ -1356,7 +1356,7 @@ | |
14 | ||
15 | xorg_list_for_each_entry(dirty, &screen->pixmap_dirty_list, ent) { | |
16 | if (radeon_dirty_src_equals(dirty, drmmode_crtc->prime_scanout_pixmap)) { | |
17 | - PixmapStopDirtyTracking(dirty->src, dirty->slave_dst); | |
18 | + PixmapStopDirtyTracking(dirty->src, dirty->secondary_dst); | |
19 | break; | |
20 | } | |
21 | } | |
22 | diff -ur xf86-video-ati-19.1.0/src/radeon.h xf86-video-ati-19.1.0-pc/src/radeon.h | |
23 | --- xf86-video-ati-19.1.0/src/radeon.h 2019-10-15 18:16:29.000000000 +0200 | |
24 | +++ xf86-video-ati-19.1.0-pc/src/radeon.h 2021-11-03 16:13:14.916887353 +0100 | |
25 | @@ -184,8 +184,8 @@ | |
26 | static inline ScreenPtr | |
27 | radeon_master_screen(ScreenPtr screen) | |
28 | { | |
29 | - if (screen->current_master) | |
30 | - return screen->current_master; | |
31 | + if (screen->current_primary) | |
32 | + return screen->current_primary; | |
33 | ||
34 | return screen; | |
35 | } | |
36 | @@ -193,7 +193,7 @@ | |
37 | static inline ScreenPtr | |
38 | radeon_dirty_master(PixmapDirtyUpdatePtr dirty) | |
39 | { | |
40 | - return radeon_master_screen(dirty->slave_dst->drawable.pScreen); | |
41 | + return radeon_master_screen(dirty->secondary_dst->drawable.pScreen); | |
42 | } | |
43 | ||
44 | static inline DrawablePtr | |
45 | diff -ur xf86-video-ati-19.1.0/src/radeon_kms.c xf86-video-ati-19.1.0-pc/src/radeon_kms.c | |
46 | --- xf86-video-ati-19.1.0/src/radeon_kms.c 2019-10-15 18:16:29.000000000 +0200 | |
47 | +++ xf86-video-ati-19.1.0-pc/src/radeon_kms.c 2021-11-03 16:14:05.084381691 +0100 | |
48 | @@ -559,8 +559,8 @@ | |
49 | if (dirty->rotation != RR_Rotate_0) { | |
50 | dstregion = transform_region(damageregion, | |
51 | &dirty->f_inverse, | |
52 | - dirty->slave_dst->drawable.width, | |
53 | - dirty->slave_dst->drawable.height); | |
54 | + dirty->secondary_dst->drawable.width, | |
55 | + dirty->secondary_dst->drawable.height); | |
56 | } else | |
57 | #endif | |
58 | { | |
59 | @@ -568,7 +568,7 @@ | |
60 | ||
61 | dstregion = RegionDuplicate(damageregion); | |
62 | RegionTranslate(dstregion, -dirty->x, -dirty->y); | |
63 | - PixmapRegionInit(&pixregion, dirty->slave_dst); | |
64 | + PixmapRegionInit(&pixregion, dirty->secondary_dst); | |
65 | RegionIntersect(dstregion, dstregion, &pixregion); | |
66 | RegionUninit(&pixregion); | |
67 | } | |
68 | @@ -585,8 +585,8 @@ | |
69 | if (RegionNil(region)) | |
70 | goto out; | |
71 | ||
72 | - if (dirty->slave_dst->master_pixmap) | |
73 | - DamageRegionAppend(&dirty->slave_dst->drawable, region); | |
74 | + if (dirty->secondary_dst->primary_pixmap) | |
75 | + DamageRegionAppend(&dirty->secondary_dst->drawable, region); | |
76 | ||
77 | #ifdef HAS_DIRTYTRACKING_ROTATION | |
78 | PixmapSyncDirtyHelper(dirty); | |
79 | @@ -595,8 +595,8 @@ | |
80 | #endif | |
81 | ||
82 | radeon_cs_flush_indirect(src_scrn); | |
83 | - if (dirty->slave_dst->master_pixmap) | |
84 | - DamageRegionProcessPending(&dirty->slave_dst->drawable); | |
85 | + if (dirty->secondary_dst->primary_pixmap) | |
86 | + DamageRegionProcessPending(&dirty->secondary_dst->drawable); | |
87 | ||
88 | out: | |
89 | DamageEmpty(dirty->damage); | |
90 | @@ -618,7 +618,7 @@ | |
91 | RegionPtr region; | |
92 | ||
93 | xorg_list_for_each_entry(ent, &master_screen->pixmap_dirty_list, ent) { | |
94 | - if (!radeon_dirty_src_equals(dirty, ent->slave_dst)) | |
95 | + if (!radeon_dirty_src_equals(dirty, ent->secondary_dst)) | |
96 | continue; | |
97 | ||
98 | region = dirty_region(ent); | |
99 | @@ -641,7 +641,7 @@ | |
100 | static Bool | |
101 | slave_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty) | |
102 | { | |
103 | - ScreenPtr slave_screen = dirty->slave_dst->drawable.pScreen; | |
104 | + ScreenPtr slave_screen = dirty->secondary_dst->drawable.pScreen; | |
105 | ||
106 | return !!slave_screen->SyncSharedPixmap; | |
107 | } | |
108 | @@ -667,7 +667,7 @@ | |
109 | static Bool | |
110 | slave_has_sync_shared_pixmap(ScrnInfoPtr scrn, PixmapDirtyUpdatePtr dirty) | |
111 | { | |
112 | - ScrnInfoPtr slave_scrn = xf86ScreenToScrn(dirty->slave_dst->drawable.pScreen); | |
113 | + ScrnInfoPtr slave_scrn = xf86ScreenToScrn(dirty->secondary_dst->drawable.pScreen); | |
114 | ||
115 | return slave_scrn->driverName == scrn->driverName; | |
116 | } | |
117 | @@ -684,7 +684,7 @@ | |
118 | static xf86CrtcPtr | |
119 | radeon_prime_dirty_to_crtc(PixmapDirtyUpdatePtr dirty) | |
120 | { | |
121 | - ScreenPtr screen = dirty->slave_dst->drawable.pScreen; | |
122 | + ScreenPtr screen = dirty->secondary_dst->drawable.pScreen; | |
123 | ScrnInfoPtr scrn = xf86ScreenToScrn(screen); | |
124 | xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn); | |
125 | int c; | |
126 | @@ -727,7 +727,7 @@ | |
127 | radeon_cs_flush_indirect(scrn); | |
128 | RegionCopy(&drmmode_crtc->scanout_last_region, region); | |
129 | RegionTranslate(region, -crtc->x, -crtc->y); | |
130 | - dirty->slave_dst = drmmode_crtc->scanout[scanout_id].pixmap; | |
131 | + dirty->secondary_dst = drmmode_crtc->scanout[scanout_id].pixmap; | |
132 | } | |
133 | ||
134 | redisplay_dirty(dirty, region); | |
135 | @@ -754,7 +754,7 @@ | |
136 | static void | |
137 | radeon_prime_scanout_update(PixmapDirtyUpdatePtr dirty) | |
138 | { | |
139 | - ScreenPtr screen = dirty->slave_dst->drawable.pScreen; | |
140 | + ScreenPtr screen = dirty->secondary_dst->drawable.pScreen; | |
141 | ScrnInfoPtr scrn = xf86ScreenToScrn(screen); | |
142 | RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn); | |
143 | xf86CrtcPtr xf86_crtc = radeon_prime_dirty_to_crtc(dirty); | |
144 | @@ -818,7 +818,7 @@ | |
145 | static void | |
146 | radeon_prime_scanout_flip(PixmapDirtyUpdatePtr ent) | |
147 | { | |
148 | - ScreenPtr screen = ent->slave_dst->drawable.pScreen; | |
149 | + ScreenPtr screen = ent->secondary_dst->drawable.pScreen; | |
150 | ScrnInfoPtr scrn = xf86ScreenToScrn(screen); | |
151 | RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn); | |
152 | xf86CrtcPtr crtc = radeon_prime_dirty_to_crtc(ent); | |
153 | @@ -897,7 +897,7 @@ | |
154 | ScreenPtr master_screen = radeon_dirty_master(ent); | |
155 | ||
156 | xorg_list_for_each_entry(region_ent, &master_screen->pixmap_dirty_list, ent) { | |
157 | - if (radeon_dirty_src_equals(ent, region_ent->slave_dst)) | |
158 | + if (radeon_dirty_src_equals(ent, region_ent->secondary_dst)) | |
159 | break; | |
160 | } | |
161 | } |