Commit Graph

371 Commits

Author SHA1 Message Date
Chris Wilson f57ce6ef9c 2.21.15 release 2013-08-21 12:20:29 +01:00
Sedat Dilek 6bd897157b Correct misspelled caching
Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
2013-08-14 19:10:11 +01:00
Julien Cristau b2df6cc8f0 configure: use CPPFLAGS for xaa.h check, not CFLAGS
CFLAGS aren't passed to the preprocessor, which then can't find the
header.

Signed-off-by: Julien Cristau <jcristau@debian.org>
2013-08-12 22:42:18 +01:00
Julien Cristau d661332de9 Check for struct sysinfo as well as <sys/sysinfo.h>
Non-linux glibc systems have the latter but not the former.

Signed-off-by: Julien Cristau <jcristau@debian.org>
2013-08-12 22:42:12 +01:00
Chris Wilson 4abc9c317b configure: Correct the spelling of XORG_TESTSET_CFLAGS
Reported-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-12 13:10:05 +01:00
Chris Wilson b3cb8b209d configure: Fix reversed check for XORG_TESTSET_CFLAG
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-12 13:05:18 +01:00
Chris Wilson 039a64e89e configure: Only use XORG_TESTSET_CFLAG if defined
Repairs the build for f16 which has an older version of xorg-macros.
Fortunately, as it doesn't define XORG_TESTSET_CFLAG it also doesn't use
it generate noisy output.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-09 09:14:42 +01:00
Chris Wilson cbf1f97d5d configure: Include the experimental features in the configuration summary
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-08 19:43:24 +01:00
Dave Airlie 6004870d53 configure.ac: fix dri enabled with kms only picked
Otherwise we'd fail saying DRI1 wasn't possible, when that
is exactly what we asked for.

