|
|
@ -76,7 +76,7 @@ static const struct format formats[] = {
|
|
|
|
{DRM_FORMAT_ABGR8888, false},
|
|
|
|
{DRM_FORMAT_ABGR8888, false},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static bool find_render_node(char *node, size_t maxlen) {
|
|
|
|
static bool find_render_node(char *node, size_t node_size) {
|
|
|
|
bool r = false;
|
|
|
|
bool r = false;
|
|
|
|
drmDevice *devices[64];
|
|
|
|
drmDevice *devices[64];
|
|
|
|
|
|
|
|
|
|
|
@ -87,8 +87,7 @@ static bool find_render_node(char *node, size_t maxlen) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
strncpy(node, dev->nodes[DRM_NODE_RENDER], maxlen - 1);
|
|
|
|
snprintf(node, node_size, "%s", dev->nodes[DRM_NODE_RENDER]);
|
|
|
|
node[maxlen - 1] = '\0';
|
|
|
|
|
|
|
|
r = true;
|
|
|
|
r = true;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|