MangoHud/src/auth.h
jackun c093f9823e
Use libdrm_amdgpu for amdgpu sensor info, if available
Using plain `open` as `drmOpen` needs bus id check which needs interface 1.4 ioctl which gives EPERM cause only DRM_MASTER can call it :(

https://github.com/clbr/radeontop/issues/48#issuecomment-493792404
2021-07-13 19:54:24 +03:00

6 lines
115 B
C

#pragma once
#include <libdrm/drm.h>
bool authenticate_drm_xcb(drm_magic_t magic);
bool authenticate_drm(int fd);