summaryrefslogtreecommitdiff
path: root/src/radeon_legacy_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_legacy_memory.c')
-rw-r--r--src/radeon_legacy_memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_legacy_memory.c b/src/radeon_legacy_memory.c
index 5d66c920..b01ba8cc 100644
--- a/src/radeon_legacy_memory.c
+++ b/src/radeon_legacy_memory.c
@@ -18,7 +18,7 @@ radeon_legacy_allocate_memory(ScrnInfoPtr pScrn,
int align,
int domain)
{
- ScreenPtr pScreen = screenInfo.screens[pScrn->scrnIndex];
+ ScreenPtr pScreen = xf86ScrnToScreen(pScrn);
RADEONInfoPtr info = RADEONPTR(pScrn);
uint32_t offset = 0;
@@ -121,7 +121,7 @@ radeon_legacy_free_memory(ScrnInfoPtr pScrn,
}
#endif
#ifdef USE_EXA
- ScreenPtr pScreen = screenInfo.screens[pScrn->scrnIndex];
+ ScreenPtr pScreen = xf86ScrnToScreen(pScrn);
if (info->useEXA) {
ExaOffscreenArea *area = mem_struct;