diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-29 23:00:05 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-30 08:57:25 +0100 |
commit | 68d139388a2a037347fa5c838391e67e006793ee (patch) | |
tree | fcac6d4c98fd88b1c9bd24483972da6a95cbd739 /src/intel_options.c | |
parent | 92a43caab96e7f49c541fb999b75925914d9981a (diff) |
sna: Allow user specification of number of VirtualHeads
Previously, we instantiated a fake output in case we had a machine with
no output. (For certain server-class products.) The Bumblee project were
also doing something very similar in order to fake an extended desktop
on the Intel igfx and copy portions onto a discrete GPU. (The preferred
method for doing this upstream is through the use of PRIME). As the code
is very similar, we can support both use-cases simultaneously.
This adds the option:
Section "Device"
Driver "intel"
Option "VirtualHeads" "<count>"
EndSection
to allow the user to specify an additional set of fake outputs, which
can then be controlled using xrandr.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_options.c')
-rw-r--r-- | src/intel_options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel_options.c b/src/intel_options.c index b81bde6e..153cc629 100644 --- a/src/intel_options.c +++ b/src/intel_options.c @@ -23,6 +23,7 @@ const OptionInfoRec intel_options[] = { #endif #ifdef USE_SNA {OPTION_ZAPHOD, "ZaphodHeads", OPTV_STRING, {0}, 0}, + {OPTION_VIRTUAL, "VirtualHeads", OPTV_INTEGER, {0}, 0}, {OPTION_TEAR_FREE, "TearFree", OPTV_BOOLEAN, {0}, 0}, {OPTION_CRTC_PIXMAPS, "PerCrtcPixmaps", OPTV_BOOLEAN, {0}, 0}, #endif |