summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-11-25 13:24:44 +1000
committerDave Airlie <airlied@redhat.com>2009-11-25 13:24:44 +1000
commit8b28534bcf877557a5681fa3b4f107c74615d3de (patch)
tree966775fad507586c880dba6332d55fd58ede8155 /src/radeon_kms.c
parentf0acb16fa19844453adc6db3399977fba7c8a0db (diff)
radeon/exa: change option to determine exa pixmap usage.
This moves to a boolean instead of using VRAM sizing. as per Michel's suggestions on list. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 68a63458..9ee08f3f 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -67,7 +67,7 @@ const OptionInfoRec RADEONOptions_KMS[] = {
{ OPTION_DRI, "DRI", OPTV_BOOLEAN, {0}, FALSE },
{ OPTION_TVSTD, "TVStandard", OPTV_STRING, {0}, FALSE },
{ OPTION_EXA_VSYNC, "EXAVSync", OPTV_BOOLEAN, {0}, FALSE },
- { OPTION_EXA_LOW_VRAM, "EXALowVRAM", OPTV_INTEGER, {0}, FALSE },
+ { OPTION_EXA_PIXMAPS, "EXAPixmaps", OPTV_BOOLEAN, {0}, FALSE },
{ -1, NULL, OPTV_NONE, {0}, FALSE }
};
@@ -460,19 +460,15 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
}
}
- info->exa_low_vram_threshhold_mb = 32;
- if (xf86GetOptValInteger(info->Options, OPTION_EXA_LOW_VRAM,
- &(info->exa_low_vram_threshhold_mb))) {
- if (info->exa_low_vram_threshhold_mb < 0 ||
- info->exa_low_vram_threshhold_mb > (info->vram_size * 1024 * 1024)) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
- "Illegal Low VRAM limit selected %d, total %u\n",
- info->exa_low_vram_threshhold_mb,
- (unsigned int)(info->vram_size / (1024*1024)));
- info->exa_low_vram_threshhold_mb = 32;
- }
- }
-
+ info->exa_pixmaps = xf86ReturnOptValBool(info->Options,
+ OPTION_EXA_PIXMAPS,
+ (info->vram_size > (32 * 1024 * 1024)));
+ if (info->exa_pixmaps)
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "EXA: Driver will allow EXA pixmaps in VRAM\n");
+ else
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "EXA: Driver will not allow EXA pixmaps in VRAM\n");
RADEONSetPitch(pScrn);
/* Set display resolution */