mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 17:58:43 +00:00
Revert "Prefer nvidia-vaapi-driver over VDPAU for AV1"
libvdpau 1.5 has supported this for a while and we'll fall
back to VAAPI if VDPAU doesn't work.
This reverts commit 42960b7bf1
.
This commit is contained in:
parent
c8182dfab3
commit
0261c41574
1 changed files with 2 additions and 3 deletions
|
@ -214,10 +214,9 @@ VAAPIRenderer::initialize(PDECODER_PARAMETERS params)
|
||||||
status = tryVaInitialize(vaDeviceContext, params, &major, &minor);
|
status = tryVaInitialize(vaDeviceContext, params, &major, &minor);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != VA_STATUS_SUCCESS && (m_WindowSystem != SDL_SYSWM_X11 || m_DecoderSelectionPass > 0 || (m_VideoFormat & VIDEO_FORMAT_MASK_AV1))) {
|
if (status != VA_STATUS_SUCCESS && (m_WindowSystem != SDL_SYSWM_X11 || m_DecoderSelectionPass > 0)) {
|
||||||
// The unofficial nvidia VAAPI driver over NVDEC/CUDA works well on Wayland,
|
// The unofficial nvidia VAAPI driver over NVDEC/CUDA works well on Wayland,
|
||||||
// but we'd rather use CUDA for XWayland and VDPAU for regular X11 and H.264/HEVC.
|
// but we'd rather use CUDA for XWayland and VDPAU for regular X11.
|
||||||
// We will prefer VAAPI for AV1 because older libvdpau versions don't support it.
|
|
||||||
qputenv("LIBVA_DRIVER_NAME", "nvidia");
|
qputenv("LIBVA_DRIVER_NAME", "nvidia");
|
||||||
status = tryVaInitialize(vaDeviceContext, params, &major, &minor);
|
status = tryVaInitialize(vaDeviceContext, params, &major, &minor);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue