projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95ecde4
)
radeonsi: return real memory usage instead of per-process usage
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 13 Jun 2018 01:13:44 +0000
(21:13 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 14 Jun 2018 01:47:36 +0000
(21:47 -0400)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_get.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_get.c
b/src/gallium/drivers/radeonsi/si_get.c
index 01050cf02b4dd9beea5fe4c9b084882b3acfeb75..154fabebdcce872f64f49e7e384d57ea06e28370 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_get.c
+++ b/
src/gallium/drivers/radeonsi/si_get.c
@@
-920,8
+920,8
@@
static void si_query_memory_info(struct pipe_screen *screen,
*
* Instead, return statistics of this process.
*/
- vram_usage = ws->query_value(ws, RADEON_
REQUESTED_VRAM_MEMORY
) / 1024;
- gtt_usage = ws->query_value(ws, RADEON_
REQUESTED_GTT_MEMORY
) / 1024;
+ vram_usage = ws->query_value(ws, RADEON_
VRAM_USAGE
) / 1024;
+ gtt_usage = ws->query_value(ws, RADEON_
GTT_USAGE
) / 1024;
info->avail_device_memory =
vram_usage <= info->total_device_memory ?