Commit Graph

84 Commits

Author SHA1 Message Date
jsg
d7186e55ad Remove the local workaround for alignment faults in the VBO code on
archs with strict 64 bit pointer alignment and use Brian Paul's fix
which has been committed upstream and should end up in future releases
of 10.4.x.
2015-01-31 05:41:14 +00:00
jsg
08bb3187f2 Merge Mesa 10.4.3
Tested by matthieu@ mpi@ and myself.  landry@ ran a ports bulk build.
kettenis@ tracked down the cause of an alignment fault on archs
that require strict eight byte pointer alignment.
2015-01-25 14:41:14 +00:00
jsg
ce58a52730 Import Mesa 10.4.3 2015-01-25 14:05:42 +00:00
jsg
4727f64aaf Match the behaviour of Mesa when built by autoconf and link
libEGL against libgbm and libglapi.

The libgbm requirement comes from the drm EGL backend that was
enabled with the 10.2.3 update.

ok matthieu@ kettenis@
2014-09-28 11:02:37 +00:00
jsg
29ddf62fe4 Merge Mesa 10.2.7 2014-09-07 15:20:06 +00:00
jsg
dd38df57c9 Import Mesa 10.2.7 2014-09-07 15:00:10 +00:00
landry
32a3bd0ed1 Add -lgbm to Libs as a temporary workaround, since EGL has unknown
symbols from libgbm, and that breaks www/webkit (and probably all the 23
ports linking against EGL, which now probably need WANTLIB fixes..)

with/ok matthieu@
2014-07-14 10:12:16 +00:00
jsg
4426d79b4b Merge Mesa 10.2.3
tested by matthieu@ kettenis@ mpi@ brett@ and myself across a
diverse range of hardware
2014-07-09 21:08:50 +00:00
jsg
7c297b484e Import Mesa 10.2.3 2014-07-09 20:33:36 +00:00
jsg
f166a50969 backport a Mesa patch for the recently updated ports llvm
commit 749cb8909714fed57b0213f4ad92def3bb24f153
Author: Vinson Lee <vlee@freedesktop.org>
Date:   Sun Nov 3 20:27:13 2013 -0800

    gallivm: Remove llvm::DisablePrettyStackTrace for LLVM >= 3.4.

    LLVM 3.4 r193971 removed llvm::DisablePrettyStackTrace and made the
    pretty stack trace opt-in rather than opt-out.

    The default value of DisablePrettyStackTrace has changed to true in LLVM
    3.4 and newer.

    Signed-off-by: Vinson Lee <vlee@freedesktop.org>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60929
    Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
    Reviewed-by: Brian Paul <brianp@vmware.com>
2014-04-20 10:53:26 +00:00
jsg
ee6e2c0845 Merge Mesa 9.2.5 2014-01-19 03:13:15 +00:00
jsg
47c63d2e5f Import Mesa 9.2.5 2014-01-19 03:03:22 +00:00
jsg
c6a24178b5 Merge Mesa 9.2.3
ok mpi@ kettenis@
2013-11-24 06:19:52 +00:00
jsg
309b4c3237 Import Mesa 9.2.3 2013-11-24 05:52:36 +00:00
jsg
12557abee9 Merge Mesa 9.2.2 2013-11-09 02:46:54 +00:00
jsg
fc1e3907a6 Import Mesa 9.2.2 2013-11-09 02:25:41 +00:00
jsg
74afb4747b Merge Mesa 9.2.1 2013-10-05 09:53:49 +00:00
jsg
42e72c47e5 Import Mesa 9.2.1 2013-10-05 09:19:47 +00:00
jsg
84f07c3246 Merge Mesa 9.2.0 2013-09-05 13:58:30 +00:00
jsg
cb5c86a80d Import Mesa 9.2.0 2013-09-05 13:08:03 +00:00
jsg
977241acdf don't depend on a list of archs to determine endianess,
unbreaks gallium build on sparc64.  found the hard way by florian@
ok kettenis@
2013-08-14 13:25:56 +00:00
jsg
54ad3dfaaa byteswap.h and bswap_32 aren't portable, replace them with calls to
gallium's util_bswap32 as suggested by kettenis.

