diff options
author | Dave Airlie <airlied@redhat.com> | 2020-07-13 09:11:28 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-07-13 09:16:47 +1000 |
commit | 8da3e4561ef82bb78c9a17b8cd8bf139b9cfd680 (patch) | |
tree | fdde082547f802f202cea9dcf160ba5ccf51e1bf /src/radeon.h | |
parent | 3845392426e9798c1fb2a6fc5e97bf5dfd5c443d (diff) |
ati: cleanup terminology to use primary/secondary
The X server changed some API/ABIs here.
Based on amdgpu patch by Michel
Diffstat (limited to 'src/radeon.h')
-rw-r--r-- | src/radeon.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/radeon.h b/src/radeon.h index e4a2ba66..68d7756a 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -182,18 +182,18 @@ typedef enum { static inline ScreenPtr -radeon_master_screen(ScreenPtr screen) +radeon_primary_screen(ScreenPtr screen) { - if (screen->current_master) - return screen->current_master; + if (screen->current_primary) + return screen->current_primary; return screen; } static inline ScreenPtr -radeon_dirty_master(PixmapDirtyUpdatePtr dirty) +radeon_dirty_primary(PixmapDirtyUpdatePtr dirty) { - return radeon_master_screen(dirty->slave_dst->drawable.pScreen); + return radeon_primary_screen(dirty->secondary_dst->drawable.pScreen); } static inline DrawablePtr |