[Mesa-dev] [PATCH] egl/dri2: implement platform_null.

Rob Clark robdclark at gmail.com
Thu Jan 22 17:11:33 PST 2015


On Thu, Jan 22, 2015 at 4:36 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> +static const char* node_path_fmt_card = "/dev/dri/card%d";
> You can reuse the DRM_DIR_NAME + DRM_DEV_NAME macros (from xf86drm.h)
> for this.
>
>> +static const char* node_path_fmt_render = "/dev/dri/renderD%d";
> There is no macro for the renderD%d, although you can still use
> DRM_DIR_NAME for the path.

I suppose for consistency, it wouldn't be a horrible idea to add the
missing macro to libdrm

(although to avoid libdrm version bump dependency from mesa side, I'm
fine with open-coding it for now in mesa and clean up some time after
there has been a libdrm release)

BR,
-R


More information about the mesa-dev mailing list