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

2014-04-03 Thread Matt Turner
On Wed, Apr 2, 2014 at 11:26 PM, Jonathan Gray wrote: > On Wed, Apr 02, 2014 at 11:09:09PM -0700, Matt Turner wrote: >> On Wed, Apr 2, 2014 at 10:22 PM, Jonathan Gray wrote: >> > Don't hardcode /dev/dri/card0 but instead use the drm >> > macros which allows the correct /dev/drm0 device to be >> >

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

2014-04-02 Thread Jonathan Gray
On Wed, Apr 02, 2014 at 11:09:09PM -0700, Matt Turner wrote: > On Wed, Apr 2, 2014 at 10:22 PM, 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

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

2014-04-02 Thread Matt Turner
On Wed, Apr 2, 2014 at 10:22 PM, 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 > v3: check for snprintf truncation > > Signed-off-by: Jon

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

2014-04-02 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 v3: check for snprintf truncation Signed-off-by: Jonathan Gray --- src/egl/drivers/dri2/platform_drm.c | 7 ++- 1 f