1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Check render pass before pipeline state during pipeline lookup

Checking one pointer is a bit cheaper than comparing a 1600 byte struct.
This commit is contained in:
Philip Rebohle 2019-07-30 16:19:16 +02:00
parent c020ffc31e
commit 23379b6b9c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -171,8 +171,8 @@ namespace dxvk {
bool isCompatible( bool isCompatible(
const DxvkGraphicsPipelineStateInfo& state, const DxvkGraphicsPipelineStateInfo& state,
const DxvkRenderPass* rp) { const DxvkRenderPass* rp) {
return m_stateVector == state return m_renderPass == rp
&& m_renderPass == rp; && m_stateVector == state;
} }
/** /**