unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kaelyn <kaelyn.alexi@protonmail.com>
To: John Kehayias <john.kehayias@protonmail.com>
Cc: Andreas Enge <andreas@enge.fr>, guix-devel <guix-devel@gnu.org>
Subject: Re: Mesa vulkan layer path fix for core-updates
Date: Tue, 09 May 2023 14:56:22 +0000	[thread overview]
Message-ID: <VMty2Q90jsAplzgyIH7LvCHYaxVaMEWBZcdIcEbVWoLeX1Ul00_2N9aUcmvGt4iXPnO81Z9R96CBHg7GjNDzX0smbb2b_Jdduwfs4Rcn5gU=@protonmail.com> (raw)
In-Reply-To: <87zg6ep0o5.fsf@protonmail.com>

Hi,

------- Original Message -------
On Tuesday, May 9th, 2023 at 4:51 AM, John Kehayias <john.kehayias@protonmail.com> wrote:

> 
> Hello,
> 
> On Tue, Apr 25, 2023 at 04:40 PM, Kaelyn wrote:
> 
> > Hi,
> > 
> > ------- Original Message -------
> > On Tuesday, April 25th, 2023 at 2:15 PM, Andreas Enge andreas@enge.fr wrote:
> > 
> > > Hello Kaelyn,
> > > 
> > > thanks for your research!
> > 
> > You're welcome! :)
> > 
> > > Am Wed, Apr 19, 2023 at 04:07:51PM +0000 schrieb Kaelyn:
> > > 
> > > > * https://issues.guix.gnu.org/62176 can be closed when
> > > > core-updates is merged, since core-updates contains mesa 22.2.4
> > > > * Though not exactly mesa-related,
> > > > https://issues.guix.gnu.org/61364 can possibly be closed now, and
> > > > almost certainly once the core-updates merge is completed. (The
> > > > ticket is a number of workarounds the user applied in early Feb to
> > > > be able to build their system profile using core-updates, to pick
> > > > up Mesa 22 for newer hardware support. I'm not sure if any of the
> > > > patches are still relevant.)
> > > 
> > > I just closed these two.
> > > 
> > > > * https://issues.guix.gnu.org/58887 looks like an alternate way of
> > > > solving the layer path issues that
> > > > https://issues.guix.gnu.org/59453 also addresses. Additionally, it
> > > > adds two new nonstandard VK_*_PATH variables to vulkan-loader,
> > > > with at least VK_ILAYER_PATH seeming very similar in functionality
> > > > to VK_LAYER_PATH and VK_ADD_LAYER_PATH described at
> > > > https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderInterfaceArchitecture.md
> > > > * https://issues.guix.gnu.org/58251 would be fixed by
> > > > https://issues.guix.gnu.org/59453
> > 
> > I feel these two can be closed once 59453 lands, as then the manifests
> > will have the store path to their corresponding shared objects. I also
> > think having the full paths in the manifests will lead to fewer
> > cross-version/cross-package mixing of objects, compared to setting and
> > using environment variables of directories to search.
> 
> 
> I haven't looked at the details, but I'm guessing these can all be
> closed now?

Yes they can be. As a quick smoke test, prior to these patches landing, "vulkaninfo > /dev/null" would consistently print out vulkan loader errors about not being able to open libVkLayer_MESA_device_select.so. (I call it a smoke test because that layer not being found isn't fatal; I first encountered the errors in a breaking way when packaging vulkan-validationlayers for use with the tutorial at https://vulkan-tutorial.com/.)

Slightly off-topic speaking of mesa bugs: another one that can be closed is https://issues.guix.gnu.org/43849 as the issue with mesa's reproducibility was fixed with a patch that landed in meson 0.59.0 (which Guix picked up in commit b15c3dd9b0 from July 2021).

> 
> > > > * https://issues.guix.gnu.org/62313 might need a modification to
> > > > mesa e.g. to add VDPAU_DRIVER_PATH as a native-search-path (one
> > > > possible solution; in my home profile I made VDPAU work by setting
> > > > "VDPAU_DRIVER_PATH=/run/current-system/profile/lib/vdpau").
> > > > * https://issues.guix.gnu.org/48868 appears to be the same
> > > > VDPAU_DRIVER_PATH issue as https://issues.guix.gnu.org/62313.
> > 
> > For the VDPAU drivers, I plan to do a little more digging and some
> > experimenting but I suspect defining VDPAU_DRIVER_PATH as a
> > native-search-path is the best way forward. I'll send a patch once
> > I've tested a change locally without having my profile set
> > VDPAU_DRIVER_PATH to /run/current-system/profile/lib/vdpau.
> 
> 
> I checked that both 48868 and 62313 were fixed in the recent updates
> and closed both.
> 
> Thanks for the patches!
> John

You're welcome! And thank you for checking and resolving the bug reports!

Cheers,
Kaelyn


  reply	other threads:[~2023-05-09 14:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-19 14:41 Mesa vulkan layer path fix for core-updates Kaelyn
2023-04-19 15:26 ` Andreas Enge
2023-04-19 16:07   ` Kaelyn
2023-04-19 16:38     ` John Kehayias
2023-04-25 14:15     ` Andreas Enge
2023-04-25 16:40       ` Kaelyn
2023-05-09  4:51         ` John Kehayias
2023-05-09 14:56           ` Kaelyn [this message]
2023-05-10 12:20             ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='VMty2Q90jsAplzgyIH7LvCHYaxVaMEWBZcdIcEbVWoLeX1Ul00_2N9aUcmvGt4iXPnO81Z9R96CBHg7GjNDzX0smbb2b_Jdduwfs4Rcn5gU=@protonmail.com' \
    --to=kaelyn.alexi@protonmail.com \
    --cc=andreas@enge.fr \
    --cc=guix-devel@gnu.org \
    --cc=john.kehayias@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).