FreeBSD Bugzilla – Attachment 203295 Details for
Bug 236933
graphics/libdrm: drmGetNodeTypeFromFd always fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
test case
test.c (text/plain), 426 bytes, created by
Jan Beich
on 2019-04-01 14:38:19 UTC
(
hide
)
Description:
test case
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2019-04-01 14:38:19 UTC
Size:
426 bytes
patch
obsolete
>#include <fcntl.h> >#include <stdio.h> >#include <xf86drm.h> > >int main() >{ > int fd = open("/dev/dri/renderD128", O_RDWR, 0); > int type = drmGetNodeTypeFromFd(fd); > switch (type) { > case DRM_NODE_PRIMARY: > printf("primary"); > break; > case DRM_NODE_CONTROL: > printf("control"); > break; > case DRM_NODE_RENDER: > printf("render"); > break; > default: > printf("unknown (%d)", type); > break; > }; > printf(" node\n"); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 236933
: 203295 |
203343
|
203347