summaryrefslogtreecommitdiff
path: root/src/uxa
AgeCommit message (Collapse)Author
2014-02-06uxa: Do not expose TextureVideo Xv adapters when acceleration is disabledChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-01glamor: Enable Xv supportChris Wilson
In addition to the UXA texture paths (which in theory support VSync) and direct overlay support, create a textured video paths that utilize the glamor acceleration code. Requested-by: Fabio Pedretti <fabio.ped@libero.it> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74311 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-01-28Allow selection of glamor as the default acceleration methodChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74162 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-01-23glamor: Don't require the glamoregl module to be pre-loaded with xserver >= 1.15Chris Wilson
Inspired by (ok, copied from): xf86-video-ati commit f2a0a5cf6c5a21e2a02280e110a4eb8e6609dace Author: Michel Dänzer <michel.daenzer@amd.com> Date: Wed Jan 22 11:04:42 2014 +0900 Don't require the glamoregl module to be pre-loaded with xserver >= 1.15 The issues with loading it on demand have been fixed in xserver 1.15. Inspired by Jérôme Glisse on IRC. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-01-17Provide DRI2DriverVDPAU for future compatibilityRinat
Since 2010, DRI2 supports multiple driver names. That was added to ease selection of appropriate driver by libvdpau. As for today, intel driver support only DRI2DriverDRI (== 0), but not DRI2DriverVDPAU (== 1). Although there is no any hardware-specific VDPAU driver for intel video adapters at the moment, it would be easier to use generic drivers like libvdpau-va-gl by creating symlink named libvdpau_i965.so.1. That way appropriate driver will be selected in run time automatically: libvdpau_i965.so.1 on i965 equipped machines, and libvdpau_nvidia.so.1 on nvidia equipped ones. [ickle: Whilst I think this is a workaround for a brainfart in libvdpau that it defaults to libvdpau_nvidia.so rather than first to libdvpau_${DRI2DriverDRI} and then to a hardcoded libvdpau_backend.so, I have no better solution, and this does seem in accordance with the spec.] Signed-off-by: Rinat <ibragimovrinat@mail.ru> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73507
2014-01-06uxa: Always treat DPMSModeSuspend/Standby similar to DPMSModeOffChris Wilson
As we assume that Suspend, Standby alias to Off and disable the crtc when switching to any mode other than On, we need to also perform the backlight updates for Suspend,Standby prior to passing the DPMS value onto the kernel. Suggested-by: Alexander Monakov <amonakov@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-01-06uxa: Disable updating properties upon reading their valuesChris Wilson
Backport commit e76b08cad2770015346fd4cd757de3bb3b6ff37c Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Oct 15 12:46:09 2013 +0100 sna: Disable updating properties upon reading their values in order to prevent random screen blanking upon return from DPMS. Reported-by: Alexander Monakov <amonakov@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73181 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-01-06uxa/dri: Pixmap are offscreen and not attached to any displayChris Wilson
As the code current assumes that pixmaps are located at screen origin (0,0), it assumes that they are all on the first CRTC. However, since they are offscreen, this leads to such complications as attempting to emit vsync swapbuffers, and even worse attempting to swap a GLXPixmap onto the scanout following a DRI2SwapBuffers. Reported-by: Alexander Monakov <amonakov@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73282 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-11-25uxa: fix order of inline BoolZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-25uxa,legacy: use unsigned for comparition of unsignedZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-25uxa: Avoid relying on an assert and cleanup iteratorZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-25uxa: rename some local variable to not shadow global onesZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-25uxa: Ensure mask_picture is definedZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
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-25Makefile convert @var@ to $(var)Zdenek Kabelac
Avoid using @var@ since this could not be easily overwritten through 'make var=xxx' option which is normally available. For Makefile.am users should avoid using @var@. Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-22uxa,sna: Prevent bo exchange when pinned for non-DRI2 clientsChris Wilson
With the advent of DRI3 (and previously with Prime and Glamor) we have external clients who rely on the pixmap<->bo mapping being invariant. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
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-13uxa: Check for allocation failure in i915 videoChris Wilson
For a large screen, we have to create a temporary surface for rendering the textured video. If this pixmap creation fails we may be left with a system memory only pixmap leading to a segfault. Reported-by: Bas Wijnen <wijnen@debian.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-13uxa: Abort CreateScreenResources after allocation failureChris Wilson
One of UXA's invarients is that the ScreenPixmap is complete (i.e. has an intel_pixmap private with a bo attached). If we fail to create that private during CreateScreenResources we will die very soon afterwards, so just report the failure and shutdown gracefully. 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-20uxa: Do not change DPMS mode on unconnected outputsChris Wilson
The operation is in theory redundant, and in the case of Haswell where we have multiple outputs aliasing to the same encoder, actually harmful. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68030 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Tested-by: Stefan Dirsch <sndirsch@suse.de>
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-08-16uxa: Restore the lost copyright block after splitting i965_reg.h from i915_reg.hChris Wilson
Reported-by: "Lim, Siew Hoon" <siew.hoon.lim@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-08Micro-optimise box intersectionsRaul Fernandes
We can shave a few instructions off the routine by incrementally performing the "is-empty" check as soon as we compute the intersection in each dimension.
2013-07-31uxa/display: Keep the EDID blob around for the lifetime of an outputDamien Lespiau
xf86InterpretEDID() doesn't copy the EDID raw data in xf86MonPtr but just stores the given pointer. The DDX driver needs to make sure that data stays valid. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-07-29Add support for the dell backlight interfaceEgbert Eich
Signed-off-by: Egbert Eich <eich@freedesktop.org> [ickle: Add the failsafe to sna as well.]
2013-07-29uxa: Fix incorrect include pathChris Wilson
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-28configure: Print a summary of compilation optionsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-28intel: Remove some unused macrosChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-28intel: Move some backend specific macros out of the common headerChris Wilson
All the IS_GEN/IS_DEVICE are only used by the UXA backend, so move them to its headers. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-28uxa: Colocate architecture source files with backend implementation sourcesChris Wilson
i.e. move the toplevel uxa/*.[ch] into src/uxa/*.[ch] 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>