diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-03-18 15:52:19 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-03-18 15:52:19 +0000 |
commit | 4a6e09c6cdb13773bca5f6831f9f5164008699c9 (patch) | |
tree | 4a7869b77753e1c95f727c8ff0e7e50a15b5f638 /src/intel_device.c | |
parent | dc66e663a06f2ce7685eba1fdf9fad01786bcb4f (diff) |
uxa: Add support for server managed fds (via intel_device)
Based on the patch by Hans de Goede, this removes the handling of
drmOpen() and DRM_MASTER from within uxa and instead uses the common
routines. This reduces the duplicate code from within uxa, and enables
new features such as server managed fds.
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_device.c')
-rw-r--r-- | src/intel_device.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/intel_device.c b/src/intel_device.c index c0e15822..e95936bd 100644 --- a/src/intel_device.c +++ b/src/intel_device.c @@ -441,20 +441,6 @@ int intel_put_master(ScrnInfoPtr scrn) return ret; } -void __intel_uxa_release_device(ScrnInfoPtr scrn) -{ - struct intel_device *dev = intel_device(scrn); - if (dev && dev->open_count == 0) { - intel_set_device(scrn, NULL); - - drmClose(dev->fd); - if (dev->render_node != dev->master_node) - free(dev->render_node); - free(dev->master_node); - free(dev); - } -} - void intel_put_device(ScrnInfoPtr scrn) { struct intel_device *dev = intel_device(scrn); |