[PATCH 1/2] xserver: add xorg.conf support for gpu devices. (v2)
Keith Packard
keithp at keithp.com
Mon Apr 13 07:07:36 PDT 2015
Dave Airlie <airlied at gmail.com> writes:
> +#define CONF_MAXGPUDEVICES 4
> typedef struct {
> GenericListRec list;
> const char *scrn_identifier;
> @@ -276,6 +277,10 @@ typedef struct {
> char *scrn_comment;
> int scrn_virtualX, scrn_virtualY;
> char *match_seat;
> +
> + int num_gpu_devices;
> + const char *scrn_gpu_device_str[CONF_MAXGPUDEVICES];
> + XF86ConfDevicePtr scrn_gpu_devices[CONF_MAXGPUDEVICES];
It seems like just using realloc would actually make this easier as you
wouldn't need to deal with checking for this limit?
Hard limits are annoying anyways.
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20150413/a67837c0/attachment.sig>
More information about the xorg-devel
mailing list