already merged upstream
ok kettenis@
2013-06-17 23:21:23 +00:00
matthieu
ff44df0816 Fixes from upstreams for vulnerabilities reported by Ilja Van Sprundel
Integer overflow in XF86DRIOpenConnection() and
XF86DRIGetClientDriverName() [CVE-2013-1993]

Reminded by jsg@. Thanks
2013-06-10 19:21:20 +00:00
jsg
120dbb0038 correct RADEON_GEM_WAIT_IDLE use.
RADEON_GEM_WAIT_IDLE is declared DRM_IOW but mesa
uses it with drmCommandWriteRead instead of drmCommandWrite
which leads to the ioctl being unmatched and returning an
error on at least OpenBSD.

Problem originally found and fixed in libdrm by kettenis@
Dave Airlie pointed out that mesa has the same issue.

This change has already been merged in upstream mesa.

ok matthieu@ kettenis@
2013-06-09 13:57:18 +00:00
mpi
5675f61d57 Try to load the gallium3d "swrastg" driver if available before falling back
to the default mesa "swrast" one for software rendering.

ok matthieu@
2012-11-11 12:18:31 +00:00
matthieu
007f491121 Merge some definitions from dri 2.3 needed by xserver 1.13.
ok mpi@
2012-09-16 17:02:37 +00:00
mpi
983aa76032 Correctly define CPU_TO_LE32, required to build dri drivers on
big-endian archs.

ok kettenis@
2012-08-29 12:49:08 +00:00
mpi
d1207e5441 Re-add generated files and unbreak the build. I shouldn't have deleted
those during the update. Spotted by matthieu@
2012-08-17 16:26:59 +00:00
mpi
8578592ff1 Re-add generated files and unbreak the build. I shouldn't have deleted
those during the update. Spotted by matthieu@
2012-08-17 16:21:19 +00:00
mpi
942304ce5d Don't try to include an empty header 2012-08-17 14:18:49 +00:00
mpi
bb3c4ca180 Add a missing file from previous update 2012-08-17 14:17:18 +00:00
mpi
e67a5fe840 Upate to libGL 7.11.2
Tested by jsg@, matthieu@ and ajacoutot@, ok mattieu@
2012-08-17 13:57:59 +00:00
mpi
0e20e1901a Lets gallium a chance to build with our llvm port 2012-07-13 13:00:28 +00:00
mpi
a1f4d59825 Unbreak GLX1.3 ctors with software dri, this makes clutter/cogl works with
software accleration.

Upstream commit d44f821213d7ed67fed18d6ea6c34b61a665c89e by Adam Jackson

ok ajacoutot@, jasper@, robert@
2012-07-07 12:03:53 +00:00
mpi
73fa8c0344 Don't enable INTEL_swap_event unconditionally and wait forever for an
event that's not coming.

This unbreak clutter/cogl and probably other toolkits.

Upstream commit 25620eb1d277c6b80edb136eaeca12532fcfd3ce by Adam Jackson

ok ajacoutot@, jasper@, robert@
2012-07-07 12:00:49 +00:00
pascal
4b13d7a756 Fix a prototype in order to be able to use this header with
-Werror=strict-prototypes enabled.

ok matthieu@
2012-04-30 20:58:39 +00:00
espie
6662f16ddc avoid pesky gcc warnings due to missing eol
okay matthieu@
2011-12-05 20:35:23 +00:00
matthieu
0717133623 Merge Mesa 7.10.3 2011-10-23 13:37:25 +00:00
matthieu
ecd3bcaeda Import Mesa 7.10.3 2011-10-23 13:29:21 +00:00
robert
1b417fdf29 Fix an X server crash when starting GLX 1.3 apps;
https://bugs.freedesktop.org/show_bug.cgi?id=29091

