summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/i830_memory.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index ca159649..2053d06b 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -1074,8 +1074,11 @@ i830_allocate_overlay(ScrnInfoPtr pScrn)
if (OVERLAY_NOEXIST(pI830))
return TRUE;
- if (!OVERLAY_NOPHYSICAL(pI830))
+ if (!OVERLAY_NOPHYSICAL(pI830)) {
+ if (pI830->use_drm_mode)
+ return TRUE;
flags |= NEED_PHYSICAL_ADDR;
+ }
pI830->overlay_regs = i830_allocate_memory(pScrn, "overlay registers",
OVERLAY_SIZE, GTT_PAGE_SIZE,