Commit Graph

445 Commits

Author SHA1 Message Date
Chris Wilson 692c14d405 2.99.916 snapshot 2014-09-08 08:53:32 +01:00
Chris Wilson 001c542618 2.99.915 snapshot 2014-09-08 07:54:25 +01:00
Jonathan Gray 2c564c04bc configure: check for cpuid.h
Instead of checking for a particular version of GCC check for
a cpuid.h with __cpuid_count.  This allows cpuid.h to be
provided for older/different compilers.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
[ickle: Delete the bare and redundant config.h]
2014-08-31 11:51:46 +01:00
Chris Wilson d209b03915 configure: Add guards for os.h redefines
os.h redefines a few common libc functions, so check if the host
provides them first and inform os.h if that is the case.

Suggested-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-24 07:05:35 +01:00
Chris Wilson 02f184e0ef test: Make SHM tests in lowlevel-blt-bench optional
A slightly more complex patch to disable the SHM based tests of
lowlevel-blt-bench when MIT-SHM support is not available at compile
time.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-18 07:43:21 +01:00
Chris Wilson 9058dac302 test: Only compile lowlevel-blt-bench if we have shm
Since 37ac34c4e4, lowlevel-blt-bench
requires SHM support, so only compile it if we detect such during
configure.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-18 07:29:05 +01:00
Chris Wilson 7763a3da89 test: Exercise different cursor sizes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-07 11:32:51 +01:00
Chris Wilson 105d478cdd sna: Enable kernel rotation support by default
The kernel API is now upstream and so we can rely on it not changing.
Time to use it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-06 09:10:30 +01:00
Chris Wilson f36b7a4aac intel: Use NOACCEL to avoid a symbol clash on old Xorg
Old Xorg xf86str.h defines NONE preventing us from using it within an
enum. Use NOACCEL instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-05 16:38:42 +01:00
Chris Wilson 997a5d2802 configure: Expose no acceleration by default (--with-default-accel=none)
Why? I am not sure, but it seems equally as valid as allowing the switch
to uxa/glamor as default. The runtime equivalent is Option "AccelMethod".

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-27 07:15:19 +01:00
Chris Wilson 8d95e90b7b 2.99.914 snapshot 2014-07-23 16:43:38 +01:00
Chris Wilson 4ed0937640 Add automake magic required for libobj/
So libobj/ wasn't included in the tarball, and nor was the compatability
functions being added to the driver when they were needed. The oddity is
that using the ./configure script (and thus make distcheck) succeeds. It
was only when 'autoreconf -fi' was run was the first error encoutered.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reported-by: Tobias Klausmann
2014-07-23 16:02:47 +01:00
Chris Wilson 1c5e20716f 2.99.913 snapshot 2014-07-23 14:45:19 +01:00
Chris Wilson 4ae346e764 configure: Double check xinerama's headers
Having the pkgconfig present doesn't always necessarily imply the
headers are installed correctly - just fail over gracefully for xinerama
and intel-virtual-output

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-18 07:38:59 +01:00
Chris Wilson 251bcc32ee configure: Provide a poor man's replacement for getline()
uClibc is one such library that doesn't implement getline()

Reported-by: Ben Widawsky <benjamin.widawsky@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-11 08:06:02 +01:00
Chris Wilson ca296c1831 configure: Display our README before the summary
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-24 16:37:52 +01:00
Chris Wilson 8d7e7010e3 test: Increase number of tiled sources
Significantly improve the stress impose upon the tiled BLT operations.
Also start dumping pngs of the failures.

