mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
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>
This commit is contained in:
committed by
Michel Dänzer
parent
851b2cf871
commit
cc615d06db
@@ -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
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
OPTION_NOACCEL,
|
||||
OPTION_ACCEL,
|
||||
OPTION_SW_CURSOR,
|
||||
OPTION_PAGE_FLIP,
|
||||
OPTION_EXA_PIXMAPS,
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user