summaryrefslogtreecommitdiff
path: root/src/i830_dri.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-03-14 11:41:50 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2007-03-14 11:41:50 +0100
commit555b801a75cafa082808bc9bb683e700fc97d79a (patch)
treee99eb682fca82edd00373c1f379ea341bde2f426 /src/i830_dri.c
parent66fdb08c83d353fbe4e917900c54b555c869eb80 (diff)
Make sure the legacy texture area is there when needed.
This currently only matters when the DRM memory manager is not available and Option "Legacy3D" "off" is specified, but that hasn't always been the case and might change again in the future.
Diffstat (limited to 'src/i830_dri.c')
-rw-r--r--src/i830_dri.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c
index 8fae4b7e..b24c8391 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -702,6 +702,16 @@ I830DRIScreenInit(ScreenPtr pScreen)
i830_free_memory(pScrn, pI830->memory_manager);
pI830->memory_manager = NULL;
+
+ if (!(pI830->mmModeFlags & I830_KERNEL_TEX)) {
+ pI830->mmModeFlags |= I830_KERNEL_TEX;
+
+ if (!i830_allocate_texture_memory(pScrn)) {
+ I830DRICloseScreen(pScreen);
+ drmFreeVersion(version);
+ return FALSE;
+ }
+ }
}
}
#ifdef DAMAGE