1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Include chunk status in statistics

This commit is contained in:
Philip Rebohle 2024-10-18 15:39:48 +02:00 committed by Philip Rebohle
parent 7a693ed41a
commit 69437c2fea
2 changed files with 3 additions and 0 deletions

View File

@ -1603,6 +1603,7 @@ namespace dxvk {
chunkStats.pageMaskOffset = stats.pageMasks.size();
chunkStats.pageCount = pool.pageAllocator.pageCount(i);
chunkStats.mapped = &pool == &type.mappedPool;
chunkStats.active = pool.pageAllocator.chunkIsAvailable(i);
size_t maskCount = (chunkStats.pageCount + 31u) / 32u;
stats.pageMasks.resize(chunkStats.pageMaskOffset + maskCount);

View File

@ -196,6 +196,8 @@ namespace dxvk {
uint16_t pageCount = 0u;
/// Whether this chunk is mapped
bool mapped = false;
/// Whether this chunk is active
bool active = false;
};