Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

Indication for flatpak Mesa & VKD3D incompatible versions

Open martinmolin opened this issue 1 year ago • 8 comments

Problem

After installing Battle.net through the provided Installers, World of Warcraft could only run with DXVK and not VKD3D for DX12 when using an AMD GPU that use Mesa. Works with Nvidia in at least one case.

This can be a hard problem to solve if you are not aware that flatpak provide Mesa.

Issue

The newer versions of VKD3D (selected by default by Bottles) requires a newer Mesa than provided by flatpak.

Possible solution

Is it possible to perhaps indicate a version mismatch of Mesa & VKD3D or why it failed to use it when starting an application or somehow make the user aware that this could be the problem?

martinmolin avatar Jul 19 '22 18:07 martinmolin

Alternatively, we could make it build a newer version of Mesa. We could use LPub3D as a reference.

https://github.com/flathub/io.github.trevorsandy.LPub3D/blob/699e84aa4441989ef8fea31e35b9114879fd49c3/io.github.trevorsandy.LPub3D.json#L49-L80

@mirkobrombin what do you think?

TheEvilSkeleton avatar Jul 24 '22 04:07 TheEvilSkeleton

Alternatively, we could make it build a newer version of Mesa. We could use LPub3D as a reference.

https://github.com/flathub/io.github.trevorsandy.LPub3D/blob/699e84aa4441989ef8fea31e35b9114879fd49c3/io.github.trevorsandy.LPub3D.json#L49-L80

@mirkobrombin what do you think?

I agree with this solution

mirkobrombin avatar Jul 24 '22 06:07 mirkobrombin

Would something like this work?

  - name: mesa
    buildsystem: meson
    config-opts:
      - '-Dosmesa=classic'
      - '-Ddri-drivers=[]'
      - '-Dgallium-drivers=[]'
      - '-Dvulkan-drivers=[]'
      - '-Dplatforms=[]'
    build-options:
      arch:
        aarch64:
          config-opts:
            - '-Dlibunwind=disabled'
    cleanup:
      - /share/drirc.d
      - /include
      - '*.a'
    sources:
      - type: archive
        url: https://archive.mesa3d.org/mesa-22.1.4.tar.xz
        sha256: 670d8cbe8b72902a45ea2da68a9da4dc4a5d99c5953a926177adbce1b1640b76

I'm unfamiliar with mesa.

TheEvilSkeleton avatar Jul 26 '22 16:07 TheEvilSkeleton

Should be correct but I'm unfamiliar too

mirkobrombin avatar Jul 26 '22 18:07 mirkobrombin

I asked in the Flatpak Matrix a couple of days ago, but they suggested to wait for the runtime to come out.

I think this is really inconvenient for our use case as we should always ship the latest versions of mesa. I opened issue #1462 on fd.o GitLab to see if we can do something about it.

TheEvilSkeleton avatar Aug 06 '22 11:08 TheEvilSkeleton

I have the same issue - none of my games can run in dx12 but they work completely fine in dx11

p0ryae avatar Aug 17 '22 21:08 p0ryae

I asked in the Flatpak Matrix a couple of days ago, but they suggested to wait for the runtime to come out.

I think this is really inconvenient for our use case as we should always ship the latest versions of mesa. I opened issue #1462 on fd.o GitLab to see if we can do something about it.

According to this, I think we should just wait for it. We should consider to add drivers version on the health check, so the user can be aware of the differences between host and flatpak.

mirkobrombin avatar Aug 17 '22 22:08 mirkobrombin

Was there any progress with adding the drivers version to the health check? I think new freedesktop-sdk version just dropped few days ago, because I had many updates on flatpak for it.

Qronikarz avatar Sep 03 '22 13:09 Qronikarz

Good news! GNOME 43 runtime just came out, so we're currently working on upgrading it.

TheEvilSkeleton avatar Sep 23 '22 16:09 TheEvilSkeleton