Maxwell 2 doesn't support 8K HEVC encoding

This commit is contained in:
Cameron Gutman
2020-12-22 18:57:45 -06:00
parent c3f9742bb6
commit 22bebb6bbc

View File

@@ -683,7 +683,9 @@ bool Session::validateLaunch(SDL_Window* testWindow)
// NVENC will fail to initialize when using dimensions over 4096 and H.264.
if (m_StreamConfig.width > 4096 || m_StreamConfig.height > 4096) {
if (m_Computer->maxLumaPixelsHEVC == 0) {
// Pascal added support for 8K HEVC encoding support. Maxwell 2 could encode HEVC but only up to 4K.
// We can't directly identify Pascal, but we can look for HEVC Main10 which was added in the same generation.
if (m_Computer->maxLumaPixelsHEVC == 0 || !(m_Computer->serverCodecModeSupport & 0x200)) {
emit displayLaunchError(tr("Your host PC's GPU doesn't support streaming video resolutions over 4K."));
return false;
}