ok matthieu@, oga@
2011-10-01 16:13:07 +00:00
matthieu
058b523fc8 Remove MesaDemos contents. Not used by Xenocara builds anymore. 2011-05-31 18:50:19 +00:00
oga
ed108ba924 Two patches cherry picked from mesa master just after 7.8 was branched
(but never made it into the 7.8 branch).

first:
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Thu Apr 22 12:47:41 2010 -0700

    DRI2: add config query extension

    Add a new DRI2 configuration query extension.  Allows for DRI2
    client code to query for common DRI2 configuration options.

second:
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Thu Apr 22 12:49:03 2010 -0700

    DRI2/GLX: check for vblank_mode in DRI2 GLX code

    Re-add support for the vblank_mode environment and configuration
    variable.  Useful for benchmarking and app control.

The final affect being that config and environment variables for
controlling swap mode work with dri2 now. which helps me a lot with
debugging.

ok matthieu@.
2010-07-24 19:03:21 +00:00
oga
ee7fac2a85 When a dri driver dlopen()s libGL to try and get the correct symbols (in
case libGL itself was dlopen()ed), it was using "libGL.so.1" (linux
convention, doesn't work on OpenBSD). Change it to "libGL.so" so it has
a hope in hell of working.

I finally wrote this patch when trying to port perl's OpenGL modules
ages ago and i finally decided that hacking each instance of dlopening
libGL to use RTLD_GLOBAL was dumb.

ok matthieu@
2010-07-24 18:16:40 +00:00
oga
5e874c650c This is a hack.
Since mesa changed some code, GL applications have been rather nasty to
the xserver, if they are unconstrained rendering wise they spam too many
requests at the xserver and make it slow as hell (even if the cpu is
fairly idle).

There is a throttling mechanism in the xserver (1.8 at least), but that
only really works if you are doing vblank syncing (which is turned off
in our intel driver right now for unrelated reasons), and even then an unsynced
client can cause the same problem.

While a proper fix is being worked on (I am in discussion with X
developers), comment out two conditionals in the intel mesa driver so
that even when using dri2 swapbuffers we wait on the swapbuffers before
last before rendeing more, this prevents almost DoSing the server.

Tested on ironlake, 855 and 965 by me (and my matthieu as well). ok
matthieu@
2010-07-24 18:13:33 +00:00
matthieu
cd750bf570 Update to Mesa 7.8.2. Tested by johan@. Thanks. 2010-06-22 20:04:22 +00:00
oga
9dc65d790c Bring back the local patch that has a habit of vanishing every time we
update mesa.

Specifically, we disallow in radeondrm for dri clients mapping
registers, so don't try and map them (and thus fail as we currently
were). for r300+ this was only used for falling back on old drm versions
(doesn't matter). For r100, the new BO abstraction used the SWI number
(in hardware scratch reg 3) for the buffer age, so use the newly added
getparam member to grab that info instead of trying to read the mapped
registers.

Update to the lastest kernel headers  before you even think about
building this or trying to use a snapshot on r100/r200.

So now radeon works with mesa again, hoorah!

Tested on rv250 by Josh Elsasser, and on R420 (and x800) by myself.
2010-05-26 22:55:53 +00:00
matthieu
da1bd1e8ce Remove a demo with huge data files. 2010-05-22 21:04:09 +00:00
matthieu
30f07f27f7 Remove a demo application with 40M of data files. 2010-05-22 20:50:09 +00:00
matthieu
e4fce73489 Update to Mesa 7.8.1. Tested on a bulk ports build by naddy@, ok oga@. 2010-05-22 20:05:42 +00:00
oga
383d27823d Stop printing to stderr whenever we fail to initialise GEM (every time
without diffs), libraries shouldn't do that, and it's frankly pretty
irritating.

ok matthieu ages ago. prompted by deraadt@
2009-11-21 13:05:59 +00:00