From e20af9c94982ec6487dae42c141d33cf6a7a2eb4 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 20 Nov 2009 12:15:02 +1000 Subject: radeon: avoid using hw pixmaps when we have little VRAM. This patch returns NULL for pixmap creation when we are using mixed pixmaps and the pixmap has a size. The size check is necessary for the front buffer. We add a flag to force pixmap creation for certain pixmaps that need to be hw, like the DRI2 and Xv ones. Idea from Michel and workarounds from Ben Skeggs. v2: add Option "EXALowVRAM" to allow configuring this, value in MBs. Signed-off-by: Dave Airlie --- src/radeon_textured_video.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/radeon_textured_video.c') diff --git a/src/radeon_textured_video.c b/src/radeon_textured_video.c index 39c75749..7396f6f0 100644 --- a/src/radeon_textured_video.c +++ b/src/radeon_textured_video.c @@ -349,7 +349,9 @@ RADEONPutImageTextured(ScrnInfoPtr pScrn, #ifdef USE_EXA if (info->useEXA) { /* Force the pixmap into framebuffer so we can draw to it. */ + info->exa_force_create = TRUE; exaMoveInPixmap(pPriv->pPixmap); + info->exa_force_create = FALSE; } #endif -- cgit v1.2.3