mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
[d3d9] Optimize DS active hazard check
There can only be one DS, so no need to loop over.
This commit is contained in:
parent
b3cbe36c08
commit
3625c5d481
@ -5624,9 +5624,9 @@ namespace dxvk {
|
||||
}
|
||||
}
|
||||
|
||||
for (uint32_t samplerIdx : bit::BitMask(m_activeHazardsDS)) {
|
||||
if (m_activeHazardsDS != 0) {
|
||||
// Guaranteed to not be nullptr...
|
||||
auto tex = GetCommonTexture(m_state.textures[samplerIdx]);
|
||||
auto tex = m_state.depthStencil->GetCommonTexture();
|
||||
if (unlikely(!tex->MarkHazardous())) {
|
||||
TransitionImage(tex, m_hazardLayout);
|
||||
m_flags.set(D3D9DeviceFlag::DirtyFramebuffer);
|
||||
|
Loading…
Reference in New Issue
Block a user