On Thu, Jan 22, 2015 at 4:36 PM, Emil Velikov <emil.l.veli...@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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev