Disable direct rendering of YUV444 using vaPutSurface()

It doesn't work as of libva 2.21 + iHD 24.2.5 despite the fact that
the VAEntrypointVideoProc advertises VA_RT_FORMAT_YUV444.
This commit is contained in:
Cameron Gutman 2024-09-15 21:03:00 -05:00
parent d1dffdc34c
commit b266f61ba6

View file

@ -548,6 +548,11 @@ VAAPIRenderer::isDirectRenderingSupported()
"Using indirect rendering for 10-bit video");
return false;
}
else if (m_VideoFormat & VIDEO_FORMAT_MASK_YUV444) {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Using indirect rendering for YUV 4:4:4 video");
return false;
}
AVHWDeviceContext* deviceContext = (AVHWDeviceContext*)m_HwContext->data;
AVVAAPIDeviceContext* vaDeviceContext = (AVVAAPIDeviceContext*)deviceContext->hwctx;