libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.08k stars 1.81k forks source link

[Linux]Garbled video output when running under wayland. #13270

Open Inu90 opened 2 years ago

Inu90 commented 2 years ago

Description

Running retroarch under wayland and vulkan drivers gives out https://files.catbox.moe/dc6paw.png Came from X a couple weeks ago where it was running with no issues. No other program is having any similar behavior, any video source, any other game (native or otherwise) is working as intended.

Expected behavior

Non garbled video output.

Actual behavior

As the picture shows.

Steps to reproduce the bug

  1. Launch retroarch

Bisect Results

Like I said, only when running under wayland, with a small extra thing to notice: I'm currently running on an Asus FX505DY (Vega 8 IGPU+Radeon RX560M DGPU). If I launch it on the vega it works, but the performance suffers a bit for anything above PS1 with some filters.

Version/Commit

retroarch -v
[INFO] [Config]: Loading default config.
[INFO] [Config]: Looking for config in: "/home/cfsa/.config/retroarch/retroarch.cfg".
[INFO] RetroArch 1.9.13 (Git fca72f67d1)

Environment information

i30817 commented 2 years ago

A year ago, when i hadn't updated ubuntu and it didn't famously 'downgrade' Wayland from the default, i had to build retroarch myself to get the 'real' wayland version of retroarch running, because it was running in XWayland.

Depending of what you're installing, it would not surprise me at all if this was the case for you. I don't think RA supports 'wayland and x11' at the same time, though i could be wrong.

You can check with 'xeyes' which is a dumb program that shows some 'eyes' looking at the cursor. If the 'eyes' move on top of a program in wayland, it's running XWayland (because the wayland protocol made the cursor position on programs other than the current 'privileged information' to other applications, among other things).

edit: also my excuses, i didn't open your screenshot before writing this. That's some nasty corruption right there.

Inu90 commented 2 years ago

Checking with xeyes it doesn't seem to be running XWayland. On the other hand, I noticed something. It was basically the only time time I had ever run it windowed and with a mouse instead of XMB+controller and the mouse cursor changes to the default theme (adwaita) instead of keeping my current one.

Augusto7743 commented 2 years ago

Try disable all anti anliasing and vertical synz settings in your video card

Inu90 commented 2 years ago

Try disable all anti anliasing and vertical synz settings in your video card

Isn't that basically impossible under wayland?

gouchi commented 2 years ago

@Inu90 Do you reproduce the issue with glcore video driver ?

Thank you.

Inu90 commented 2 years ago

@gouchi glcore works correctly, tested menu and in-game. Should I post any logs?

gouchi commented 2 years ago

I made a quick test and I can't reproduce the issue on Wayland using Sway with Intel HD.

snes

n64

LibretroAdmin commented 2 years ago

@Inu90 Please retest against latest nightly version/master

gouchi commented 11 months ago

@Inu90 Is it still an issue ?

gouchi commented 1 month ago

@Inu90 Is it still an issue or can we close this issue ? Thank you.