1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 01:24:11 +01:00

[dxvk] Don't override tracked write with a read

Fixes a regression in Control.
This commit is contained in:
Philip Rebohle 2024-10-30 03:39:07 +01:00
parent 201e1628b0
commit 10fac66007

View File

@ -545,7 +545,7 @@ namespace dxvk {
*/ */
void trackId(uint64_t trackingId, DxvkAccess access) { void trackId(uint64_t trackingId, DxvkAccess access) {
// Encode write access in the least significant bit // Encode write access in the least significant bit
m_trackId = (trackingId << 1u) + uint64_t(access == DxvkAccess::Write); m_trackId = std::max(m_trackId, (trackingId << 1u) + uint64_t(access == DxvkAccess::Write));
} }
/** /**