Re: [PATCH xserver] modesetting: Allow a DRM fd to be passed on command line with -masterfd

2018-06-28 Thread Lyude Paul
On Thu, 2018-06-28 at 12:39 -0700, Keith Packard wrote: > Lyude Paul writes: > > > Looks good! One nitpick I'm not 100% sure about: > > > +#define CHECK_FOR_REQUIRED_ARGUMENT() \ > > > +if (((i + 1) >= argc) || (!argv[i + 1])) { > > > \ > > > +

Re: [PATCH xserver] modesetting: Allow a DRM fd to be passed on command line with -masterfd

2018-06-28 Thread Keith Packard
Lyude Paul writes: > Looks good! One nitpick I'm not 100% sure about: >> +#define CHECK_FOR_REQUIRED_ARGUMENT() \ >> +if (((i + 1) >= argc) || (!argv[i + 1])) { >> \ >> + ErrorF("Required argument to %s not specified\n", argv[i]); \ >> + UseMsg();

Re: [PATCH xserver] modesetting: Allow a DRM fd to be passed on command line with -masterfd

2018-06-27 Thread Lyude Paul
Looks good! One nitpick I'm not 100% sure about: On Thu, 2018-03-01 at 15:38 -0800, Keith Packard wrote: > This lets an application open a suitable DRM device and pass the file > descriptor to the mode setting driver through an X server command line > option, '-masterfd'. > > There's a companion

[PATCH xserver] modesetting: Allow a DRM fd to be passed on command line with -masterfd

2018-03-01 Thread Keith Packard
This lets an application open a suitable DRM device and pass the file descriptor to the mode setting driver through an X server command line option, '-masterfd'. There's a companion application, xlease, which creates a DRM master by leasing an output from another X server. That is available at