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 10:22 PM, Jonathan Gray j...@jsg.id.au 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

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

2014-04-03 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 j...@jsg.id.au 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

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 j...@jsg.id.au 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 j...@jsg.id.au wrote: Don't hardcode /dev/dri/card0 but instead use the drm macros which allows the correct

[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 j...@jsg.id.au --- src/egl/drivers/dri2/platform_drm.c |