aboutsummaryrefslogtreecommitdiffstats
path: root/src/drm-shim/drm_shim.h
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2020-02-10 16:15:58 +0200
committerMarge Bot <[email protected]>2020-04-03 21:14:18 +0000
commitc3e305616cbc53317bbace6f1f316c9167f14313 (patch)
tree6c520e5222faadf215719811235e2cfb56069636 /src/drm-shim/drm_shim.h
parentfa5a36dbd474fb3c755da51553c6ca18dab76a06 (diff)
drm-shim: return device platform as specified
v2: Embed the libdrm dependency inside the drm-shim dependency Signed-off-by: Lionel Landwerlin <[email protected]> Acked-by: Eric Anholt <[email protected]> (v1) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4429>
Diffstat (limited to 'src/drm-shim/drm_shim.h')
-rw-r--r--src/drm-shim/drm_shim.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drm-shim/drm_shim.h b/src/drm-shim/drm_shim.h
index 2cd053f6d65..2d262fa35d4 100644
--- a/src/drm-shim/drm_shim.h
+++ b/src/drm-shim/drm_shim.h
@@ -24,6 +24,8 @@
#include "util/macros.h"
#include "util/hash_table.h"
+#include <xf86drm.h>
+
#ifdef __linux__
#define DRM_MAJOR 226
#endif
@@ -44,6 +46,7 @@ struct shim_device {
/* Returned by drmGetVersion(). */
const char *driver_name;
int version_major, version_minor, version_patchlevel;
+ int bus_type;
};
extern struct shim_device shim_device;