[PATCH libdrm 1/3] xf86drm: adjust device node path for minor base

2016-12-13 Thread Jonathan Gray
On Mon, Dec 12, 2016 at 02:10:31PM +, Emil Velikov wrote: > On 10 December 2016 at 05:52, Jonathan Gray wrote: > > When constructing a path to a device node the minor number retrieved > > from fstat needs to have the offset of the node type subtracted from it. > > Control and render node types

[PATCH libdrm 1/3] xf86drm: adjust device node path for minor base

2016-12-12 Thread Emil Velikov
On 12 December 2016 at 15:07, Jonathan Gray wrote: > On Mon, Dec 12, 2016 at 02:10:31PM +, Emil Velikov wrote: >> On 10 December 2016 at 05:52, Jonathan Gray wrote: >> > When constructing a path to a device node the minor number retrieved >> > from fstat needs to have the offset of the node t

[PATCH libdrm 1/3] xf86drm: adjust device node path for minor base

2016-12-12 Thread Emil Velikov
On 10 December 2016 at 05:52, Jonathan Gray wrote: > When constructing a path to a device node the minor number retrieved > from fstat needs to have the offset of the node type subtracted from it. > Control and render node types have the same major as the primary node > but each has their own bloc

[PATCH libdrm 1/3] xf86drm: adjust device node path for minor base

2016-12-10 Thread Jonathan Gray
When constructing a path to a device node the minor number retrieved from fstat needs to have the offset of the node type subtracted from it. Control and render node types have the same major as the primary node but each has their own block of minor types at fixed offsets. Signed-off-by: Jonathan