mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-15 05:42:28 +00:00
Allow the radeonsi VAAPI driver on XWayland
This commit is contained in:
parent
7283bb046b
commit
c41cbbd2da
1 changed files with 2 additions and 2 deletions
|
@ -293,8 +293,8 @@ VAAPIRenderer::initialize(PDECODER_PARAMETERS params)
|
|||
// to be leaked for each submitted frame. The Flatpak runtime has a VDPAU
|
||||
// driver in place that works well, so use that instead on AMD systems. If
|
||||
// we're using Wayland, we have no choice but to use VAAPI because VDPAU
|
||||
// is only supported under X11.
|
||||
if (vendorString && qgetenv("FORCE_VAAPI") != "1" && m_WindowSystem == SDL_SYSWM_X11) {
|
||||
// is only supported under X11 or XWayland.
|
||||
if (vendorString && qgetenv("FORCE_VAAPI") != "1" && !WMUtils::isRunningWayland()) {
|
||||
QString vendorStr(vendorString);
|
||||
if (vendorStr.contains("AMD", Qt::CaseInsensitive) ||
|
||||
vendorStr.contains("Radeon", Qt::CaseInsensitive)) {
|
||||
|
|
Loading…
Reference in a new issue