summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_texture.h
diff options
context:
space:
mode:
authorAndre Heider <[email protected]>2013-07-23 19:08:45 +0200
committerJosé Fonseca <[email protected]>2013-07-23 23:12:58 +0100
commit0acf3a8407fbeaa9d61731ce83fbe6de529e303c (patch)
tree6b52f6855eeead08bdc7e7449d19e675b27dda59 /src/mesa/state_tracker/st_texture.h
parent5a7bdd4b4173958c53109517b7c95f1039623e7e (diff)
gallium/util: Fix detection of AVX cpu caps
For AVX it's not sufficient to only rely on the cpuid flags. If the CPU supports these extensions, but the OS doesn't, issuing these insns will trigger an undefined opcode exception. In addition to the AVX cpuid bit we also need to: * test cpuid for OSXSAVE support * XGETBV to check if the OS saves/restores AVX regs on context switches See "Detecting Availability and Support" at http://software.intel.com/en-us/articles/introduction-to-intel-advanced-vector-extensions Signed-off-by: Andre Heider <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
0 files changed, 0 insertions, 0 deletions