From 23379b6b9ce107c97edeb6a40876ae38a7c01f4c Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 30 Jul 2019 16:19:16 +0200 Subject: [PATCH] [dxvk] Check render pass before pipeline state during pipeline lookup Checking one pointer is a bit cheaper than comparing a 1600 byte struct. --- src/dxvk/dxvk_graphics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_graphics.h b/src/dxvk/dxvk_graphics.h index 8467fcd5c..168e9714a 100644 --- a/src/dxvk/dxvk_graphics.h +++ b/src/dxvk/dxvk_graphics.h @@ -171,8 +171,8 @@ namespace dxvk { bool isCompatible( const DxvkGraphicsPipelineStateInfo& state, const DxvkRenderPass* rp) { - return m_stateVector == state - && m_renderPass == rp; + return m_renderPass == rp + && m_stateVector == state; } /**