[ickle: The breakage was introduced with

commit bd6ffd1ad2 [2.21.14]
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Jul 27 15:33:19 2013 +0100

    configure: Print a summary of compilation options

which modified the search to only take place if UMS was enabled, but
missed mollifying the resulting error.]

Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-08-06 09:31:21 +01:00
Chris Wilson 0cd154039a 2.21.14 release 2013-08-04 10:30:14 +01:00
Chris Wilson 493763301e sna: Allow CPU access to scanouts if WT cached
On Iris, we may store the framebuffer in the eLLC/LLC and mark it as
being Write-Through cached. This means that we can treat it as being
cached for read accesses (either by the GPU or CPU), but must be careful
to still not write directly to the scanout with the CPU (only the GPU
writes are cached and coherent with the display).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-30 23:02:50 +01:00
Chris Wilson a3eea6e61e Suppress misleading warnings for -Wmaybe-uninitialized
All the curent reports by gcc are false positives. Instead we have better
static analysis tools at our disposal and valgrind.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-30 13:26:14 +01:00
Chris Wilson cf7d36455f intel: Suppress some extremely noisy warnings
Warning about redundant declarations within the xorg headers hides
genuine warnings in our own code - disable them until the headers are
cleaned up.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-29 23:49:08 +01:00
Chris Wilson bd6ffd1ad2 configure: Print a summary of compilation options
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-28 14:51:56 +01:00
Chris Wilson 04d5c33b96 uxa: Colocate architecture source files with backend implementation sources
i.e. move the toplevel uxa/*.[ch] into src/uxa/*.[ch]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-28 14:49:07 +01:00
Chris Wilson 45d4e8dcf9 uxa: Clear up the common intel directory
Move all the UXA backend specifc files into their own subdirectory.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-28 14:49:07 +01:00
Chris Wilson bb8484da48 2.21.13 release 2013-07-28 14:08:24 +01:00
Chris Wilson a8c7834e1d configure: Supply a default value for dridriverdir
Rather than fail to load DRI2 if not found.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-22 22:03:17 +01:00
Chris Wilson 8d94f030c6 configure: Fix enabling of DRI2
After setting it to false, we then need to set DRI2 to true after we
detect the headers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-22 22:01:22 +01:00
Chris Wilson e8cd5b5ff6 configure: Use --enable-dri to control both DRI/DRI2 enabling
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-22 19:42:56 +01:00
Chris Wilson e83e7e60f4 2.21.12 release 2013-07-14 09:35:07 +01:00
Chris Wilson b202008f8f sna: Experiment with a new ioctl to create buffers from stolen memory
If there is stolen memory reserved by the BIOS, we want to utilize it in
preference to regular system memory. However, given the caveat that it
is not suitable for CPU access, rules out most use cases - but it is a
good match for framebuffers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-07 09:31:27 +01:00
Chris Wilson 7d9163983e 2.21.11 release 2013-06-30 18:24:44 +01:00
Chris Wilson 41715af4d0 configure: SNA supports the old Xorgs
So allow it to be compiled by default for older Xorgs as well.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27 16:36:52 +01:00
Chris Wilson 81b35092c3 2.21.10 release 2013-06-22 13:44:09 +01:00
Jonathan Gray 6132400365 configure: test for librt (clock_gettime)
clock_gettime() is in libc not librt on OpenBSD so check
to see if linking librt is required.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
2013-06-19 11:30:24 +01:00
Chris Wilson 2770655371 2.21.9 release 2013-06-06 12:23:06 +01:00
Chris Wilson 7e7d0ad15b 2.21.8 release 2013-05-27 13:41:13 +01:00
Chris Wilson e65ee10dfd 2.21.7 release 2013-05-21 11:01:50 +01:00
Chris Wilson 1bf0d869ae Prefer i830_dri.so for gen2 chipsets
Probe for i830_dri.so and, if it exists, use that driver in preference
to i915_dri.so for DRI (i.e. GL clients). This was suggested in the
context of distributions supplying i915g as the main DRI driver for
gen3, in which case we need to provide a separate DRI driver for gen2.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-04-17 15:28:13 +01:00
Chris Wilson ddd3cc4ed6 sna: Add VALGRIND_CFLAGS whilst compiling with --enable-valgrind
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-04-16 11:56:17 +01:00
Chris Wilson 678279eb37 2.21.6 release 2013-04-06 15:58:50 +01:00
Chris Wilson 5332d5a7e0 configure: Allow valgrind support to be manually enabled
Irrespective of the DDX debug settings, some people wish to run Xorg
under valgrind and so prefer to have the cleaner output by making the
DDX valgrind aware.

(Actually Maarten wants valgrind support enabled by default...)

Suggested-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-04-06 15:42:23 +01:00
Mark Kettenis 3dddb01005 sna: Use a more portable way to determine total RAM size
The sysinfo function is Linux-specific.  sysconf(_SC_PHYS_PAGES), while
not truly portable, is available on many more systems, including Linux,
Solaris, NetBSD, FreeBSD and OpenBSD.  So use that instead.  Verified
that this results in the same value as the sysinfo call on a handful of
Linux systems.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
2013-03-26 20:18:10 +00:00
Chris Wilson 4adebfed41 2.21.5 release 2013-03-21 08:54:15 +00:00
Chris Wilson 4fb7be0a0d 2.21.4 release 2013-03-11 13:20:50 +00:00
Chris Wilson d2442c74b8 2.21.3 release 2013-02-20 13:36:43 +00:00
Chris Wilson 5a5943e237 NEWS: Xserver 1.6 was not packaged in Xorg 7.7
I misinterpreted Sedat Dilek's advice on how to fix my confusing
changelog, so drop the Xorg 7.7 confusion and just refer to the version
of Xserver the driver is first compatible with.
2013-02-15 12:05:14 +00:00
Chris Wilson 301aebfa71 configure: Add -lX11 required to link the legacy libI810XvMC.so
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-10 18:04:51 +00:00
Chris Wilson 65c320e677 2.21.2 release 2013-02-10 16:10:08 +00:00
Chris Wilson 617fadf3ac 2.21.1 release 2013-02-10 14:20:59 +00:00
Chris Wilson 71fbad64c5 configure: Fix typo in checking for libdrm_intel
The package name is libdrm_intel not libdrm_intel-1, an obvious
cut'n'paste error from testing for pixman-1.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-10 10:54:17 +00:00
Chris Wilson 3cbdfb54d1 sna: Backport to squeeze - Xorg-1.6, pixman-0.16, libdrm-2.4.21
The principle change is to switch to the old Privates API and undo the
Region renames.

The downside is that this ignores the critical bugfixes made to the
xserver since xorg-1.6 - but I assume that whoever wants to run the
latest hardware on the old xservers is also backporting those stability
fixes...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-10 10:24:12 +00:00
Chris Wilson 5f72158919 configure: XvMC support is optional, so make failure to find xcb non-fatal 2013-02-06 15:10:23 +00:00
Paul Menzel b96ee47ad9 configure.ac: Split out XCB libraries from `XVMCLIB` into `XCB`
Building the package under Debian Sid/unstable, `dh_shlibdeps` informs
that `libI810XvMC.so.1.0.0` does not need to be linked against
`libX11-xcb.so.1`, `libxcb-dri2.so.0`, `libxcb-util.so.0` or
`libxcb.so.1` [1].

        $ debuild -b -us -uc
        […]
        make[1]: Entering directory `/src/xserver-xorg-video-intel'
        dh_shlibdeps -- --warnings=6
        dpkg-shlibdeps: Warnung: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 sollte nicht gegen libX11-xcb.so.1 gelinkt werden (es verwendet keines der Bibliotheks-Symbole)
        dpkg-shlibdeps: Warnung: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 sollte nicht gegen libxcb-dri2.so.0 gelinkt werden (es verwendet keines der Bibliotheks-Symbole)
        dpkg-shlibdeps: Warnung: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 sollte nicht gegen libxcb-util.so.0 gelinkt werden (es verwendet keines der Bibliotheks-Symbole)
        dpkg-shlibdeps: Warnung: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 sollte nicht gegen libxcb.so.1 gelinkt werden (es verwendet keines der Bibliotheks-Symbole)
        make[1]: Leaving directory `/src/xserver-xorg-video-intel'
        […]

Moving `x11-xcb`, `xcb-dri2` and `xcb-aux` from `XVMCLIBS` into `XCB`
and adding `XCB_LIBS` only to the `LIBADD` variables of `libIntelXvMC`
makes the warnings go away and the libraries are still built without any
issues.

        make[1]: Entering directory `/src/xserver-xorg-video-intel'
        dh_shlibdeps -- --warnings=6
        make[1]: Leaving directory `/src/xserver-xorg-video-intel'
           dh_installdeb -O--builddirectory=build/
           dh_xsf_substvars -O--builddirectory=build/
           dh_gencontrol -O--builddirectory=build/
        dpkg-gencontrol: Warnung: Feld Depends von Paket xserver-xorg-video-intel-dbg: unbekannte Substitutionsvariable ${shlibs:Depends}
           dh_md5sums -O--builddirectory=build/
           dh_builddeb -O--builddirectory=build/
        dpkg-deb: Paket »xserver-xorg-video-intel« wird in »../xserver-xorg-video-intel_2.19.0-6.1_i386.deb« gebaut.
        dpkg-deb: Paket »xserver-xorg-video-intel-dbg« wird in »../xserver-xorg-video-intel-dbg_2.19.0-6.1_i386.deb« gebaut.
         dpkg-genchanges -b >../xserver-xorg-video-intel_2.19.0-6.1_i386.changes
        dpkg-genchanges: rein binärer Upload - es ist kein Quellcode hinzugefügt
         dpkg-source --after-build xserver-xorg-video-intel
        dpkg-buildpackage: Binärpaket(e) hochzuladen (keine Quellen enthalten)
        Now running lintian...
        W: xserver-xorg-video-intel: hardening-no-relro usr/lib/libI810XvMC.so.1.0.0
        W: xserver-xorg-video-intel: hardening-no-fortify-functions usr/lib/libI810XvMC.so.1.0.0
        W: xserver-xorg-video-intel: hardening-no-relro usr/lib/libIntelXvMC.so.1.0.0
        W: xserver-xorg-video-intel: hardening-no-fortify-functions usr/lib/libIntelXvMC.so.1.0.0
        W: xserver-xorg-video-intel: hardening-no-relro usr/lib/xorg/modules/drivers/intel_drv.so
        W: xserver-xorg-video-intel: hardening-no-fortify-functions usr/lib/xorg/modules/drivers/intel_drv.so
        N: 1 tag overridden (1 warning)
        Finished running lintian.

The modules were originally added with the following commit present
since tag 2.10.0.

        commit 3e8f2eae3a
        Author: Eric Anholt <eric@anholt.net>
        Date:   Thu Oct 15 13:48:56 2009 -0700

            XVMC: Use XCB DRI2 instead of cargo-culting our own copy of Xlib stuff. (v2)

[1] https://buildd.debian.org/status/fetch.php?pkg=xserver-xorg-video-intel&arch=i386&ver=2%3A2.19.0-6&stamp=1347825458

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2013-02-06 10:19:44 +00:00
Paul Menzel 9640640ab0 configure.ac: Do not include `xext` and `xfixes` in `XVMCLIB`
Building the package under Debian Sid/unstable, `dh_shlibdeps` informs
that `libIntelXvMC.so.1.0.0` does not need to be linked against
`libXext.so.6` or `libXfixes.so.3` [1].

        $ debuild -b -us -uc
        […]
        make[1]: Entering directory `/build/buildd-xserver-xorg-video-intel_2.19.0-6-i386-9thLfo/xserver-xorg-video-intel-2.19.0'
        dh_shlibdeps -- --warnings=6
        dpkg-shlibdeps: warning: debian/xserver-xorg-video-intel/usr/lib/libIntelXvMC.so.1.0.0 should not be linked against libXext.so.6 (it uses none of the library's symbols)
        dpkg-shlibdeps: warning: debian/xserver-xorg-video-intel/usr/lib/libIntelXvMC.so.1.0.0 should not be linked against libXfixes.so.3 (it uses none of the library's symbols)
        dpkg-shlibdeps: warning: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 should not be linked against libXext.so.6 (it uses none of the library's symbols)
        dpkg-shlibdeps: warning: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 should not be linked against libXfixes.so.3 (it uses none of the library's symbols)
        dpkg-shlibdeps: warning: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 should not be linked against libX11-xcb.so.1 (it uses none of the library's symbols)
        dpkg-shlibdeps: warning: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 should not be linked against libxcb-dri2.so.0 (it uses none of the library's symbols)
        dpkg-shlibdeps: warning: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 should not be linked against libxcb-util.so.0 (it uses none of the library's symbols)
        dpkg-shlibdeps: warning: debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 should not be linked against libxcb.so.1 (it uses none of the library's symbols)
        dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/xserver-xorg-video-intel/usr/lib/libIntelXvMC.so.1.0.0 debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 were not linked against libXext.so.6 (they use none of the library's symbols)
        dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/xserver-xorg-video-intel/usr/lib/libIntelXvMC.so.1.0.0 debian/xserver-xorg-video-intel/usr/lib/libI810XvMC.so.1.0.0 were not linked against libXfixes.so.3 (they use none of the library's symbols)
        make[1]: Leaving directory `/build/buildd-xserver-xorg-video-intel_2.19.0-6-i386-9thLfo/xserver-xorg-video-intel-2.19.0'
           dh_installdeb -a -O--builddirectory=build/
        […]

Not populating `XVMCLIB` with `xext` and `xfixes` makes the warning go
away and the libraries are still built without any issues.

[1] https://buildd.debian.org/status/fetch.php?pkg=xserver-xorg-video-intel&arch=i386&ver=2%3A2.19.0-6&stamp=1347825458

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2013-02-03 09:26:08 +00:00
Chris Wilson d3ff1cb9d7 2.21.0 release 2013-02-01 13:46:33 +00:00
Chris Wilson 8178cff571 sna: Begin sketching out a threaded rasteriser for spans
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-27 13:06:46 +00:00
Chris Wilson 5a0bc67ba5 sna: New execbuffer flags for lut-handle and fast-relocs are upstream
Now the flags are upstream, we can rely on runtime tests as the
interface is now frozen.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-21 11:41:38 +00:00
Chris Wilson a88a9b9a59 2.20.19 release 2013-01-20 12:06:09 +00:00