Created attachment 892023 [details] gles2 use flag enabled If media-libs/libsdl2 is compiled without the gles2 use flag, hardware acceleration with vaapi (not sure about other video cards) fails silently in moonlight-5.0.1-r2 (no errors show in log). The ebuild should perhaps enforce this use flag be enabled, or at least issue a warning if it isn't. Tested on TigerLake (gen12) and Kaby Lake Logs with and without the use flag enabled attached for reference.
Created attachment 892024 [details] gles2 use flag disabled
Just to clarify: by "fails silently", I mean that the window displays a black screen. There is no crash or error message. Software encoding works fine.
Created attachment 892031 [details] emerge --info
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=accc934d4381a9edb46143786ec6d3b7653755b7 commit accc934d4381a9edb46143786ec6d3b7653755b7 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2024-05-04 21:19:50 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2024-05-04 21:20:20 +0000 net-misc/moonlight: Require libsdl2[gles2] It's needed for hardware acceleration. Closes: https://bugs.gentoo.org/930987 Signed-off-by: James Le Cuirot <chewi@gentoo.org> .../{moonlight-5.0.1-r2.ebuild => moonlight-5.0.1-r3.ebuild} | 4 ++-- net-misc/moonlight/moonlight-9999.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Thanks! I was able to verify this from the code.