mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2024-07-07 04:02:57 -05:00
check if DRM_RENDER_MINOR_NAME is not defined
This commit is contained in:
parent
8afe7956cb
commit
12e8256505
|
@ -23,6 +23,12 @@ extern int errno;
|
|||
|
||||
// Prefix for device files eg. /dev/dri/renderD
|
||||
#define _AMDGPU_NAME "amdgpu"
|
||||
|
||||
// For some reason some distros (Ubuntu only?) don't define this in xf86drm.h
|
||||
#ifndef DRM_RENDER_MINOR_NAME
|
||||
#define DRM_RENDER_MINOR_NAME "renderD"
|
||||
#endif
|
||||
|
||||
#define DEVICE_FILE_PREFIX DRM_DIR_NAME "/" DRM_RENDER_MINOR_NAME
|
||||
#define RENDERD_OFFSET 128
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user