summaryrefslogtreecommitdiff
path: root/src/i830_memory.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2008-03-07 13:18:09 -0800
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2008-03-07 13:18:09 -0800
commit5915c75422c5277d530e7f8ecbdfe94654706efd (patch)
tree47a11a0a776a47364c990fa4d5652c24892cab0c /src/i830_memory.c
parent13ae79b415d944891cfdc2cd2d5397fec36a4e8e (diff)
Enable hardware overlay on 965
Based on Maxim Levitsky's patch for the same. Many thanks to Maxim for discovering that this features still works in recent hardware!
Diffstat (limited to 'src/i830_memory.c')
-rw-r--r--src/i830_memory.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index ad34f19c..e9097ecb 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -1044,15 +1044,13 @@ i830_allocate_overlay(ScrnInfoPtr pScrn)
if (!OVERLAY_NOPHYSICAL(pI830))
flags |= NEED_PHYSICAL_ADDR;
- if (!IS_I965G(pI830)) {
- pI830->overlay_regs = i830_allocate_memory(pScrn, "overlay registers",
- OVERLAY_SIZE, GTT_PAGE_SIZE,
- flags);
- if (pI830->overlay_regs == NULL) {
- xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
- "Failed to allocate Overlay register space.\n");
- /* This failure isn't fatal. */
- }
+ pI830->overlay_regs = i830_allocate_memory(pScrn, "overlay registers",
+ OVERLAY_SIZE, GTT_PAGE_SIZE,
+ flags);
+ if (pI830->overlay_regs == NULL) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "Failed to allocate Overlay register space.\n");
+ /* This failure isn't fatal. */
}
return TRUE;