summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-11-20 12:15:02 +1000
committerDave Airlie <airlied@itt42.(none)>2009-11-23 13:04:44 +1000
commite20af9c94982ec6487dae42c141d33cf6a7a2eb4 (patch)
tree6c933d03f4b0978751d5b6277f5ff3741f9035a3 /src/radeon.h
parentdd3eab848cf352bb96c3d01fe6028d8a4a8e451e (diff)
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 <airlied@redhat.com>
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon.h b/src/radeon.h
index 1e479f4e..0dbaa52a 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -173,6 +173,7 @@ typedef enum {
OPTION_PCIAPER_SIZE,
#ifdef USE_EXA
OPTION_ACCEL_DFS,
+ OPTION_EXA_LOW_VRAM,
#endif
#endif
OPTION_IGNORE_EDID,
@@ -894,6 +895,7 @@ typedef struct {
Bool accelOn;
Bool useEXA;
#ifdef USE_EXA
+ Bool exa_force_create;
XF86ModReqInfo exaReq;
#endif
#ifdef USE_XAA
@@ -1004,6 +1006,7 @@ typedef struct {
uint64_t vram_size;
uint64_t gart_size;
drmmode_rec drmmode;
+ int exa_low_vram_threshhold_mb;
#else
/* fake bool */
Bool cs;