mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
util: Set cpu endianness too.
This commit is contained in:
parent
1acd891ed3
commit
4797ce0d19
2 changed files with 4 additions and 0 deletions
|
|
@ -394,8 +394,10 @@ util_cpu_detect(void)
|
|||
util_cpu_caps.arch = UTIL_CPU_ARCH_SPARC;
|
||||
#elif defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
|
||||
util_cpu_caps.arch = UTIL_CPU_ARCH_X86;
|
||||
util_cpu_caps.little_endian = 1;
|
||||
#elif defined(PIPE_ARCH_PPC)
|
||||
util_cpu_caps.arch = UTIL_CPU_ARCH_POWERPC;
|
||||
util_cpu_caps.little_endian = 0;
|
||||
#else
|
||||
util_cpu_caps.arch = UTIL_CPU_ARCH_UNKNOWN;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ struct util_cpu_caps {
|
|||
int x86_cpu_type;
|
||||
unsigned cacheline;
|
||||
|
||||
unsigned little_endian:1;
|
||||
|
||||
unsigned has_tsc:1;
|
||||
unsigned has_mmx:1;
|
||||
unsigned has_mmx2:1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue