Hi guys,
The latest ATi 12.2 are giving a compile build error on 32-bit machines
running Kernel >= 3.2.9. (64bit machines are not affected.)
Use this patch to fix this:
diff -rup fglrx.orig/firegl_public.c fglrx/firegl_public.c
--- fglrx.orig/firegl_public.c 2012-03-07 20:01:43.846965234 +0100
+++ fglrx/firegl_public.c 2012-03-09 00:19:56.906176573 +0100
@@ -5799,12 +5799,21 @@ void ATI_API_CALL KCL_fpu_begin(void)
#ifdef CONFIG_X86_64
kernel_fpu_begin();
#else
+#ifdef TS_USEDFPU
struct thread_info *cur_task = current_thread_info();
preempt_disable();
if (cur_task->status & TS_USEDFPU)
__save_init_fpu(cur_task->task);
else
clts();
+#else
+ struct task_struct *cur_task = current;
+ preempt_disable();
+ if (cur_task->thread.has_fpu)
+ __save_init_fpu(cur_task);
+ else
+ clts();
+#endif
#endif
}
--
Kind Regards,