mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxvk] Include chunk status in statistics
This commit is contained in:
parent
7a693ed41a
commit
69437c2fea
@ -1603,6 +1603,7 @@ namespace dxvk {
|
|||||||
chunkStats.pageMaskOffset = stats.pageMasks.size();
|
chunkStats.pageMaskOffset = stats.pageMasks.size();
|
||||||
chunkStats.pageCount = pool.pageAllocator.pageCount(i);
|
chunkStats.pageCount = pool.pageAllocator.pageCount(i);
|
||||||
chunkStats.mapped = &pool == &type.mappedPool;
|
chunkStats.mapped = &pool == &type.mappedPool;
|
||||||
|
chunkStats.active = pool.pageAllocator.chunkIsAvailable(i);
|
||||||
|
|
||||||
size_t maskCount = (chunkStats.pageCount + 31u) / 32u;
|
size_t maskCount = (chunkStats.pageCount + 31u) / 32u;
|
||||||
stats.pageMasks.resize(chunkStats.pageMaskOffset + maskCount);
|
stats.pageMasks.resize(chunkStats.pageMaskOffset + maskCount);
|
||||||
|
@ -196,6 +196,8 @@ namespace dxvk {
|
|||||||
uint16_t pageCount = 0u;
|
uint16_t pageCount = 0u;
|
||||||
/// Whether this chunk is mapped
|
/// Whether this chunk is mapped
|
||||||
bool mapped = false;
|
bool mapped = false;
|
||||||
|
/// Whether this chunk is active
|
||||||
|
bool active = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user