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

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 emil.l.veli...@gmail.com 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

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