summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-07-29 21:39:00 +0200
committerMarek Olšák <[email protected]>2016-08-06 13:56:14 +0200
commit9646ae77992f895b481984c9f8861cc64501a4eb (patch)
tree96b7725afb0b1619a5d38435785dd9b93a6f1bdb /src/gallium/drivers/radeon
parent1c8f17599efe76239bc1cffef5db42e67cf4c900 (diff)
gallium/radeon/winsyses: expose per-IB used_vram and used_gart to drivers
The following patches will use this. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r--src/gallium/drivers/radeon/radeon_winsys.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
index ba569367051..e6f5a89c07d 100644
--- a/src/gallium/drivers/radeon/radeon_winsys.h
+++ b/src/gallium/drivers/radeon/radeon_winsys.h
@@ -236,6 +236,11 @@ struct radeon_winsys_cs {
unsigned num_prev; /* Number of previous chunks. */
unsigned max_prev; /* Space in array pointed to by prev. */
unsigned prev_dw; /* Total number of dwords in previous chunks. */
+
+ /* Memory usage of the buffer list. These are always 0 for CE and preamble
+ * IBs. */
+ uint64_t used_vram;
+ uint64_t used_gart;
};
struct radeon_info {