Fix use of range 0 offset instead of current range. Closes #2207

This commit is contained in:
baldurk
2021-03-26 13:08:50 +00:00
parent 72095ff35c
commit 74d985569c
@@ -144,7 +144,7 @@ void STDMETHODCALLTYPE WrappedID3D12CommandQueue::UpdateTileMappings(
regionSize.Depth =
(uint16_t)RDCCLAMP(1U, (uint32_t)regionSize.Depth, pageTable.getResourceSize().z);
UINT rangeBaseOffset = RANGE_OFFSET(0);
UINT rangeBaseOffset = RANGE_OFFSET(curRange);
UINT rangeSize = RANGE_SIZE(curRange);
D3D12_TILE_RANGE_FLAGS rangeFlags = RANGE_FLAGS(curRange);