mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 08:15:37 +00:00
Enable Gallium VAAPI driver on VAAPI 1.x
This commit is contained in:
parent
b5f8e6738a
commit
955da6be30
@ -232,12 +232,12 @@ VAAPIRenderer::initialize(PDECODER_PARAMETERS params)
|
|||||||
"Driver: %s",
|
"Driver: %s",
|
||||||
vendorString ? vendorString : "<unknown>");
|
vendorString ? vendorString : "<unknown>");
|
||||||
|
|
||||||
// AMD's Gallium VAAPI driver has a nasty memory leak that causes memory
|
// Older versions of the Gallium VAAPI driver have a nasty memory leak that
|
||||||
// to be leaked for each submitted frame. The Flatpak runtime has a VDPAU
|
// causes memory to be leaked for each submitted frame. I believe this is
|
||||||
// driver in place that works well, so use that instead on AMD systems. If
|
// resolved in the libva2 drivers (VAAPI 1.x).
|
||||||
// we're using Wayland, we have no choice but to use VAAPI because VDPAU
|
// If we're using Wayland, we have no choice but to use VAAPI because VDPAU
|
||||||
// is only supported under X11 or XWayland.
|
// is only supported under X11 or XWayland.
|
||||||
if (qgetenv("FORCE_VAAPI") != "1" && !WMUtils::isRunningWayland()) {
|
if (major == 0 && qgetenv("FORCE_VAAPI") != "1" && !WMUtils::isRunningWayland()) {
|
||||||
if (vendorStr.contains("AMD", Qt::CaseInsensitive) ||
|
if (vendorStr.contains("AMD", Qt::CaseInsensitive) ||
|
||||||
vendorStr.contains("Radeon", Qt::CaseInsensitive)) {
|
vendorStr.contains("Radeon", Qt::CaseInsensitive)) {
|
||||||
// Fail and let VDPAU pick this up
|
// Fail and let VDPAU pick this up
|
||||||
|
Loading…
x
Reference in New Issue
Block a user