[Spice-devel] [PATCH xf86-video-qxl 1/3] Add support for a --numheads option to the Xspice script.

Christophe Fergeau cfergeau at redhat.com
Fri Nov 6 07:03:19 PST 2015


ACK.

On Mon, Oct 26, 2015 at 03:36:37PM -0500, Jeremy White wrote:
> Signed-off-by: Jeremy White <jwhite at codeweavers.com>
> ---
>  scripts/Xspice | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/Xspice b/scripts/Xspice
> index 52b1b16..a6913a8 100755
> --- a/scripts/Xspice
> +++ b/scripts/Xspice
> @@ -61,6 +61,7 @@ parser.add_argument('--config', default='spiceqxl.xorg.conf')
>  # specifically, don't use -p and -s.
>  parser.add_argument('--port', type=int, help='standard spice port')
>  parser.add_argument('--exit-on-disconnect', action='store_true', help='Exit the X server when any client disconnects')
> +parser.add_argument('--numheads', type=int, help='Number of virtual heads to create.')
>  parser.add_argument('--deferred-fps', type=int, help='If given, render to a buffer and send updates only this many times per second')
>  parser.add_argument('--tls-port', type=int, help='spice tls port', default=0)
>  add_boolean('--disable-ticketing', help="do not require a client password")
> @@ -104,7 +105,6 @@ parser.add_argument('--audio-fifo-dir', help="set fifo directory for playback au
>  #Option "EnableImageCache" "True"
>  #Option "EnableFallbackCache" "True"
>  #Option "EnableSurfaces" "True"
> -#Option "NumHeads" "4"
>  #parser.add_argument('--playback-compression', choices=['0', '1'], help='enabled by default')
>  #Option "SpiceDisableCopyPaste" "False"
>  
> @@ -267,6 +267,11 @@ for arg in var_args:
>              a = str(a)
>          os.environ['XSPICE_' + arg.upper()] = a
>  
> +# A few arguments don't follow the XSPICE_ convention - handle them manually
> +if args.numheads:
> +    os.environ['QXL_NUM_HEADS'] = str(args.numheads)
> +
> +
>  display=""
>  for arg in xorg_args:
>      if arg.startswith(":"):
> -- 
> 2.1.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20151106/6314461c/attachment.sig>


More information about the Spice-devel mailing list