summaryrefslogtreecommitdiff
path: root/src/intel_device.c
AgeCommit message (Collapse)Author
2013-09-18intel: Compile fixes for base install of SLED11.sp3Chris Wilson
Highlights of that distribution include xorg-xserver-1.6.5, kernel 3.0.76 and gcc-4.3. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-07Revert "sna: Add XMir support"Chris Wilson
This reverts commit 42d94356f65972eb7fb8991234a4e9388c4c2031. Ordered-by: The Management.
2013-09-04sna: Add XMir supportChris Wilson
With lots of updates by Christopher James Halse Rogers as he updated the XMir API - but now supposedly frozen! "<RAOF> ickle: I think the xmir api should be pretty much stable now, barring people coming up with more awesome ways of doing things." Signed-off-by: Christopher James Halse Rogers <raof@ubuntu.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-31sna: Open the device non-blockingChris Wilson
This is essential to prevent deadlocks when running with ZaphodHeads. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-23intel: Add experimental rendernode supportChris Wilson
Render nodes allow clients full access to off-screen rendering and GPU offload, without assuming any master responsiblities (for device and display management). As they have a more limited interface, they can be used in a more permissive manner. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-09intel: Disable incompatible features whilst hostedChris Wilson
Start adding the infrastructure to disable direct hardware access if X is being run under a system compositor (aka "hosted"). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-02intel: Move the validation of the KMS device into the open routineChris Wilson
Currently we leak the fd should we open the device node and decide that is not a GEM/KMS kernel driver. The simplest way to perform the cleanup upon failure is to move the checking for GEM/KMS into the device open routine. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-30intel: Fix failure code for reporting !drmCheckModesetingSupportedChris Wilson
The new function returns the fd, not a Bool, so the error code must now be -1. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-30intel: replace direct ioctl use with drm{Set, Drop}MasterJonathan Gray
Use drmSetMaster/drmDropMaster instead of calling the ioctls directly. Fixes compilation on OpenBSD where these ioctls aren't defined. Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
2013-06-30sna: Store the path used to open the device and pass to DRIChris Wilson
Avoid having to search the device tree once again in order to simply recover the path we used to open the device. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27intel: Use fcntl to try and set CLOEXEC if the open(O_CLOEXEC) failsChris Wilson
As suggested by Arkadiusz Miskiewicz. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27intel: #ifdef O_CLOEXEC for compilation on squeezeChris Wilson
If the system doesn't support O_CLOEXEC, then we simply can't use it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-25sna: Drop master when closing the screenChris Wilson
As we reacquire master when initialisation the next gen of the server, to keep the reference counting consistent we need to release our master reference on CloseScreen. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-25intel: Use the correct errno value for reporting the drmSetVersion failureChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-23sna: Only open the /dev/dri/cardX device onceChris Wilson
Merge the device open in the main driver with the probing so that we can open the path explicitly passed in by the PlatformProbe and keep that fd around for the main driver and so avoid a later search. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>