Alan Cox wrote:
On Mer, 2004-09-22 at 22:14, Eric Anholt wrote:

2.2 kernels and kernels not properly configured for Pentium3 CPUs. So, what's the right way on a 2.4 or a 2.6 kernel to determine if an app can use SSE? What about BSD?

On FreeBSD we just use a convenient little sysctl to pull out whether there's SSE and the kernel supports it.

Ask the processor or ask the kernel (cpuid or /proc/cpuinfo). All modern kernels support SSE so the exception case should only occur for 2.2 (ie unsupported).

The folks on #freedesktop suggested parsing cpuinfo, and I wrote some simple code to do that. Are you saying that, if CPUID returns the SSE bit set and we're on a 2.4 or later kernel, we're good to go? That would make me very happy because we already test the CPUID bit, and DRI isn't supported on 2.2. :)



------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to