diff options
author | Dave Airlie <airlied@linux.ie> | 2008-12-29 12:50:25 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-12-29 12:51:48 +1000 |
commit | b710a688a7383df320f9d4e765b48331310a4d1d (patch) | |
tree | 0d629c3a92c752ac8399b55a991efeba6143231b | |
parent | 649374b88b330838133d78be1953ce8b18ddd2c6 (diff) |
intel/kms: disable overlay when it needs physical address
We can't do phy address allocations, need kernel support for this.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/i830_memory.c | 5 |
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, |