• [gentoo-dev] [PATCH] profiles/targets/desktop: enable USE=vulkan by def

    From Sam James@21:1/5 to All on Sun May 21 23:50:01 2023
    Ionen pointed this out again today and it made me look back at it; there's
    no reason to not have vulkan on by default for desktop profiles.

    In particular, Steam expects it for plenty of games to work, but at this point, it's becoming jarring for users to _not_ have it as it's considered a fundamental part
    of the modern desktop.

    Signed-off-by: Sam James <sam@gentoo.org>
    ---
    profiles/targets/desktop/make.defaults | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/profiles/targets/desktop/make.defaults b/profiles/targets/desktop/make.defaults
    index 46a8c5d3911e8..caccdbdd22a3e 100644
    --- a/profiles/targets/desktop/make.defaults
    +++ b/profiles/targets/desktop/make.defaults
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2022 Gentoo Authors
    +# Copyright 1999-2023 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    -USE="a52 aac acpi alsa bluetooth branding cairo cdda cdr cups dbus dri dts dvd dvdr elogind encode exif flac gif gpm gtk gui icu jpeg lcms libnotify mad mng mp3 mp4 mpeg ogg opengl pango pdf png policykit ppds qt5 sdl sound spell startup-notification
    svg tiff truetype vorbis udev udisks unicode upower usb wxwidgets X xcb xft x264 xml xv xvid"
    +USE="a52 aac acpi alsa bluetooth branding cairo cdda cdr cups dbus dri dts dvd dvdr elogind encode exif flac gif gpm gtk gui icu jpeg lcms libnotify mad mng mp3 mp4 mpeg og
  • From David Seifert@21:1/5 to Sam James on Mon May 22 10:30:01 2023
    On Sun, 2023-05-21 at 22:48 +0100, Sam James wrote:
    Ionen pointed this out again today and it made me look back at it;
    there's
    no reason to not have vulkan on by default for desktop profiles.

    In particular, Steam expects it for plenty of games to work, but at
    this point,
    it's becoming jarring for users to _not_ have it as it's considered a fundamental part
    of the modern desktop.

    Signed-off-by: Sam James <sam@gentoo.org>
    ---
     profiles/targets/desktop/make.defaults | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/profiles/targets/desktop/make.defaults b/profiles/targets/desktop/make.defaults
    index 46a8c5d3911e8..caccdbdd22a3e 100644
    --- a/profiles/targets/desktop/make.defaults
    +++ b/profiles/targets/desktop/make.defaults
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2022 Gentoo Authors
    +# Copyright 1999-2023 Gentoo Authors
     # Distributed under the terms of the GNU General Public License v2
     
    -USE="a52 aac acpi alsa bluetooth branding cairo cdda cdr cups dbus
    dri dts dvd dvdr elogind encode exif flac gif gpm gtk gui icu jpeg
    lcms libnotify mad mng mp3 mp4 mpeg ogg opengl pango pdf png policykit
    ppds qt5 sdl sound spell startup-notification svg tiff truetype vorbis
    udev udisks unicode upower usb wxwidgets X xcb xft x264 xml xv xvid" +USE="a52 aac acpi alsa bluetooth branding cairo cdda cdr cups dbus
    dri dts dvd dvdr elogind encode exif flac gif gpm gtk gui icu jpeg
    lcms libnotify mad mng mp3 mp4 mpeg ogg opengl pango pdf png policykit
    ppds qt5 sdl sound spell startup-notification svg tiff truetype vorbis
    udev udisks unicode upower usb vulkan wxwidgets X xcb xft x264 xml xv
    xvid"

    Agreed, vulkan is absolutely needed on a modern desktop.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ulrich Mueller@21:1/5 to All on Mon May 22 10:20:02 2023
    On Sun, 21 May 2023, Sam James wrote:

    Ionen pointed this out again today and it made me look back at it;
    there's no reason to not have vulkan on by default for desktop
    profiles.

    That's a non-sequitur. No reason to not have it on doesn't imply that
    there is a reason to have it on.

    Also, shouldn't we avoid enabling local flags in profiles?

    In particular, Steam expects it for plenty of games to work,

    That's what USE dependencies are for.

    Ulrich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ionen Wolkens@21:1/5 to Ulrich Mueller on Mon May 22 11:40:01 2023
    On Mon, May 22, 2023 at 10:13:59AM +0200, Ulrich Mueller wrote:
    On Sun, 21 May 2023, Sam James wrote:

    Ionen pointed this out again today and it made me look back at it;
    there's no reason to not have vulkan on by default for desktop
    profiles.

    That's a non-sequitur. No reason to not have it on doesn't imply that
    there is a reason to have it on.

    Also, shouldn't we avoid enabling local flags in profiles?

    I keep forgetting that this is still not global either, guess it'll
    ideally need another step first.


    In particular, Steam expects it for plenty of games to work,

    That's what USE dependencies are for.

    For often-used USE, that doesn't mean that every users should have to
    enable it manually when they try to emerge the package. It would
    notably be annoying if, e.g. opengl wasn't default either (if opengl
    can be a default, I don't see why vulkan can't be in 2023).

    I see this as a sane desktop default much like having png, jpeg, etc..
    enabled.

    Steam, games, and similar applications also come from several sources
    not necessarily managed by portage all while expecting typical GPU
    features (and png/jpeg support!) to work without having to dig in
    USE flags on a desktop profile more than necessary. It's a better out-of-the-box user experience.

    Vulkan dependencies are also fairly trivial, typically it's just about
    pulling vulkan-loader, headers, and glslang plus having support on mesa
    or nvidia-drivers (always enabled regardless for the latter).
    --
    ionen

    -----BEGIN PGP SIGNATURE-----

    iQEzBAABCAAdFiEEx3SLh1HBoPy/yLVYskQGsLCsQzQFAmRrN5cACgkQskQGsLCs QzQ96wf+Mr79g4ITvhtXX5TGcH4NqgyisN50F24/DGupTUtmeOLvjRirhbHPT4w6 lEzxK9R3dCyIxYsfJbI+nHymiIV7Dy7dvcxMVU/xoerWX2BPsScdag3XnDFVQGoK ZVMIvs7FUAnvhtMhFNoPVESGKgTkOka1k3b3d/t1wrkzjeQuxxCh2BeMRl5m+3+s FTpmtREzuyA7HCl2n4XYNNhk8TtNdtYELvX8XfU28NuaMmi3rtdz/36qKrG0RC4B SiLmPCCPvI69FGOc+KUwzFgY/ukED0kuNrsyoApmudNR1DtiuB/YrqVOjoeInEy8 1Qc1y+aOUUB6RyLXXpz8kDUfr/82vQ==
    =Uv4W
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Sturmlechner@21:1/5 to All on Mon May 22 12:46:53 2023
    Copy: ulm@gentoo.org (Ulrich Mueller)

    On Montag, 22. Mai 2023 12:36:22 CEST Ulrich Mueller wrote:

    app-office/libreoffice:vulkan - Enable Vulkan usage via the skia library (clang recommended)

    Should it be renamed to "skia" for libreoffice, because that's also the
    name of the upstream flag? libreoffice will also output a warning with USE="vulkan -clang".

    That would not be accurate. The (bundled) skia is always being built, it is just the component using vulkan. That detail does not need to be part of the description though, so a global would fit.

    Regards,
    Andreas
    -----BEGIN PGP SIGNATURE-----

    iQITBAABCgB9FiEEZD8Ftg7kXelMA262xdaC3679iIgFAmRrSB1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDY0 M0YwNUI2MEVFNDVERTk0QzAzNkVCNkM1RDY4MkRGQUVGRDg4ODgACgkQxdaC3679 iIgmCwv/SBF708bC0U/jCFgQ4G3HKuHrEPnauLSuFP5cJf86vdZEcoeLwSbR68Iw oq1KAIz2Xu+bAimMIzF0oGjupvQERBWzZWfXRJVJ1qMa5+M8hzhEYNEomYXXL4P5 rcGPjZuKbytjZ5qqPWuP+16VV2EHxLSSx4ZeNCDs6zMlCC/TLH7iaoNvpr77Hs+P 52RFTVofsPE9rHkNX5bgjrqtKaCcwf5NbMA4EsGoSK84dLGTr09zmcFBO8ZYkTXK nKcTz6hNs/FXaxKH/OleN3koZ4K1XRuy9K1OJn4C7d7r3ErbOGfcK+tbraAwDZC4 0rz15I7fl9B0d8r1CjGnice/M5/DAh1FnMATFRIdZBmskkQ6v27bdHFV8Otzz7bf 42b4XGZttMdPOl0tzqi1gqq7+/MDRp7ewdI7hxHlAnDrZDZ1VHEWC4Nwp7GJPYzR 9UgdiTQA10gcsUo9mjJ4cr3fESEKzkAvEYYAxJ8uvOvna3LFNMvJ1HbxvdXYAg28
    +92vD0tf
    =p6OC
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ulrich Mueller@21:1/5 to All on Mon May 22 12:40:01 2023
    On Mon, 22 May 2023, Ionen Wolkens wrote:

    That's a non-sequitur. No reason to not have it on doesn't imply that
    there is a reason to have it on.

    Also, shouldn't we avoid enabling local flags in profiles?

    I keep forgetting that this is still not global either, guess it'll
    ideally need another step first.

    I see vulkan 31 times in use.local.desc, with slightly different
    descriptions. Most notable difference:

    app-office/libreoffice:vulkan - Enable Vulkan usage via the skia library (clang recommended)

    Should it be renamed to "skia" for libreoffice, because that's also the
    name of the upstream flag? libreoffice will also output a warning with USE="vulkan -clang".

    For often-used USE, that doesn't mean that every users should have to
    enable it manually when they try to emerge the package. It would
    notably be annoying if, e.g. opengl wasn't default either (if opengl
    can be a default, I don't see why vulkan can't be in 2023).

    I see this as a sane desktop default much like having png, jpeg, etc.. enabled.

    Right, this is a valid reason for enabling it.

    Steam, games, and similar applications also come from several sources
    not necessarily managed by portage all while expecting typical GPU
    features (and png/jpeg support!) to work without having to dig in
    USE flags on a desktop profile more than necessary. It's a better out-of-the-box user experience.

    IMHO this isn't. It is at least debatable if unpackaged proprietary
    software should have any influence on our default settings.

    Ulrich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ulrich Mueller@21:1/5 to All on Mon May 22 14:50:01 2023
    On Mon, 22 May 2023, Andreas Sturmlechner wrote:

    Should it be renamed to "skia" for libreoffice, because that's also the
    name of the upstream flag? libreoffice will also output a warning with
    USE="vulkan -clang".

    That would not be accurate. The (bundled) skia is always being built,
    it is just the component using vulkan. That detail does not need to be
    part of the description though, so a global would fit.

    Why is it "$(use_enable vulkan skia)" in econf arguments then?

    configure --help says:

    --disable-skia Disable building Skia. Use --enable-skia=debug to
    build without optimizations.

    Ulrich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From orbea@21:1/5 to Sam James on Mon May 22 15:00:01 2023
    On Sun, 21 May 2023 22:48:50 +0100
    Sam James <sam@gentoo.org> wrote:

    Ionen pointed this out again today and it made me look back at it;
    there's no reason to not have vulkan on by default for desktop
    profiles.

    Its not supported in nouveau yet.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ionen Wolkens@21:1/5 to orbea on Mon May 22 17:00:01 2023
    On Mon, May 22, 2023 at 05:54:05AM -0700, orbea wrote:
    On Sun, 21 May 2023 22:48:50 +0100
    Sam James <sam@gentoo.org> wrote:

    Ionen pointed this out again today and it made me look back at it;
    there's no reason to not have vulkan on by default for desktop
    profiles.

    Its not supported in nouveau yet.

    Older cards won't support it either (e.g. my 560ti doesn't), that's
    not really a problem as far as enabling it and being usable for most
    people goes. At most it's just a few not-useful dependencies by default
    like having libwayland when you use Xorg.
    --
    ionen

    -----BEGIN PGP SIGNATURE-----

    iQEzBAABCAAdFiEEx3SLh1HBoPy/yLVYskQGsLCsQzQFAmRrgVwACgkQskQGsLCs QzSUvAf/cxC7LPxfiuwsEK3LY4JGFXq7afLLhN6nD28IsIFrznzHU09UBZaVKARx oC0TON3tVgso83CQIz1ItrV01uocatp/69BGaMRMCw0JRE6Qy75xdlL6o1HVrABb a9aWnh1VF0BMcZsJpJg11R1wbpXyZw0uxmbxK1FobcNLpT8Udv5ybD8hKavRTD13 bqRa7lRMS4oIQHVtYGvOKrqzcUjT8QPm7NiLZQSvnO1NNNvVZ41gZGe3LUbIfR5r ZLV4yZyctRfK84PJw4k6E9uDFYwMXRW7mucBmrGq3YteD/hPXDnsX9PaQnVKs8qF rnzsoa0Qpls/RnPHDdoIxoXt5UwDAg==
    =1HJS
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)