xf86drm: update DRM_NODE_NAME_MAX supporting more nodes
Current DRM_NODE_NAME_MAX only can support up to 999 nodes, Update to support up to 2^MINORBITS nodes. Signed-off-by: James Zhu <James.Zhu@amd.com> Reviewed-by: Simon Ser <contact@emersion.fr>main
parent
c6013245ce
commit
7130cb163e
|
@ -98,7 +98,7 @@ extern "C" {
|
||||||
+ MAX3(sizeof(DRM_PRIMARY_MINOR_NAME), \
|
+ MAX3(sizeof(DRM_PRIMARY_MINOR_NAME), \
|
||||||
sizeof(DRM_CONTROL_MINOR_NAME), \
|
sizeof(DRM_CONTROL_MINOR_NAME), \
|
||||||
sizeof(DRM_RENDER_MINOR_NAME)) \
|
sizeof(DRM_RENDER_MINOR_NAME)) \
|
||||||
+ sizeof("144") /* highest possible node number */ \
|
+ sizeof("1048575") /* highest possible node number 2^MINORBITS - 1 */ \
|
||||||
+ 1) /* NULL-terminator */
|
+ 1) /* NULL-terminator */
|
||||||
|
|
||||||
#define DRM_ERR_NO_DEVICE (-1001)
|
#define DRM_ERR_NO_DEVICE (-1001)
|
||||||
|
|
Loading…
Reference in New Issue