diff options
author | Roland Scheidegger <sroland@vmware.com> | 2013-06-19 23:46:15 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2013-06-19 23:47:36 +0200 |
commit | ffebefa11424411d7e54a3a1223fe87a2de6e596 (patch) | |
tree | e3e24548ffb9377f07e4aceff6247db8d0e6a89d /src/gallium/auxiliary/util/u_cpu_detect.c | |
parent | 5c9aee111effea2f16437bb3c5b5ad5c69cd7aed (diff) | |
download | external_mesa3d-ffebefa11424411d7e54a3a1223fe87a2de6e596.zip external_mesa3d-ffebefa11424411d7e54a3a1223fe87a2de6e596.tar.gz external_mesa3d-ffebefa11424411d7e54a3a1223fe87a2de6e596.tar.bz2 |
util: (trivial) add has_popcnt field
Not used yet but there's a couple of places in llvmpipe which should use this
(occlusion count is currently very inefficent if there's no cpu popcnt
instruction).
Diffstat (limited to 'src/gallium/auxiliary/util/u_cpu_detect.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_cpu_detect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_cpu_detect.c b/src/gallium/auxiliary/util/u_cpu_detect.c index 763b5cc..b118fc8 100644 --- a/src/gallium/auxiliary/util/u_cpu_detect.c +++ b/src/gallium/auxiliary/util/u_cpu_detect.c @@ -283,6 +283,7 @@ util_cpu_detect(void) util_cpu_caps.has_ssse3 = (regs2[2] >> 9) & 1; /* 0x0000020 */ util_cpu_caps.has_sse4_1 = (regs2[2] >> 19) & 1; util_cpu_caps.has_sse4_2 = (regs2[2] >> 20) & 1; + util_cpu_caps.has_popcnt = (regs2[2] >> 23) & 1; util_cpu_caps.has_avx = (regs2[2] >> 28) & 1; util_cpu_caps.has_f16c = (regs2[2] >> 29) & 1; util_cpu_caps.has_mmx2 = util_cpu_caps.has_sse; /* SSE cpus supports mmxext too */ |