diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-06 13:34:18 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-06 13:39:32 +0100 |
commit | 694ff54aca16ccf39e94d505942eb857b3101d7d (patch) | |
tree | 90c06734d9b082c81d818dcc8b266e62b6b3179b /src/intel_device.c | |
parent | 0ebcef4f2ebe82e9b90589aa4266a9228e2b5fdb (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.c | 10 |
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; |