Mesa 23.1 Gets Basic LoongArch Support

Written by Michael Larabel in Mesa on 27 February 2023 at 03:00 AM EST. Add A Comment
Merged this past week into Mesa 23.1 is initial support for Loongson's LoongArch CPU architecture.

Loongson engineers have spent much time over the past two years or so on providing upstream/mainline support for LoongArch across the Linux kernel, the GNU and LLVM toolchains, and various other high profile components. LoongArch is the Chinese MIPS64-derived, RISC-V-inspired CPU architecture being used for the newest Loongson processors that previously had a long history of being open-source friendly and based on MIPS64.

The newest LoongArch upstream software work to talk about is Mesa 23.1 seeing initial support. This "basic support" comes down to Meson build system updates so that on LoongArch64 a subset of the Gallium3D drivers are compiled as well as the AMD and software rasterizer Vulkan drivers. Plus for LoongArch defines "USE_LOONGARCH64_ASM" so that any LoongArch specific Assembly added in the future and protected by that define will be enabled.

LoongArch graphic

The initial merge request for what has landed so far also goes on to note by Loongson that there are some additional patches around LLVMpipe support on LoongArch.

In the past Loongson MIPS64 systems have been popular with some open-source AMD graphics usage while moving forward it will be interesting to see if Loongson pursues (or licenses) any integrated graphics of their own for LoongArch SoCs. In any case, come Mesa 23.1 next quarter this tiny stride on LoongArch support will be in place.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week