From 83e03ac9d83241c05e0c88b3387ad23c15d05c48 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 5 Apr 2020 06:27:14 +0100 Subject: [PATCH] [d3d9] Make COPM render state unlikely This is only ever called once per game and we don't support it anyway --- src/d3d9/d3d9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 1ad3559a2..afd6b13f2 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -1726,7 +1726,7 @@ namespace dxvk { return D3D_OK; } - if (Value == uint32_t(D3D9Format::COPM)) { + if (unlikely(Value == uint32_t(D3D9Format::COPM))) { // UE3 calls this MinimalNVIDIADriverShaderOptimization Logger::info("D3D9DeviceEx::SetRenderState: MinimalNVIDIADriverShaderOptimization is unsupported"); return D3D_OK;