Re: [Mesa-dev] [PATCH] gallivm: Detect VSX separately from Altivec

2018-08-24 Thread Vicki Pfau
should use its own copy of the u_cpu bits). The fiddling we do in lp_bld_init() wrt SSE (LP_FORCE_SSE2 and also avx disabling) isn't a clean way neither. So this looks like as good a solution as others. Reviewed-by: Roland Scheidegger Am 20.08.2018 um 22:15 schrieb Vicki Pfau: I was mostly

Re: [Mesa-dev] [PATCH] gallivm: Detect VSX separately from Altivec

2018-08-20 Thread Vicki Pfau
schrieb Vicki Pfau: Previously gallivm would attempt to use VSX instructions on all systems where it detected that Altivec is supported; however, VSX was added to POWER long after Altivec, causing lots of crashes on older POWER/PPC hardware, e.g. PPC Macs. By detecting VSX separately from Altivec we

[Mesa-dev] [PATCH] gallivm: Detect VSX separately from Altivec

2018-08-20 Thread Vicki Pfau
disable it on hardware that supports Altivec but not VSX Signed-off-by: Vicki Pfau --- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 21 +++ src/gallium/auxiliary/util/u_cpu_detect.c | 14 - src/gallium/auxiliary/util/u_cpu_detect.h | 1 + 3 files changed