mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
Rename Option "NoAccel" to "Accel"
Totally cribbed from xf86-video-amdgpu/-radeon: commit 560b7fe6dc66405762020f00e9a05918a36f3a17 Author: Michel Dänzer <michel.daenzer@amd.com> Date: Wed Nov 11 17:31:34 2015 +0900 Rename Option "NoAccel" to "Accel" Renaming the option removes the need for a double negation when forcing acceleration on and is backwards compatible as the option parser automagically handles the 'No' prefix. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
@@ -112,8 +112,8 @@ The default is 8192 if AGP allocable memory is < 128 MB, 16384 if < 192 MB,
|
||||
24576 if higher. DRI require at least a value of 16384. Higher values may give
|
||||
better 3D performance, at expense of available system memory.
|
||||
.TP
|
||||
.BI "Option \*qNoAccel\*q \*q" boolean \*q
|
||||
Disable or enable acceleration.
|
||||
.BI "Option \*qAccel\*q \*q" boolean \*q
|
||||
Enable or disable acceleration.
|
||||
.IP
|
||||
Default: acceleration is enabled.
|
||||
|
||||
@@ -122,8 +122,8 @@ The following driver
|
||||
.B Options
|
||||
are supported for the 830M and later chipsets:
|
||||
.TP
|
||||
.BI "Option \*qNoAccel\*q \*q" boolean \*q
|
||||
Disable or enable acceleration.
|
||||
.BI "Option \*qAccel\*q \*q" boolean \*q
|
||||
Enable or disable acceleration.
|
||||
.IP
|
||||
Default: acceleration is enabled.
|
||||
.TP
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "intel_options.h"
|
||||
|
||||
const OptionInfoRec intel_options[] = {
|
||||
{OPTION_ACCEL_DISABLE, "NoAccel", OPTV_BOOLEAN, {0}, 0},
|
||||
{OPTION_ACCEL_ENABLE, "Accel", OPTV_BOOLEAN, {0}, 0},
|
||||
{OPTION_ACCEL_METHOD, "AccelMethod", OPTV_STRING, {0}, 0},
|
||||
{OPTION_BACKLIGHT, "Backlight", OPTV_STRING, {0}, 0},
|
||||
{OPTION_EDID, "CustomEDID", OPTV_STRING, {0}, 0},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
|
||||
enum intel_options {
|
||||
OPTION_ACCEL_DISABLE,
|
||||
OPTION_ACCEL_ENABLE,
|
||||
OPTION_ACCEL_METHOD,
|
||||
OPTION_BACKLIGHT,
|
||||
OPTION_EDID,
|
||||
|
||||
@@ -17985,7 +17985,7 @@ static bool sna_option_accel_none(struct sna *sna)
|
||||
if (wedged(sna))
|
||||
return true;
|
||||
|
||||
if (xf86ReturnOptValBool(sna->Options, OPTION_ACCEL_DISABLE, FALSE))
|
||||
if (xf86ReturnOptValBool(sna->Options, OPTION_ACCEL_ENABLE, TRUE))
|
||||
return true;
|
||||
|
||||
if (sna->kgem.gen >= 0120)
|
||||
|
||||
@@ -364,7 +364,7 @@ static Bool can_accelerate_blt(struct intel_screen_private *intel)
|
||||
if (INTEL_INFO(intel)->gen == -1)
|
||||
return FALSE;
|
||||
|
||||
if (xf86ReturnOptValBool(intel->Options, OPTION_ACCEL_DISABLE, FALSE) ||
|
||||
if (xf86ReturnOptValBool(intel->Options, OPTION_ACCEL_ENABLE, TRUE) ||
|
||||
!intel_option_cast_to_bool(intel->Options, OPTION_ACCEL_METHOD, TRUE)) {
|
||||
xf86DrvMsg(intel->scrn->scrnIndex, X_CONFIG,
|
||||
"Disabling hardware acceleration.\n");
|
||||
|
||||
Reference in New Issue
Block a user