Search
SailfishOS Open Build Service
>
Projects
>
home:cxl000
:
branches:home:cxl000:mc
>
mesa
> nosse4avx.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nosse4avx.patch of Package mesa
diff -ru a/src/gallium/auxiliary/util/u_cpu_detect.c b/src/gallium/auxiliary/util/u_cpu_detect.c --- a/src/gallium/auxiliary/util/u_cpu_detect.c 2014-01-31 22:44:08.000000000 +0200 +++ b/src/gallium/auxiliary/util/u_cpu_detect.c 2014-02-25 02:28:54.140761971 +0200 @@ -363,14 +363,27 @@ util_cpu_caps.has_sse2 = (regs2[3] >> 26) & 1; /* 0x4000000 */ util_cpu_caps.has_sse3 = (regs2[2] >> 0) & 1; /* 0x0000001 */ util_cpu_caps.has_ssse3 = (regs2[2] >> 9) & 1; /* 0x0000020 */ +#if 0 util_cpu_caps.has_sse4_1 = (regs2[2] >> 19) & 1; util_cpu_caps.has_sse4_2 = (regs2[2] >> 20) & 1; +#else + util_cpu_caps.has_sse4_1 = 0; + util_cpu_caps.has_sse4_2 = 0; +#endif util_cpu_caps.has_popcnt = (regs2[2] >> 23) & 1; +#if 0 util_cpu_caps.has_avx = ((regs2[2] >> 28) & 1) && // AVX ((regs2[2] >> 27) & 1) && // OSXSAVE ((xgetbv() & 6) == 6); // XMM & YMM +#else + util_cpu_caps.has_avx = 0; +#endif util_cpu_caps.has_f16c = (regs2[2] >> 29) & 1; +#if 0 util_cpu_caps.has_mmx2 = util_cpu_caps.has_sse; /* SSE cpus supports mmxext too */ +#else + util_cpu_caps.has_mmx2 = 0; +#endif #if defined(PIPE_ARCH_X86_64) util_cpu_caps.has_daz = 1; #else