References: https://bugs.freedesktop.org/show_bug.cgi?id=80033
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-20 15:08:56 +01:00
Chris Wilson bccfb768ee xvmc: Sanitize compile and library flags
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13 09:19:31 +01:00
Chris Wilson 5a0cb1049c configure: Fix DRI2 build
One s/DRI2/have_dri2/ too far.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13 09:19:31 +01:00
Chris Wilson 7bc669dd4b configure: Allow manual disabling of each DRI level
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13 07:48:15 +01:00
Chris Wilson cb7b27a705 2.99.912 snapshot 2014-06-10 08:54:18 +01:00
Chris Wilson c1154ae107 configure: Allow disabling control over the backlight
Some OS prefer to control the backlight themselves through another
daemon and so do not want X interfering.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-09 21:47:24 +01:00
Chris Wilson 717e00facd sna: Allow TearFree to be enabled by default via configure
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-07 09:12:52 +01:00
Chris Wilson 0814889619 configure: XORG_DRIVER_CHECK_EXT does not create CFLAGS/LIBS variables
XORG_DRIVER_CHECK_EXT only adds the package name to the list of
REQUIRED_MODULES (which is later passed to pkg-config). For our optional
dependencies, we must do a later call to pkg-config to verify the
package is available and then remember to include the includes with the
CFLAGS.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-03 15:52:02 +01:00
Chris Wilson 0c81041e9b configure: Remove xf86driproto from REQUIRED_MODULES
We only depend upon the original DRI1 infrastructure when building i810
with DRI support. So unless that is true, do not throw an error if the
legacy protocol is absent.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-03 15:52:02 +01:00
Adam Jackson 689ee76a14 configure: Don't link the driver against libX11
78dc0c0474 added REQUIRED_MODULES to the
driver link line for... some reason.  That pulled in the libs from the
XF86DRI check, which near as I can tell has always been wrong, all of
the other extension checks just look for the protocol module and
xextproto doesn't define dri1 protocol in any case.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-06-03 15:52:02 +01:00
Chris Wilson 67b37332bd intel-virtual-output: Add DRI3 xfer path
Just as proof-of-principle.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-02 08:32:11 +01:00
Chris Wilson 9cf6cd9726 Add rudimentary tests for Present
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-02 08:32:11 +01:00
Chris Wilson 6ab6734369 Add rudimentary tests for DRI3
This is a simple little test to create a pixmap from a local bo, copy it
to a normal pixmap, then read it back by importing it into anther local
bo. It tests the fundamental mechanisms of opening a DRI3 render device,
importing into pixmaps, exporting into /buffers and a read-barrier.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-02 08:32:11 +01:00
Chris Wilson d27c948a43 intel: Add common routines and configure probing for DRI3
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-02 08:32:11 +01:00
Chris Wilson df297e9faf sna: Userptr lands upstream, enable.
No longer an optional feature of an experimental kernel!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-05-16 18:22:13 +01:00
Chris Wilson 0625185f47 intel-virtual-output: Make it possible to disable building via configure
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-05-14 17:29:21 +01:00
Chris Wilson d364a881ef configure: Report which version (lib or module) of glamor is used
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-10 09:14:59 +01:00
Eric Anholt a6919aa980 Update for glamor in the 1.16 server.
We should link against the server's copy, insted of using the external
library.
2014-04-10 09:07:38 +01:00
Chris Wilson 582adf067c 2.99.911 snapshot 2014-03-19 14:58:00 +00:00
Chris Wilson 57e63221ec intel-virtual-output: Minor DBG fixes
Improve the summary after failing to detect MIT-SHM, and fix a DBG

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-14 19:49:59 +00:00
Kenneth Graunke cbcc1b6190 uxa: Enable BLT acceleration on Broadwell.
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>
2014-03-13 15:04:59 +00:00
Jan Alexander Steffens (heftig) b71f3d8bd4 Backlight helper build fixes
Don't hardcode $(prefix)/libexec

Fix install hook when DESTDIR is set

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75028
2014-02-15 17:39:01 +00:00
Chris Wilson 3d629c91cf intel: Add a helper for setting backlight without root rights
Once the xserver stops running as root on kms capabable systems, we will need
some other way to access the backlight.

The approach taken in this patch moves most of the heavy lifting to a
helper that runs with root privileges and pipes our requested brightness
into the sysfs backlight interface. Where required, we use pkexec to
launch the helper with the elevated privilege.

v2: Amalgamate much more of the duplicate code.
    Keep the daemon and pipe alive for the lifetime of the backlight interface.
    Provide an alternative for systems without PolicyKit.

Signed-off-by: Hans de Goede <hdegoede@redhat.com> [v1]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-15 15:33:47 +00:00
Chris Wilson 607737cc47 sna: Support native primary plane rotations
Use the display hardware for simple rotations, when exported through the
rotation property on the CRTC.

As the kernel support is not yet merged upstream, the feature is hidden
behind --enable-rotation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-12 14:26:21 +00:00
Chris Wilson ec39adc93a Record Video ABI version that we configure against
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-11 23:08:35 +00:00
Chris Wilson 2fb2cd092d 2.99.910 snapshot 2014-02-10 09:38:16 +00:00
Chris Wilson 2c4b2ed558 2.99.909 snapshot 2014-02-01 18:57:29 +00:00
Chris Wilson 3e784832a5 glamor: Enable Xv support
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-02-01 16:59:13 +00:00
Chris Wilson 3f2e199b6b 2.99.908 snapshot 2014-02-01 09:07:13 +00:00
Chris Wilson 9f3fc9ec49 Allow selection of glamor as the default acceleration method
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74162
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-01-28 21:56:23 +00:00
Chris Wilson c4b88d6026 2.99.907 snapshot 2013-12-30 10:35:18 +00:00
Chris Wilson 989198f3dd intel-virtual-output: Disable build if timerfd is not present
Otherwise the build breaks on *BSD.

Reported-by: Yuta SATOH <nigoro.gentoo@0x100.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72707
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-12-15 09:45:24 +00:00
Chris Wilson ba9a173d81 configure: Correct closing ']'
Too many closed, too few opened.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-12-05 11:06:59 +00:00
Zdenek Kabelac 41be7e9d49 config apostrophe
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-25 09:32:31 +00:00