mesa/src
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
..
amd aco/ra: do not reuse killed vcc 2024-09-09 19:48:22 +00:00
android_stub vulkan/android: Add helper to probe AHB support 2024-05-14 14:53:44 +00:00
asahi hk: wire up compression 2024-09-02 23:27:15 +00:00
broadcom v3dv: unconditionally expose VK_EXT_queue_family_foreign 2024-09-05 15:44:01 +00:00
c11 build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
compiler nir/algebraic: Optimize more comparisons with b2f 2024-09-10 04:15:58 +00:00
drm-shim drm-shim: stub synobj_timeline_wait and query ioctl 2024-07-16 11:17:59 +02:00
egl meson: require dri3 modifiers 2024-09-06 17:34:17 +00:00
etnaviv etnaviv: isa: Add conv instruction 2024-08-30 01:53:18 +00:00
freedreno ir3: Respect aligment of required consts when allocating ubo,preamble 2024-09-09 19:11:40 +00:00
gallium llvmpipe: add loongarch util_get_cpu_caps function 2024-09-10 05:11:57 +00:00
gbm meson: delete dri3 build option 2024-09-04 14:48:17 +00:00
getopt build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
glx glx: add a missing nullptr check 2024-09-10 01:29:48 +00:00
gtest build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
imagination pvr: emit tpu_tag_cdm_ctrl in compute stream when present 2024-08-14 18:07:41 +08:00
imgui
intel intel/dev: Fix warning for max_threads_per_psd when devinfo->verx10 == 120 2024-09-10 03:21:12 +00:00
loader gallium: move loader_dri_create_image to dri frontend 2024-08-01 15:28:03 +00:00
mapi mesa: add KHR_shader_subgroup extension 2024-08-26 10:46:16 +08:00
mesa gallium,st/mesa: Add and set pipe_image_view::is_2d_view_of_3d 2024-09-09 13:41:35 +00:00
microsoft microsoft/compiler: Move nir_lower_undef_to_zero out of the optimization loop 2024-09-03 21:53:24 +00:00
nouveau nvk: Use stride in the explicit modifier case for linear images 2024-09-06 19:37:09 +00:00
panfrost panvk: Ensure to clear dirty dynamic state in panvk_cmd_draw 2024-09-09 15:59:52 +00:00
tool perfetto: Add Panfrost data sources to system.cfg 2024-08-22 18:33:45 +00:00
util llvmpipe: add loongarch util_get_cpu_caps function 2024-09-10 05:11:57 +00:00
virtio venus: avoid over-caching sfb cmds 2024-09-05 19:17:22 +00:00
vulkan meson: require dri3 modifiers 2024-09-06 17:34:17 +00:00
x11 meson: require dri3 modifiers 2024-09-06 17:34:17 +00:00
.clang-format bi: Add bi_foreach_ssa_dest 2024-08-20 10:02:45 +02:00
meson.build meson: Allow building lavapipe without specifying llvmpipe 2024-08-29 10:17:52 +02:00