summaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)Author
2015-03-25Use AC_HEADER_MAJOR to find how to include major()Chris Wilson
We need to include <sys/mkdev.h> on Solaris. Reported-by: Richard Palo <richard@netbsd.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89763 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-25sna: Add include <alloca.h> for compiling on SolarisChris Wilson
Reported-by: Richard Palo <richard@netbsd.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89762 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-17sna: Use struct pixman_f_vector for compatibility with older pixmanChris Wilson
Or else face compile failures: blt.c: In function 'affine_blt': blt.c:1403:3: error: unknown type name 'pixman_f_vector_t' blt.c:1407:4: error: request for member 'v' in something not a structure or union blt.c:1408:4: error: request for member 'v' in something not a structure or union blt.c:1409:4: error: request for member 'v' in something not a structure or union blt.c:1411:3: warning: passing argument 2 of 'pixman_f_transform_point_3d' from incompatible pointer type [enabled by default] In file included from /usr/include/xorg/miscstruct.h:52:0, from /usr/include/xorg/regionstr.h:52, from /usr/include/xorg/region.h:50, from /usr/include/xorg/window.h:51, from /usr/include/xorg/input.h:55, from /usr/include/xorg/xf86str.h:38, from sna.h:43, from blt.c:32: /usr/include/pixman-1/pixman.h:247:15: note: expected 'struct pixman_f_vector *' but argument is of type 'int *' blt.c:1413:7: error: request for member 'v' in something not a structure or union blt.c:1415:7: error: request for member 'v' in something not a structure or union Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-04configure: Make sure that BUILD_TOOL_CURSOR is always definedChris Wilson
Building intel driver with --disable-tools fails with following configure: error: conditional "BUILD_TOOL_CURSOR" was never defined. Reported-by: Tomas Pruzina <pruzinat@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89425 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-04tools: Add simple tool to retrieve the current cursor from XChris Wilson
Slightly more funky would be to poke around in the CRTC, but that should require master. As it stands this should help verify that what X is supplying to the driver matches user expectations Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-03configure: Include the xorg-server version in the summaryChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-24sna/dri2: Flush triple buffer swap on [un]redirectionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-24sna: udev integration depends on fstat and sys/stat.hChris Wilson
src/sna/sna_driver.c: In function 'sna_handle_uevents': src/sna/sna_driver.c:759:2: error: implicit declaration of function 'fstat' [-Werror=implicit-function-declaration] Also take the opportunity to include udev support in the configure summary. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-11sna/present: Prevent DoS from exhausting the kernel vblank queueChris Wilson
The kernel caps the number of vblanks per client to 128. There are already reports from the wild that Present clients are running foul of that limit, so supplement it with a timer fallback. Testcase: present-test with future flips Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-10Enable support for render-nodes by default with DRI3Chris Wilson
DRI3 can use render nodes if provided by the kernel, so enable it. 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-28test/dri2: Use xcb for more accurate timing of SwapBuffersChris Wilson
To do SwapBuffers correctly requires a Swap/Get buffers combination, and this is easiest using xcb rather than xlib. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-01-26configure.ac: pwd doesn't take an argumentPatrick Welche
bash built-in doesn't give an error, but real pwd does, and the argument is unnecessary. Signed-off-by: Patrick Welche <prlw1@cam.ac.uk>
2015-01-26backlight.c: test for featuresPatrick Welche
Signed-off-by: Patrick Welche <prlw1@cam.ac.uk>
2015-01-06sna: Enable mmap(wc) support by defaultChris Wilson
Now included in upstream kernels as of commit 1816f92363036600f2387bb8273b1e5e1f5b304e Author: Akash Goel <akash.goel@intel.com> Date: Fri Jan 2 16:29:30 2015 +0530 drm/i915: Support creation of unbound wc user mappings for objects Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-12-212.99.917 snapshot2.99.917Chris Wilson
2014-11-19Disable DRI3 by defaultChris Wilson
The external libraries, both in git, and especially shipping already enabled in distributions, are buggy and lead to server crashes and lockups. Caveat emptor. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-11-07sna: wc-mmap: Fix warning in configureSedat Dilek
This fixes the following warning due to a typo: configure: WARNING: unrecognized options: --enable-wc-map Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
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-11-06sna: Experimental support for write-combining mmapsChris Wilson
If we have a linear buffer, we can request the kernel mmap it directly with write-combining without having to pin it into the GTT. This allows us to efficiently upload very large buffers, and can avoid the dreaded aperture thrashing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-15configure: Require the presence of xorg/glamor.h for --enable-glamorChris Wilson
Check that we have the required Xorg headers for glamor if the user requests --enable-glamor. There is a possiblity that the headers mismatch as they don't have internal versioning, but this should catch the majority of errors early on. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-082.99.916 snapshot2.99.916Chris Wilson
2014-09-082.99.915 snapshot2.99.915Chris Wilson
2014-08-31configure: check for cpuid.hJonathan Gray
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-24configure: Add guards for os.h redefinesChris Wilson
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-18test: Make SHM tests in lowlevel-blt-bench optionalChris Wilson
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-18test: Only compile lowlevel-blt-bench if we have shmChris Wilson
Since 37ac34c4e4500bfc272222754949edc1dbb8c7e2, 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-07test: Exercise different cursor sizesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-06sna: Enable kernel rotation support by defaultChris Wilson
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-05intel: Use NOACCEL to avoid a symbol clash on old XorgChris Wilson
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-07-27configure: Expose no acceleration by default (--with-default-accel=none)Chris Wilson
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-232.99.914 snapshot2.99.914Chris Wilson
2014-07-23Add automake magic required for libobj/Chris Wilson
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-232.99.913 snapshot2.99.913Chris Wilson
2014-07-18configure: Double check xinerama's headersChris Wilson
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-11configure: Provide a poor man's replacement for getline()Chris Wilson
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-06-24configure: Display our README before the summaryChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-20test: Increase number of tiled sourcesChris Wilson
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-13xvmc: Sanitize compile and library flagsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13configure: Fix DRI2 buildChris Wilson
One s/DRI2/have_dri2/ too far. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13configure: Allow manual disabling of each DRI levelChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-102.99.912 snapshot2.99.912Chris Wilson
2014-06-09configure: Allow disabling control over the backlightChris Wilson
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-07sna: Allow TearFree to be enabled by default via configureChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-03configure: XORG_DRIVER_CHECK_EXT does not create CFLAGS/LIBS variablesChris Wilson
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-03configure: Remove xf86driproto from REQUIRED_MODULESChris Wilson
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-03configure: Don't link the driver against libX11Adam Jackson
78dc0c04745ad4485b994f67833f4a155749f01d 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-02intel-virtual-output: Add DRI3 xfer pathChris Wilson
Just as proof-of-principle. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-02Add rudimentary tests for PresentChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-02Add rudimentary tests for DRI3Chris Wilson
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>