Last active
August 29, 2015 13:56
-
-
Save NTICompass/9266388 to your computer and use it in GitHub Desktop.
fglrx-12.4 for Linux 3.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the directory this script is in | |
AMD=`pwd` | |
# Ask AMD/ATI for the 12.4 drivers | |
if [ ! -f "amd-driver-installer-12-4-x86.x86_64.run" ]; then | |
wget --referer='http://support.amd.com' http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run | |
chmod +x amd-driver-installer-12-4-x86.x86_64.run | |
fi | |
# Extract them, so we can fiddle with the insides | |
if [ ! -d "fglrx-12.4" ]; then | |
fakeroot ./amd-driver-installer-12-4-x86.x86_64.run --extract fglrx-12.4 | |
# Patch the module code | |
cd fglrx-12.4/common/lib/modules/fglrx/build_mod | |
patch -p0 < $AMD/ati_patch.txt | |
fi | |
# Run AMD's installer script | |
cd $AMD/fglrx-12.4 | |
sudo ./ati-installer.sh 8.961 --install --force | |
# Set up an initial xorg.conf file | |
if [ ! -f "/etc/X11/xorg.conf" ]; then | |
sudo aticonfig --initial -f | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo /usr/share/ati/amd-uninstall.sh --force | |
cd /etc | |
sudo rm -rf ati | |
cd /usr/share | |
sudo rm -rf ati |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Gianluca Gennari <[email protected]> | |
--- | |
--- firegl_public.c | |
+++ firegl_public.c | |
@@ -5797,10 +5797,16 @@ void ATI_API_CALL KCL_fpu_begin(void) | |
#ifdef CONFIG_X86_64 | |
kernel_fpu_begin(); | |
#else | |
+#ifndef TS_USEDFPU | |
+ preempt_disable(); | |
+ if (__thread_has_fpu(current)) | |
+ __save_init_fpu(current); | |
+#else | |
struct thread_info *cur_task = current_thread_info(); | |
preempt_disable(); | |
if (cur_task->status & TS_USEDFPU) | |
__save_init_fpu(cur_task->task); | |
+#endif | |
else | |
clts(); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment