Add "sun4i-drm_dri.so" to libg1-mesa-dri and fix compilation on riscv64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mesa (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
lima driver is missing from riscv64, but in order to enable it we need to disable anything that uses JIT on riscv64: swrast for vulkan, and draw-use-llvm for gallium.
JIT for riscv64 is buggy and should be fixed in a future llvm release.
[Test case]
Check that sun4i-drm_dri.so is in libgl1-mesa-dri deb for riscv64, and that it works.
[Where things could go wrong]
This is a new driver for the architecture, so there's little chance of breakage.
--
"sun4i-drm_dri.so" is needed for some RISC-V platforms such as the Allwinner D1. This file is missing from the riscv64 packages, but present on others. This affects (at least) 20.04 and 22.04.
itrue@lxc-focal ~/tmp> dpkg -c libgl1-
*snip*
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
*snip*
itrue@lxc-focal ~/tmp> dpkg -c libgl1-
-rw-r--r-- root/root 16498024 2022-03-08 16:37 ./usr/lib/
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
-rw-r--r-- root/root 4692400 2022-03-08 16:37 ./usr/lib/
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
hrw-r--r-- root/root 0 2022-03-08 16:37 ./usr/lib/
description: | updated |
summary: |
- "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64 + Add "sun4i-drm_dri.so" and fix compilation of libg1-mesa-dri on riscv64 |
summary: |
- Add "sun4i-drm_dri.so" and fix compilation of libg1-mesa-dri on riscv64 + Add "sun4i-drm_dri.so" to libg1-mesa-dri and fix compilation on riscv64 |
description: | updated |
description: | updated |
The attached debdiff enables building the lima driver on riscv64. This drivers provides sun4i-drm_dri.so.
I'm currently testing this locally and waiting on riscv64 to be enabled for my PPA to build a package on LP.