streetpea / chiaki-ng

Next-Generation of Chiaki (the open-source remote play client for PlayStation)
https://streetpea.github.io/chiaki-ng/
GNU Affero General Public License v3.0
1.05k stars 66 forks source link

Vulkan HW decoder doesn't work on Flatpak due to MESA Radv driver bug #359

Closed streetpea closed 1 month ago

streetpea commented 3 months ago

Describe the bug A bunch of colors show up instead of the stream when using hw decoder or flatpak. This appears to be a bug with the June 10th update of org.freedesktop.Platform.GL.default/x86_64/23.08-extra

To Reproduce Launch flatpak using vulkan hw decoder or auto hw decoder option with the flatpak and see lots of colors instead of a stream

Expected behavior See the stream

Alternatives Use vaapi hw decoder

Resolution Either don’t use Vulkan as hw decoder (switch to auto with latest flatpak or vaapi) or Downgrade to previous version of GL ... System version

sudo flatpak update --commit=2a1f67b928d981dcc265f90c943cbbecd6ec70ab9a75dcfd24d69b91b2848e1b org.freedesktop.Platform.GL.default/x86_64/23.08-extra

User version (if installed)

flatpak update --user  --commit=2a1f67b928d981dcc265f90c943cbbecd6ec70ab9a75dcfd24d69b91b2848e1b org.freedesktop.Platform.GL.default/x86_64/23.08-extra

also if you don't want to be prompted for the upgrade you can mask with

sudo flatpak mask org.freedesktop.Platform.GL.default/x86_64/23.08-extra

And for the user version

flatpak mask --user org.freedesktop.Platform.GL.default/x86_64/23.08-extra

Note: You can always unmask at any time with flatpak unmask for example

flatpak unmask --user org.freedesktop.Platform.GL.default/x86_64/23.08-extra
streetpea commented 3 months ago

@Tonyb681 run the command above starting with sudo flatpak in my comment in the konsole.

streetpea commented 3 months ago

@Tonyb681 it’s possible you have the user version installed and that would override the system version (so in essence the package you are actually using isn’t being downgraded). Please run the same command but with user so

flatpak update --user  --commit=2a1f67b928d981dcc265f90c943cbbecd6ec70ab9a75dcfd24d69b91b2848e1b org.freedesktop.Platform.GL.default/x86_64/23.08-extra
streetpea commented 3 months ago

@Tonyb681 also if you don't want to be prompted for the upgrade you can mask with

sudo flatpak mask org.freedesktop.Platform.GL.default/x86_64/23.08-extra

And for the user version

flatpak mask --user org.freedesktop.Platform.GL.default/x86_64/23.08-extra

You can always unmask at any time with flatpak unmask for example

flatpak unmask --user org.freedesktop.Platform.GL.default/x86_64/23.08-extra
streetpea commented 3 months ago

Auto updated to use vaapi on flatpak. Now if you set hw decoder to Auto and update your flatpaks you won’t be using Vulkan so won’t hit the bug.

streetpea commented 3 months ago

Pr fixing mesa (graphics card driver) bug: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29688

streetpea commented 2 months ago

Fix was released with mesa version 24.1.2 https://docs.mesa3d.org/relnotes/24.1.2.html. Now that the graphics driver is updated, we're just waiting for the flatpak platform.gl-default to pull in the newer mesa (graphics driver) version

streetpea commented 1 month ago

Fix is now live in the latest flatpak version of org.freedesktop.Platform.GL.default/x86_64/23.08-extra