From 22bebb6bbc33dd6092c097b532d2358ab928a5ea Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 22 Dec 2020 18:57:45 -0600 Subject: [PATCH] Maxwell 2 doesn't support 8K HEVC encoding --- app/streaming/session.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 035c2d60..e294a2c7 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -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; }