Unofficial Mesa-7.11 build script for Slackware
I've been playing around with this package for a week now and I figured I'd go public with it. Please note that this package should be considered unstable or for testing ONLY and not for daily usage unless you are prepared for the unforeseen.
You will need to do some preparations before building however as my script slightly differs from Patrick's script, but follows the same concepts. UPDATE: Found new comments to add to re-add Gallium driver acceleration for many cards to restore hardware acceleration. Gallium now is enabled on the following devices: UPDATE 2: Fixed some configuration options. Re-enabled the i915 ARB_Fragment_Shader by default patch as a default option after some retesting on an i915 powered system. i915 i965 nouveau r300 r600 svga swrast Required dependency: llvm (may be acquired from slackbuilds.org) This is for ATI/AMD Radeon cards for Gallium. What's enabled: My build contains drivers for just about every OpenGL capable card known which includes the normally supported cards from Patrick's default build: i810 i915 i965 mach64 mga nouveau r128 r200 r300 r600 radeon savage sis tdfx unichrome swrast I also have enabled support for the following outside the normal for testing: xcb gallium-llvm openvg gles1 gles2 gallium-egl How to build it: Go to ftp://ftp.freedesktop.org/pub/mesa/ and grab the source packages: MesaLib-7.11.tar.gz MesaGLUT-7.11.tar.gz And copy the /source/x/mesa directory from the DVD to a temporary location in your files. You can delete the older MesaLib and MesaGLUT packages and replace them with the newer 7.11 versions only. The demos package hasn't been updated... yet. Now simply replace Patrick's SlackBuild script with this one using a text editor, and run it with your architecture of choice: ARCH=i486 or ARCH=x86_64 and install the package (I recommend updating the package using "upgradepkg --install-new" as your package installer to remove older files and replace the package completely). Here's the Build script in the code box: Code:
#!/bin/sh Package is not considered stable. Please use caution. Package is not supported officially. Special note for Nouveau users (PLEASE READ): Nvidia cards do not always require firmware to operate but there is a package specifically for the nouveau drivers JUST IN CASE. This Package is from ARCHLinux so all you have to do is unpack the tarball and place the package into your main root directory which will copy the path directly to your main firmware folder with a new folder titled nouveau (remember this is the main "/" directory not "/root"). You can grab it here if you feel you need it. http://www.archlinux.org/packages/ex...veau-firmware/ Attention!!! I am asking that anyone with a chipset enabled for the Gallium API please provide feedback for your driver as to how it runs performance-wise, compatibility-wise, etc. especially users with ATi/AMD Radeon 9x00/X/HD series, and those with Intel 915/965 based graphics chips. Special section for 3Dfx users (nobody has asked me about this YET, but...): Please do not ask about Glide support for this package. The Glide3 SDK is very deprecated and support for the Glide3 API via the DRI driver was written out in favor of a non-Glide accelerated DRI solution. Support for Glide3 still exists within the code, though the current code defaults to a native accelerated function rather than falling back on Glide3 as a crutch, but you will have to edit in the option for Glide3 support on your own and possibly build the package externally from the SlackBuild script using make. Take a careful note of this: Glide3 WILL NOT build on x86_64 systems. |
nice. seems you found the silver bullet (ie. the right config options). I created a mesa 7.11 package a while ago and had to resort to excluding the r200 r300 r600 drivers...
|
Yeah llvm is required by those drivers now for Gallium support. I had no idea this was the silver bullet BTW.
I only just checked the dependencies and installed what I needed then ran a couple of test configurations and makes a few times to ensure there were no errors before I edited Patrick's Slackbuild and made the final commit to it. I actually would like to know if he has similar and if he wants to duplicate my work in an official package for -current, I have no issues with it, nor would I care if I was or wasn't credited for the effort. The one question I have on my mind right now is does this actually help people using the Gallium enabled DRI on chipsets other than the nouveau drivers? Update: I tested the driver on an HP Mini Netbook with a 945GME Video chip and Gallium does in fact work, and more stable than the Tungsten Graphics driver. |
Quote:
Quote:
Also note that gallium-llvm is automatically enabled on x86 or x86_64 which covers pretty much all current Slackware users. Quote:
Quote:
Code:
GALLIUM_DRIVERS="i915,i965,nouveau,r300,r600,swrast,svga" Quote:
Quote:
Apart from the above I'm running 7.11 just fine here, I also updated the nouveua driver in X as well as upgrading Xorg to the current release. I also have transparency working :) |
Why aren't you escaping the ends of these lines in your SlackBuild:
Code:
--with-gallium-drivers=i915,i965,nouveau,r300,r600,svga,swrast |
Quote:
|
Quote:
Code:
make $NUMJOBS || make || exit 1 Code:
make || make $NUMJOBS || exit 1 |
NUMJOBS should be the first option.
I prefer to use MAKEFLAGS rather than explicitly set jobs in the script. |
Quote:
As far as the others, yes, some are enabled by default and some are from Pat's, I did base it off his with some minor changes, so unless you're nitpicky I've only done minor edits to entire ensure an option is used actually by and not just auto-detected, or changed one option that is not longer used to the updated one. As for the patch, I wasn't sure if I should or shouldn't keep it due to the version change. If it works, then by all means uncomment it and use it. Again as stated I added some stuff for experimentation and testing only, but the rest is mainstream and support for general stuff and what-not. |
Thanks for this ReaperX7. I actually needed a more recent Mesa to test Opera Hardware acceleration builds, and was about to look into this before seeing your post.
|
Just a helpful tip.
Installing the package driconf from SlackBuilds.org and setting it up tends to be very helpful in getting smoother frame rates. I recommend this package for usage with any DRI using video card unless you are using the proprietary drivers from your video card manufacturer to gain a little more control over your video cards. |
All times are GMT -5. The time now is 11:17 AM. |