#1107256 libgl1-mesa-dri: Enable iris and intel vulkan driver for loong64

Package:
libgl1-mesa-dri
Source:
libgl1-mesa-dri
Description:
free implementation of the OpenGL API -- DRI modules
Submitter:
Jianfeng Liu
Date:
2025-06-04 02:19:01 UTC
Severity:
normal
Tags:
#1107256#5
Date:
2025-06-04 02:16:57 UTC
From:
To:
We can use Intel Arc graphic cards on Loongarch platforms, but mesa
lacks iris userspace driver.

I can enable iris after solving #1107223 with the following patch:

diff --git a/debian/rules b/debian/rules
index 67562954..ec43bc4c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -89,7 +89,7 @@ else
   endif

   # Build intel drivers on archs where libdrm-intel is installed
-  ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 x32))
+  ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 x32 loong64))
        GALLIUM_DRIVERS += crocus i915 iris svga
        VULKAN_DRIVERS += intel intel_hasvk
        # svga needs xa state tracker

Now I can use 3D acceleration and vulkan with Intel Arc B580 on
3A6000 platform.