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:
parent
c020ffc31e
commit
23379b6b9c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user