1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[dxvk] Revert buffer re-binding optimization

While this optimization can significantly reduce CPU overhead, this
breaks World of Warcraft for some reason. Fixes #1086.
This commit is contained in:
Philip Rebohle 2019-06-06 17:22:17 +02:00
parent 3de87b41a0
commit 3dbccb1b61

View File

@ -158,18 +158,12 @@ namespace dxvk {
void DxvkContext::bindResourceBuffer(
uint32_t slot,
const DxvkBufferSlice& buffer) {
if (!m_rc[slot].bufferSlice.matchesBuffer(buffer)) {
if (!m_rc[slot].bufferSlice.matches(buffer)) {
m_rc[slot].bufferSlice = buffer;
m_flags.set(
DxvkContextFlag::CpDirtyResources,
DxvkContextFlag::GpDirtyResources);
} else if (!m_rc[slot].bufferSlice.matchesRange(buffer)) {
m_rc[slot].bufferSlice = buffer;
m_flags.set(
DxvkContextFlag::CpDirtyDescriptorOffsets,
DxvkContextFlag::GpDirtyDescriptorOffsets);
}
}