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:
parent
7a693ed41a
commit
69437c2fea
@ -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);
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user