mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxvk] Include chunk status in statistics
This commit is contained in:
parent
3cb2be22fc
commit
025186dba8
2 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue