Commit Graph

54 Commits

Author SHA1 Message Date
jsg
2f795be262 use the drm headers from libdrm not the kernel 2015-08-22 00:50:54 +00:00
matthieu
650f911f00 Enable the build of libOSMesa. Ports will need it soon.
tested by juanfra@ ok jsg@
2015-08-19 23:00:12 +00:00
mpi
1bea96e4e1 Build r300g and r600g on macppc and sparc64.
ok jsg@
2015-07-29 05:49:16 +00:00
jsg
f62222a305 Backport support for GLX_MESA_query_renderer for non Intel drivers.
This is desirable as the chromium port now uses this extension to
obtain pci vendor/device ids for use in feature/extension blacklists.

Prompted by a mail from byrnet@, tested on r600g by krw@

The newly added os_get_total_physical_memory() was passing the length of
a pointer rather than the type which made the sysctl call fail on
non 64 bit archs.  And it was passing the wrong pointer for the result.
Fixes for these problems have been submitted back upstream.
2015-02-22 09:30:33 +00:00
jsg
a3c5584b37 switch back to Mesa 10.2
With 10.4.3 gpu compositing on chromium would result in a black window
on older Intel parts (ie x60s with 945gm) and at least some discrete
Radeon parts.  These problems do not seem to occur on recent Intel
parts, though those have coherent memory and hardware contexts.

It isn't clear what changes in Mesa are involved in the problem
though it also occurs with the 10.3 branch.
2015-02-20 23:31:04 +00:00
jsg
5f55a0a16b Mesa 10.4.3 2015-01-25 15:09:12 +00:00
jsg
92dd606da1 use CPPFLAGS instead of CFLAGS for additional defines/includes 2014-07-17 13:53:23 +00:00
jsg
128505aa0d gallium/targets/{r300,r600,radeonsi}/dri/drm_target.c is now a symlink to
gallium/targets/{r300,r600,radeonsi}/common/drm_target.c in the Mesa source
but cvs import ignores symlinks.

Change the directory we search for drm_target.c in to deal with this.
2014-07-10 08:44:00 +00:00
jsg
ea95abebcf Mesa 10.2.3 2014-07-09 21:32:40 +00:00
miod
f4d0252ced m68k needs libGL compiled with -fPIC 2014-01-11 12:39:14 +00:00
jsg
0a47c2f9b5 the i810 driver has been removed from mesa 2013-09-06 07:14:33 +00:00
jsg
3d42c41fe1 Remove now unused makefiles for the non gallium r300/r600 drivers.
The code these files refer to has been removed.
2013-09-06 07:01:09 +00:00
jsg
18a75284bd build infrastructure changes for Mesa 9.2.0
ok matthieu@ mpi@
2013-09-05 15:11:54 +00:00
miod
9eba551554 Remove COMPILER_VERSION tests used to special-case gcc 2, since it is no
longer used.
2013-08-22 18:48:45 +00:00
jsg
b9cb6db770 build mesa radeon drivers on sparc64 and switch to gallium drivers
for r300 and r600
2013-08-12 04:16:52 +00:00
jsg
7c02ec8a3f Define HAVE_LIBDRM_RADEON when compiling radeon dri drivers,
required for newer radeondrm.  Expanded version of a diff from kettenis@
ok kettenis@ mpi@
2013-06-27 14:53:50 +00:00
jsg
65d2acd0c3 add the build infrastructure for the gallium r600 driver
ok mpi@
2013-06-17 23:30:25 +00:00
jsg
fd2bf1e300 add the build infrastructure for the gallium r300 driver
based on an earlier diff from mpi@
ok mpi@
2013-06-13 10:39:28 +00:00
mpi
290e67360e Add a new option to the xenocara infrastructure be able to automatically
build the Gallium3D software rasterizer as part of the libGL.

Note that it can also makes use of LLVM to build the llvmpipe if the
corresponding port is installed. Please refer to the README for a more
complete documentation.

Prodded by ajacoutot@, ok matthieu@
2013-04-14 10:23:04 +00:00
matthieu
a9c3b44e12 Enable the radeon r100 dri module on macppc. ok mpi@ 2012-12-07 17:13:41 +00:00
mpi
6fba99f3a9 Correctly define HAVE_POSIX_MEMALIGN, missed in previous. Breakage reported
by ajacoutot@
2012-12-04 14:06:32 +00:00
mpi
26df0b43a8 Include the software winsys and state tracker sources in the swrastg
driver rather than in the libmesagallium build. This non functional
change allows to use the libmesagallium in any gallium target (r300g,
nouveau...)
2012-11-28 13:53:16 +00:00
mpi
0661f3e5da Link libGL with -lpthread to allow the llvm-pipe driver to be loaded.
ok matthieu@, ajacoutot@
2012-11-11 12:09:09 +00:00
mpi
8aa8224279 Build r200 and r300 dri drivers on macppc too.
ok matthieu@
2012-08-29 12:52:39 +00:00
mpi
3f7a93e085 Merge libmesa and libmesagallium build makefiles because they share
a lot of common sources.

