summaryrefslogtreecommitdiff
path: root/src/uxa/intel_driver.c
AgeCommit message (Collapse)Author
2016-07-20Update to ABI 22 and NotifyFdChris Wilson
ABI 22 brings in a new BlockHandler/WakeupHandler interface (SetNotifyFd) and throws out the current interface (albeit without delivering any improvements). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-07-14uxa: Don't bother with xf86GARTCloseScreenAdam Jackson
We only ever use xserver's AGP support from the i810 driver. Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-07-02DRI3 is not supported by mesa/i915Chris Wilson
Since mesa requires __DRI2_FLUSH version 4 for its DRI3 support and mesa/i915 only provides version 3, libGL fails to load (not even falling back to DRI2). Workaround this by not enabling DRI3. References: https://bugs.freedesktop.org/show_bug.cgi?id=96783 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-11-19Re-enable acceleration!Chris Wilson
Double negatives are most confusing before coffee. In removing the double negation from the xorg.conf, I inverted the option in the code but didn't invert the test. As a result, acceleration was now disabled unless you explicitly asked for NoAccel. Reported-by: Jan Steffens Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-11-19Rename Option "NoAccel" to "Accel"Chris Wilson
Totally cribbed from xf86-video-amdgpu/-radeon: commit 560b7fe6dc66405762020f00e9a05918a36f3a17 Author: Michel Dänzer <michel.daenzer@amd.com> Date: Wed Nov 11 17:31:34 2015 +0900 Rename Option "NoAccel" to "Accel" Renaming the option removes the need for a double negation when forcing acceleration on and is backwards compatible as the option parser automagically handles the 'No' prefix. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-24uxa: Fix compilation for boolChris Wilson
../../../src/uxa/intel_driver.c: At top level: ../../../src/uxa/intel_driver.c:769:1: error: unknown type name 'bool' Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-09uxa: Do not register hotplug without RandROlivier Fourdan
When using Xinerama, RandR is automatically disabled, and calling RR routines will trigger an assert() because the RR keys/resources are not set, leading to an Xserver abort. Hotplug makes little sense without RandR, so no need to install a udev monitor if RandR is not available, as done in sna. v3: Rebase onto backwards compatible rrPrivKey detection [ickle] Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-25uxa: udev integration depends on fstat and sys/stat.hChris Wilson
src/uxa/intel_driver.c: In function 'I830HandleUEvents': src/uxa/intel_driver.c:738:14: error: storage size of 's' isn't known src/uxa/intel_driver.c:746:2: error: implicit declaration of function 'fstat' [-Werror=implicit-function-declaration] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-04Allow runtime selection between DRI levelsChris Wilson
Rather than imposing a maximum DRI level at compile time by compiling out unwanted protocol handlers, default to limiting it at runtime so that we can switch between any level. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-01-31Unify Option "DRI" parsingChris Wilson
Allow Option "DRI" "[23]" to also work with UXA. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-12-09uxa/dri: Remove defunct intel->back_pixmapChris Wilson
This was only required for glamor support. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-11-06Remove defunct glamor supportChris Wilson
It never was a stable or complete replacement, and now it is incorporated in Xorg itself! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-10-08intel: Store pointer to struct intel_deviceChris Wilson
Beware the barbarians at the gate, who invade and steal your ScrnInfoPtr and its Entity from underneath you. In some configurations, we lose access to the struct intel_device stored on the Entity after initialisation, causing havoc. Workaround this by storing the intel_device that we open in our driverPrivate. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-12Use intel_uxa.h in all uxa-specific filesKeith Packard
Instead of always including intel_uxa.h from intel.h, and including uxa.h from some files directly, use intel_uxa.h directly from .c files that have UXA-specific code in them. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2014-09-12Move some UXA-specific code under #if USE_UXA.Keith Packard
This makes the UXA-specific elements of intel_screen_private and a bit of code in intel_driver covered under #if USE_UXA Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2014-09-12Move UXA hardware initialization into intel_uxa_initKeith Packard
Pull this uxa-specific step out of I830ScreenInit Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2014-09-12Add intel_flush to abstract flushing pending acceleration operationsKeith Packard
intel_flush flushes any pending acceleration operations to the hardware, just like intel_uxa_batch_submit does today except that it is not uxa-specific. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2014-09-12Rename uxa-specific functions and structsKeith Packard
This starts to separate uxa from the rest of the driver by renaming uxa-specific functions and structs to make it clear which portions of the driver are uxa-specific and which are common. Signed-off-by: Keith Packard <keithp@keithp.com> Acked-by: Eric Anholt <eric@anholt.net>
2014-09-07uxa: add MST support.Dave Airlie
This adds MST support to the UXA paths in the driver. Signed-off-by: Dave Airlie <airlied@redhat.com> [ickle: Restore current output naming scheme]
2014-07-23sna: Disable all outputs when initializing as a slaved output providerChris Wilson
When we are constructed as a slaved device, we need to disable all outputs or else they are not correctly hooked into the master device upon startup. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16uxa: Allocate frontbuffer to meet old fence constaintsChris Wilson
libdrm is a little lax and does not allocate sufficient space for us to safely use buffers on old gen. So compute the size we want for ourselves. Reported-by: Cem Aydin <cem.aydin@gmx.ch> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80088 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-02uxa: Add Present extension supportKeith Packard
Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net> Conflicts: configure.ac src/uxa/intel.h src/uxa/intel_driver.c
2014-06-02uxa: Add DRI3 and miSyncShm supportChris Wilson
Based on a patch by Keith Packard. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-05-26uxa: Silence the compiler over a couple of unused variablesChris Wilson
intel_driver.c: In function 'I830LeaveVT': intel_driver.c:1085:24: warning: unused variable 'intel' [-Wunused-variable] intel_screen_private *intel = intel_get_screen_private(scrn); ^ intel_driver.c: In function 'I830EnterVT': intel_driver.c:1102:24: warning: unused variable 'intel' [-Wunused-variable] intel_screen_private *intel = intel_get_screen_private(scrn); Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-18uxa: Add support for server managed fds (via intel_device)Chris Wilson
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>
2014-03-13uxa: Enable BLT acceleration on Broadwell.Kenneth Graunke
This supports solid, copy, put_image, and get_image acceleration via the BLT engine. RENDER acceleration (composite) and Xv would be piles of work, which is not worth doing since SNA exists, and Glamor is coming. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2013-11-25Correct type of uevent_handlerChris Wilson
xf86AddGeneralHandler returns an opaque pointer, not a function pointer. Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-11-25Remove uneeded headersZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-02Prepare for changes in the BLT unit on future generationsChris Wilson
Adapt the legacy BLT commands in preparation for future changes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-03intel: Remove dependence upon having PciInfoChris Wilson
After some probing mechanisms, we may end up with a valid device without knowing its PCI address a priori. Having a valid device, we can just query it for the correct device id, and can safely abort any path that requires PCI information that we don't have. (Those paths are not valid under such hosting anyway - if it may be required, we could reconstruct the address.) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
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-07-28uxa: Add the missing include to silence the compiler warningChris Wilson
Silence compiler warning for no prior declaration of intel_init_scrn(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-28uxa: Clear up the common intel directoryChris Wilson
Move all the UXA backend specifc files into their own subdirectory. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>