[Linux]Garbled video output when running under wayland.
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 14.1k
- Forks
- 2.2k
- Avg merge
- 7h 35m
- Merged PRs (30d)
- 51
Description
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
- 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
- OS: Arch, up to date.
Edit: Here's the rest of the -v output
[INFO] === Build =======================================
[INFO] CPU Model Name: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES AVX AVX2
[INFO] Built: Nov 13 2021
[INFO] Version: 1.9.13
[INFO] Git: fca72f67d1
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Video @ fullscreen
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[INFO] [Vulkan]: Found vulkan context: vk_wayland
[INFO] [Vulkan]: Detecting screen resolution 0x0.
[INFO] [Vulkan]: Found GPU at index 0: AMD RADV RAVEN
[INFO] [Vulkan]: Found GPU at index 1: AMD RADV POLARIS11
[INFO] [Vulkan]: Using GPU index 1.
[INFO] [Vulkan]: Using fences for WSI acquire.
[INFO] [Vulkan]: Using GPU: AMD RADV POLARIS11
[INFO] [Vulkan]: Queue family 0 supports 1 sub-queues.
[INFO] [Vulkan]: Using resolution 1920x1080
[INFO] [Vulkan]: Using RGB565 format.
[INFO] [Vulkan]: Loading stock shader.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Wayland]: Enabling idle inhibitor
[INFO] [Video]: Found display server: null
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [Display]: Found display driver: "vulkan".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[WARN] [XMB] Asset missing: /usr/share/retroarch/assets/xmb/systematic/png/disc.png
[INFO] [SRAM]: SRAM will not be saved.
[INFO] [Playlist]: Loading history file: [/home/cfsa/.config/retroarch/content_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/cfsa/.config/retroarch/content_music_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/cfsa/.config/retroarch/content_video_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/cfsa/.config/retroarch/content_image_history.lpl].
[INFO] [Playlist]: Loading favorites file: [/home/cfsa/.config/retroarch/content_favorites.lpl].
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Config]: Saved new config to "/home/cfsa/.config/retroarch/retroarch.cfg".
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [PulseAudio]: Pausing.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce RetroArch 1.9.13 under Wayland with the Vulkan driver, using the provided verbose output and comparing the Vega 8 and Radeon RX560M GPUs; done means fullscreen video is no longer garbled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100