On Thu, Nov 6, 2014 at 1:30 AM, Siavash Eliasi <siavashser...@gmail.com> wrote: > How and when is "cpu_has_sse4_1" true? Is it controllable at runtime through > setting some environmental variable? or is it set once during startup by > detecting CPU features?
It's actually a macro, but yes, see the end of src/mesa/x86/common_x86.c. It's set by using the CPUID instruction to detect SSE 4.1 capabilities. if (ecx & bit_SSE4_1) _mesa_x86_cpu_features |= X86_FEATURE_SSE4_1; > I guess checking for "cpu_has_sse4_1" is unnecessary if it isn't > controllable by user at runtime; because "USE_SSE41" is a compile time check > and requires the target machine to be SSE 4.1 capable already. Right. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev