The attached patch disables usage of LLVM JIT on riscv64, which was
causing the error I reported in comment #3.

I obtained this patch from the following Debian bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004039

This patch, combined with the previous one, seems to work well on the
Sipeed Lichee RV board. I have tested this with ubuntu-frame and a
custom-built mesa-core20 snap containing the drivers built using these
patches.

** Bug watch added: Debian Bug tracker #1004039
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004039

** Patch added: "mesa-disable-llvm-riscv64.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1995137/+attachment/5630389/+files/mesa-disable-llvm-riscv64.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1995137

Title:
  "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

Status in mesa package in Ubuntu:
  New

Bug description:
  "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-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_arm64.deb | grep _dri.so
  *snip*
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/aarch64-linux-gnu/dri/sun4i-drm_dri.so link to 
./usr/lib/aarch64-linux-gnu/dri/armada-drm_dri.so
  *snip*

  itrue@lxc-focal ~/tmp> dpkg -c 
libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_riscv64.deb | grep _dri.so
  -rw-r--r-- root/root  16498024 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  -rw-r--r-- root/root   4692400 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r200_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r300_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r600_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeon_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeonsi_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/swrast_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/virtio_gpu_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root         0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/zink_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1995137/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to