diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2014-06-04 16:58:53 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2014-06-04 16:58:53 +0900 |
commit | cc615d06db0332fc6e673b55632bcc7bf957b44b (patch) | |
tree | 5f0879b398d4336a2fc15f86b9eaaf6d45bbeebe | |
parent | 851b2cf8714618843725f6d067915375485ade9d (diff) |
Rename Option "NoAccel" to "Accel"
Removes the need for a double negation when forcing acceleration on.
Note that this change is backwards compatible, as the option parser
automagically handles the 'No' prefix.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | man/radeon.man | 8 | ||||
-rw-r--r-- | src/radeon.h | 2 | ||||
-rw-r--r-- | src/radeon_kms.c | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/man/radeon.man b/man/radeon.man index 65b880cb..802f6c2f 100644 --- a/man/radeon.man +++ b/man/radeon.man @@ -225,12 +225,12 @@ are supported: Selects software cursor. The default is .B off. .TP -.BI "Option \*qNoAccel\*q \*q" boolean \*q +.BI "Option \*qAccel\*q \*q" boolean \*q Enables or disables all hardware acceleration. .br -The default is to -.B enable -hardware acceleration. +The default is +.B on +except for HAWAII. .TP .BI "Option \*qZaphodHeads\*q \*q" string \*q Specify the RandR output(s) to use with zaphod mode for a particular driver diff --git a/src/radeon.h b/src/radeon.h index 136a430b..eac6ed59 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -135,7 +135,7 @@ #endif typedef enum { - OPTION_NOACCEL, + OPTION_ACCEL, OPTION_SW_CURSOR, OPTION_PAGE_FLIP, OPTION_EXA_PIXMAPS, diff --git a/src/radeon_kms.c b/src/radeon_kms.c index ceaf575d..707d0c76 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -59,7 +59,7 @@ extern SymTabRec RADEONChipsets[]; static Bool radeon_setup_kernel_mem(ScreenPtr pScreen); const OptionInfoRec RADEONOptions_KMS[] = { - { OPTION_NOACCEL, "NoAccel", OPTV_BOOLEAN, {0}, FALSE }, + { OPTION_ACCEL, "Accel", OPTV_BOOLEAN, {0}, FALSE }, { OPTION_SW_CURSOR, "SWcursor", OPTV_BOOLEAN, {0}, FALSE }, { OPTION_PAGE_FLIP, "EnablePageFlip", OPTV_BOOLEAN, {0}, FALSE }, { OPTION_COLOR_TILING, "ColorTiling", OPTV_BOOLEAN, {0}, FALSE }, @@ -499,8 +499,8 @@ static Bool RADEONPreInitAccel_KMS(ScrnInfoPtr pScrn) info->is_fast_fb = TRUE; } - if (xf86ReturnOptValBool(info->Options, OPTION_NOACCEL, - info->ChipFamily == CHIP_FAMILY_HAWAII) || + if (!xf86ReturnOptValBool(info->Options, OPTION_ACCEL, + info->ChipFamily != CHIP_FAMILY_HAWAII) || (!RADEONIsAccelWorking(pScrn))) { xf86DrvMsg(pScrn->scrnIndex, X_INFO, "GPU accel disabled or not working, using shadowfb for KMS\n"); |