From c80fc0fbb7560d1b06846ccb3ea47b94daa4eefd Mon Sep 17 00:00:00 2001 From: goodusername123 <61405538+goodusername123@users.noreply.github.com> Date: Mon, 11 Dec 2023 03:29:31 -0600 Subject: [PATCH] [G6 only] backport fix for bug 1838781 Fixes `gfx.webrender.super-resolution.nvidia` not working properly. https://phabricator.services.mozilla.com/D182609 --- gfx/webrender_bindings/DCLayerTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/webrender_bindings/DCLayerTree.cpp b/gfx/webrender_bindings/DCLayerTree.cpp index 0ededcb0429c6..fa66f230ef024 100644 --- a/gfx/webrender_bindings/DCLayerTree.cpp +++ b/gfx/webrender_bindings/DCLayerTree.cpp @@ -1367,7 +1367,7 @@ static void SetNvidiaVideoSuperRes(ID3D11VideoContext* videoContext, UINT method; UINT enable; } streamExtensionInfo = {nvExtensionVersion, nvExtensionMethodSuperResolution, - enabled ? 0 : 1u}; + enabled ? 1u : 0}; HRESULT hr; hr = videoContext->VideoProcessorSetStreamExtension(