Commit Graph

18 Commits

Author SHA1 Message Date
oga
e812b16917 Fix out-of-bounds memory access in swizzle_copy(). My fix was different,
but this one (from mesa, prompted by my diff) should run a little faster.
Now mplayer -vo gl or gl2 works with dri enabled.

Detected by otto malloc.  Some debugging help from todd.

ok matthieu@, todd@.
2008-08-12 23:16:07 +00:00
matthieu
37355e1dc2 unbreak biuld. From Travers Buda. Thanks. 2008-08-02 23:04:55 +00:00
matthieu
1db3addd67 Prevent a crash if Delete is not defined for the given renderbuffer.
Patch from OUSADOU Azwaw. Thanks. ok oga@.
2008-08-02 16:01:32 +00:00
matthieu
80656e86d4 Update to Mesa 7.0.3. tested my oga@ and johan@ 2008-05-31 16:36:47 +00:00
oga
ce0d22a55d When mesa uses sse the current allocator was just using malloc, meaning
that the memory was not set to executable. This caused some horrible
segfaults that due to lack of hardware i've been unable to track down
for months.

Conveniently, there was already a memory allocator that uses mmap to
create executable memory, #ifdef linux. Make it usable for us too.

Problem solved!

Thanks for todd@ for helping me debug, and deraadt@ for noticing the
allocator.

Makes SiS work with dri, probaby solves a bunch of other people too.

ok matthieu@ (who has sent this upstream).
2008-04-19 13:11:24 +00:00
matthieu
a794a5f85b Fix from Eric Anholt in Mesa-current:
[965] Fix potential segfaults from bad realloc.

    C has no order of evaluation restrictions on function arguments, so we
    attempted to realloc from new-size to new-size.
2008-04-17 21:21:27 +00:00
matthieu
b139abf7aa Update to Mesa 7.0.2. Tested by naddy@ (full ports build), simon@
and oga@ (with dri enabled).
2008-02-12 21:09:25 +00:00
matthieu
267ae69ebc __builtin_expect is a gcc 3.x feature. define it out for gcc 2.95.
Patch suggested by miod@. Thanks.
2007-12-21 22:33:22 +00:00
matthieu
5257e11db0 merge Mesa 7.0.1 2007-11-24 17:41:36 +00:00
matthieu
0d540fed81 Mesa 7.0.1 2007-11-24 17:25:28 +00:00
aanriot
d1f4a95e58 assorted fixes for dealing with zero-size frame/renderbuffers.
from freedesktop (mesa-commits) with help from games/bzflag;
ok matthieu@
2007-04-19 08:12:55 +00:00
matthieu
ddf969dda9 fix build with gcc 2.95 2007-03-05 22:10:59 +00:00
matthieu
2f8f3de5e4 import MesaDemos version 6.5.2 2007-03-03 11:59:27 +00:00
matthieu
fe3d26ad6d import MesaLibs version 6.5.2 2007-03-03 11:56:24 +00:00
matthieu
46659db4fd Include "glheader.h" to get a definition of __builtin_expect for gcc 2.95. 2006-12-04 22:11:20 +00:00
matthieu
131c8c1e4e Make this build with gcc 2.95 2006-12-03 18:18:52 +00:00
matthieu
8c9bfd57b8 Import MesaDemos 6.5.1 2006-11-25 18:56:37 +00:00
matthieu
e9438a8659 Import MesaLibs 6.5.1. (in dist/ since its code is shared between lib
and xserver)...
2006-11-25 18:49:17 +00:00