summaryrefslogtreecommitdiff
path: root/src/intel_device.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-06 13:34:18 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-06 13:39:32 +0100
commit694ff54aca16ccf39e94d505942eb857b3101d7d (patch)
tree90c06734d9b082c81d818dcc8b266e62b6b3179b /src/intel_device.c
parent0ebcef4f2ebe82e9b90589aa4266a9228e2b5fdb (diff)
sna: Report KMS driver version
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_device.c')
-rw-r--r--src/intel_device.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/intel_device.c b/src/intel_device.c
index c1c6d846..610b2235 100644
--- a/src/intel_device.c
+++ b/src/intel_device.c
@@ -376,6 +376,16 @@ err_path:
return -1;
}
+int __intel_peek_fd(ScrnInfoPtr scrn)
+{
+ struct intel_device *dev;
+
+ dev = intel_device(scrn);
+ assert(dev && dev->fd != -1);
+
+ return dev->fd;
+}
+
int intel_get_device(ScrnInfoPtr scrn)
{
struct intel_device *dev;