mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +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:
parent
c020ffc31e
commit
23379b6b9c
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user