Re: [Mesa-dev] [PATCH v2] egl/dri2: use drm macros to construct device name

2014-04-01 Thread Matt Turner
On Tue, Apr 1, 2014 at 10:26 AM, Emil Velikov wrote: > On 23/03/14 04:53, Jonathan Gray wrote: >> Don't hardcode /dev/dri/card0 but instead use the drm >> macros which allows the correct /dev/drm0 device to be >> opened on OpenBSD. >> >> v2: use snprintf and fallback to /dev/dri/card0 >> suggested

Re: [Mesa-dev] [PATCH v2] egl/dri2: use drm macros to construct device name

2014-04-01 Thread Emil Velikov
On 23/03/14 04:53, Jonathan Gray wrote: > Don't hardcode /dev/dri/card0 but instead use the drm > macros which allows the correct /dev/drm0 device to be > opened on OpenBSD. > > v2: use snprintf and fallback to /dev/dri/card0 > suggested by Emil Velikov. > > Signed-off-by: Jonathan Gray > --- >

[Mesa-dev] [PATCH v2] egl/dri2: use drm macros to construct device name

2014-03-22 Thread Jonathan Gray
Don't hardcode /dev/dri/card0 but instead use the drm macros which allows the correct /dev/drm0 device to be opened on OpenBSD. v2: use snprintf and fallback to /dev/dri/card0 suggested by Emil Velikov. Signed-off-by: Jonathan Gray --- src/egl/drivers/dri2/platform_drm.c | 6 +- 1 file chan