ok matthieu@
2012-08-26 18:46:42 +00:00
mpi
36b2b317a6 Use -lpthread only, pointed out by ajacoutot@ 2012-08-21 10:34:07 +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
eba99e2372 Let swrastg a chance to compile 2012-07-13 12:55:32 +00:00
mpi
7d428aff6d Import swrastg the Gallium3D software rasterizer. It uses the softpipe
driver by default but can also use the llvmpipe driver that use LLVM 
for code generation if available.

Not yet linked to the build as it depends on pthreads and we don't know
yet how to handle the switch from the default 'swrast' driver, but having
it in tree will help testing and debugging the remaining issues.

Tested by ajacoutot@ and matthieu@, looks ok to matthieu@
2012-07-13 12:54:20 +00:00
matthieu
d03f2ad290 radeon_dri.so needs the radeon_drm library, like the other
Mesa radeon drivers. From oga@.
2012-01-27 07:07:43 +00:00
oga
75d011a3a1 Fix r200 libGL by linking with libdrm_radeon.
tested and reported by brynet; thanks!

``if it works, commit it'' matthieu@
2011-11-23 21:07:12 +00:00
matthieu
a25491e7be Remove extra white space at EOF 2011-10-26 21:15:07 +00:00
matthieu
77b69b735d Build system updates for Mesa 7.10.3 2011-10-23 13:57:36 +00:00
oga
e7189c6b6c Now the kernel support has been commited we can enable r600 driver
becaue the lack of kernel support won't break people trying to use gl.

ok matthieu ages ago
2011-05-30 21:52:42 +00:00
oga
5377107505 link libdrm_radeon so this actually can resolve symbols 2011-05-02 21:55:21 +00:00
matthieu
69d68a5946 Remove the makefiles for dri drivers that aren't built anymore. 2010-05-27 06:25:45 +00:00
matthieu
23bbc6ddb4 Build infrastructure for Mesa 7.8.1. 2010-05-22 20:14:14 +00:00
matthieu
d9a92f27a6 use INSTALL_DATA in BSD Makefiles. ok oga@ 2010-05-08 14:15:29 +00:00
matthieu
4be2d14bbe Update build infrastructure for Mesa 7.4. 2009-05-17 20:20:23 +00:00
matthieu
b67e1f26fa Add missing OpenBSD RCS Ids. 2009-01-28 16:10:44 +00:00
oga
f89935ff4d Switch over to using the kernel *_drm.h headers instead of the copies
thereof provided with libdrm. This has been annoying me forever, and it
a blight caused by developing widely used drivers out of the kernel
tree.

ok matthieu@
2009-01-10 16:06:51 +00:00
oga
cd1fdaad7a Don't build intel_bufmgr_ttm.c anymore, the rest of the ttm code has
been removed.

ok matthieu@
2009-01-10 16:02:04 +00:00
oga
34ca8034ae Don't build the "unichrome" driver. We don't have the kernel headers for
it, and we're about to switch to using kernel headers instead of the
ones packaged with libdrm. If the unichrome driver gets rewritten (or I
eventually get time), then it'll come back.

ok matthieu@
2009-01-10 16:01:10 +00:00
todd
5fe2c4cd47 add -fPIC for sparc
ugly, but ok matthieu@
2008-11-05 07:18:25 +00:00
matthieu
b4cc3aa54b Build fix. There were symlinks hiding in the git repository... 2008-11-02 16:07:40 +00:00
matthieu
8baeee737f Update build infrastructure for libGL after Mesa 7.2 update. 2008-11-02 15:01:32 +00:00
matthieu
27ae5db2a9 dri libs depend on libmesa_pic.a 2008-04-19 07:15:17 +00:00
matthieu
bbc31bf586 Introduce bsd.xconf.mk to set default config variables used
at several places in the Xenocara build in a central place instead
of duplicating the checks all over the place. ok oga@.
2008-03-25 23:41:50 +00:00
matthieu
6869a2ba6e dri drivers need too be linked against libX11 for AIGLX (for threads stubs).
Problem found by oga@. Thanks.
2008-02-20 22:41:51 +00:00
oga
e571581c1f Fix the linkage and CFLAGS of the dri libs. they don't segfault immediately
on startup now.

still a little sketchy though.
2008-02-07 00:09:01 +00:00