Coalesce unbound sparse bindings on D3D12

This commit is contained in:
baldurk
2023-09-21 15:47:25 +01:00
parent 81cbd7f404
commit d78565df33
+2 -1
View File
@@ -459,7 +459,8 @@ SparseBinds::SparseBinds(const Sparse::PageTable &table)
// do simple coalescing. If the previous bind was in the same heap, one tile back, make it
// cover this tile
if(page > 0 && binds.back().heap == bind.heap &&
binds.back().rangeOffset + binds.back().rangeCount == bind.rangeOffset)
(binds.back().rangeOffset + binds.back().rangeCount == bind.rangeOffset ||
binds.back().heap == ResourceId()))
{
binds.back().regionSize.NumTiles++;
binds.back().regionSize.Width++;