[Ubuntu-x-swat] [Bug 1995137] Re: "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

2022-11-10 Thread Isaac True
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-X,
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

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


___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 1995137] Re: "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

2022-11-09 Thread Isaac True
Using this library results in the following error:

'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
WARNING: This target JIT is not designed for the host you are running.  If bad 
things happen, please choose a different -march switch.
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: Cannot select: 0x3fa81e7fa8: ch = store<(store 4 into %ir.mask_ptr1 
+ 12, basealign 16), trunc to i32> 0x3fa81eadd0, 0x3fa81eea00, 0x3fa81b3358, 
undef:i64
  0x3fa81eea00: i64 = sub Constant:i64<0>, 0x3fa81e7c68
0x3fa81b59a8: i64 = Constant<0>
0x3fa81e7c68: i64 = and 0x3fa81e7ed8, Constant:i64<1>
  0x3fa81e7ed8: i64 = srl 0x3fa81e9430, Constant:i64<7>
0x3fa81e9430: i64,ch = load<(load 2 from %fixed-stack.5, align 8), zext 
from i16> 0x3fa80c34b8, FrameIndex:i64<-2>, undef:i64
  0x3fa81b2e78: i64 = FrameIndex<-2>
  0x3fa81b2da8: i64 = undef
0x3fa81e7e70: i64 = Constant<7>
  0x3fa81b5a78: i64 = Constant<1>
  0x3fa81b3358: i64 = add FrameIndex:i64<6>, Constant:i64<28>
0x3fa81b34f8: i64 = FrameIndex<6>
0x3fa8217440: i64 = Constant<28>
  0x3fa81b2da8: i64 = undef
In function: fs_variant_partial
!!! Fatal signal received. Attempting cleanup, but deadlock may occur
pure virtual method called
terminate called without an active exception
!!! Fatal signal received. Attempting cleanup, but deadlock may occur
Mir fatal error: Unsupported attempt to continue after a fatal signal: SIGABRT


Seems similar to
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1993800 but probably
unrelated

-- 
You received this bug notification because you are a member of Ubuntu-X,
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

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


___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 1995137] Re: "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

2022-11-09 Thread Ubuntu Foundations Team Bug Bot
The attachment "mesa-build-lima-on-riscv64.debdiff" seems to be a
debdiff.  The ubuntu-sponsors team has been subscribed to the bug report
so that they can review and hopefully sponsor the debdiff.  If the
attachment isn't a patch, please remove the "patch" flag from the
attachment, remove the "patch" tag, and if you are member of the
~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu-X,
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

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


___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 1995137] Re: "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

2022-11-09 Thread Isaac True
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.

** Patch added: "mesa-build-lima-on-riscv64.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1995137/+attachment/5630053/+files/mesa-build-lima-on-riscv64.debdiff

-- 
You received this bug notification because you are a member of Ubuntu-X,
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

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


___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp