Files
mesa/src/util
Jiale Zhao a9e1ecf6f0 llvmpipe: add loongarch util_get_cpu_caps function
When use LA464(3A5000 pc), LLVM18 and kernel(which not supports lsx/lasx),
it will get a illegal instruction error. LA464 will return LA464 and
LA664 will return a generic when calling getHostCPUName(). Return LA464
name will add all feature(+f,+d,+lsx,+lasx,lvz) by default and generate
vector instruction, generic will add null. Hence we use util_get_cpu_caps
to judge if kernel supports lsx/lasx or not.

Set lsx and lasx by util_get_cpu_caps. Only LLVM 18 on loongarch
supports lsx and lasx completely. LLVM 16 isn't supported and
LLVM 17's LSX support is incomplete.

Signed-off-by: Jiale Zhao <zhaojiale@loongson.cn>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30220>
2024-09-10 05:11:57 +00:00
..
2023-11-02 21:03:46 +00:00
2023-12-06 07:22:02 +00:00
2024-04-22 01:42:52 +00:00
2022-09-29 23:40:18 +00:00
2022-09-29 23:40:18 +00:00
2023-10-09 23:37:52 +00:00
2024-01-16 02:15:22 +00:00
2024-08-13 20:35:23 +00:00
2023-10-25 17:27:47 +00:00
2024-02-26 15:37:58 +00:00
2024-02-26 15:37:58 +00:00
2022-06-02 13:09:16 +00:00
2022-11-04 23:20:02 +00:00
2022-11-04 23:20:02 +00:00
2022-03-09 08:48:59 +00:00
2022-03-09 08:48:59 +00:00
2023-10-30 12:35:07 +00:00
2024-06-07 18:29:20 +00:00
2024-07-15 19:28:59 +00:00
2022-11-24 04:33:07 +00:00
2024-06-07 18:29:20 +00:00