mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 14:10:11 +01:00
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>
This commit is contained in:
parent
c6013245ce
commit
7130cb163e
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ extern "C" {
|
|||
+ MAX3(sizeof(DRM_PRIMARY_MINOR_NAME), \
|
||||
sizeof(DRM_CONTROL_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 */
|
||||
|
||||
#define DRM_ERR_NO_DEVICE (-1001)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue