Commit Graph

429 Commits

Author SHA1 Message Date
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
Chris Wilson 7468a6b740 2.99.906 snapshot 2013-11-13 09:55:20 +00:00
Rémi Cardona 922a8bab89 configure: Use proper variables set by PKG_CHECK_MODULES
$DRI_CFLAGS does not actually exist. The PKG_CHECK_MODULES call creates
a $DRI1_CFLAGS variable instead. This doesn't break often because
"recent" versions of xorg-server.pc indirectly depend on xf86driproto.pc
thus bringing in the required CFLAGS through $XORG_CFLAGS.

Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=490342
Signed-off-by: Rémi Cardona <remi@gentoo.org>
2013-11-10 11:35:00 +00:00
Chris Wilson 585340f75c 2.99.905 snapshot 2013-10-23 09:50:24 +01:00
Chris Wilson e914dada55 configure: Allow manual specification of intel-gen4asm path
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-11 10:51:35 +01:00
Daniel Martin 700a845cc6 configure: Add xfixes to X11 pkg check
Add xfixes to the list of PKG_CHECK_MODULES for X11. '-lXfixes' was
hardcoded in test/Makefile.am before. This could lead to a broken build
in very rare cases where the build environment has all specified X
libraries but Xfixes.

Signed-off-by: Daniel Martin <consume.noise@gmail.com>
2013-10-10 14:36:37 +01:00
Chris Wilson b9ad5b625e 2.99.904 snapshot 2013-10-09 17:18:43 +01:00
Chris Wilson b8aed26619 configure: Disable building tools if prerequisite headers not found
After the pkg-config checks, we then probe the headers. If those probes
fail, we obviously wish to prevent building the tools as the build will
fail.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-04 08:37:48 +01:00
Chris Wilson db1edf0e10 configure: Error out if glamor request but UXA is disabled
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-02 16:18:43 +01:00
Chris Wilson 36d142153b 2.99.903 snapshot 2013-09-28 18:38:12 +01:00
Chris Wilson dcf9b5ae18 intel: Compile fixes for base install of SLED11.sp3
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-18 12:49:41 +01:00
Chris Wilson 76790db4e6 test: Exercise flips/blit swaps on each pipe
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-12 15:25:19 +01:00
Chris Wilson f25235a854 configure: Only assert DRI2 requirements not met if the DRI2 package is missing
The new error message was added in
commit ea30967245 [2.99.902]
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Sep 6 22:54:48 2013 +0000

    configure: Disable UXA build without DRI2

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-08 16:38:58 +01:00
Chris Wilson 58a7611ccf 2.99.902 snapshot 2013-09-07 08:48:34 +01:00
Chris Wilson ea30967245 configure: Disable UXA build without DRI2
DRI2 is interwoven into the UXA structs, so simply disable building UXA
if DRI2 is not available.

Reported-by: Ross Burton <ross@burtonini.com>
Bugzilla:  https://bugs.freedesktop.org/show_bug.cgi?id=69056
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-06 23:58:17 +01:00
Chris Wilson 94bc69d5b9 2.99.901 snapshot 2013-09-04 15:18:29 +01:00
Chris Wilson 4dfd7674d8 intel: Select SNA as the default acceleration method
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-04 15:18:29 +01:00