diff options
author | Eric Anholt <eric@anholt.net> | 2009-01-22 17:08:19 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-03-06 14:34:19 -0800 |
commit | 568297d327cc321f1186afc54b38d08db3f2914d (patch) | |
tree | c438337fd44333741de1dcec321bb5cc1aa2216c | |
parent | 4e1144108424a4525bbd97c3d5a56de06760bdd9 (diff) |
Don't allocate the render power saving context in KMS mode.
That would be the kernel's job if it chooses to do it.
Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | src/i830_memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c index 3fa6a7c0..361fff71 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -1688,6 +1688,9 @@ i830_allocate_pwrctx(ScrnInfoPtr pScrn) { I830Ptr pI830 = I830PTR(pScrn); + if (pI830->use_drm_mode) + return TRUE; + pI830->power_context = i830_allocate_memory(pScrn, "power context", PWRCTX_SIZE, PITCH_NONE, GTT_PAGE_SIZE, |