Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930987 - net-misc/moonlight-5.0.1-r2: hardware acceleration with vaapi requires media-libs/libsdl2 to be compiled with gles2 use flag enabled.
Summary: net-misc/moonlight-5.0.1-r2: hardware acceleration with vaapi requires media-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-30 19:40 UTC by me@kylemanke.com
Modified: 2024-05-04 21:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gles2 use flag enabled (moonlight.log,406.88 KB, text/x-log)
2024-04-30 19:40 UTC, me@kylemanke.com
Details
gles2 use flag disabled (moonlight_no_gles2.log,90.56 KB, text/x-log)
2024-04-30 19:40 UTC, me@kylemanke.com
Details
emerge --info (emerge.info,6.73 KB, text/plain)
2024-04-30 19:55 UTC, me@kylemanke.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description me@kylemanke.com 2024-04-30 19:40:13 UTC
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.
Comment 1 me@kylemanke.com 2024-04-30 19:40:47 UTC
Created attachment 892024 [details]
gles2 use flag disabled
Comment 2 me@kylemanke.com 2024-04-30 19:45:55 UTC
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.
Comment 3 me@kylemanke.com 2024-04-30 19:55:22 UTC
Created attachment 892031 [details]
emerge --info
Comment 4 Larry the Git Cow gentoo-dev 2024-05-04 21:20:39 UTC
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(-)
Comment 5 James Le Cuirot gentoo-dev 2024-05-04 21:21:14 UTC
Thanks! I was able to verify this from the code.