Commit Graph

164 Commits

Author SHA1 Message Date
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