diff options
Diffstat (limited to 'src/intel_device.c')
-rw-r--r-- | src/intel_device.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/intel_device.c b/src/intel_device.c index 22eedb69..8be38c11 100644 --- a/src/intel_device.c +++ b/src/intel_device.c @@ -528,6 +528,17 @@ int __intel_peek_fd(ScrnInfoPtr scrn) return dev->fd; } +int intel_has_render_node(ScrnInfoPtr scrn) +{ + struct intel_device *dev; + struct stat st; + + dev = intel_device(scrn); + assert(dev && dev->fd != -1); + + return is_render_node(dev->fd, &st); +} + int intel_get_device(ScrnInfoPtr scrn) { struct intel_device *dev; |