diff options
author | Marek Olšák <[email protected]> | 2018-06-12 21:13:44 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-06-13 21:47:36 -0400 |
commit | a2d4c8ff6df99e5bb68d82549747f8c7baad403e (patch) | |
tree | 70189d271eda56f144f25e660d971123baccf795 /src/gallium/drivers/radeonsi/si_get.c | |
parent | 95ecde42eb93b0ef1c65e60b5eeb20f9b2781fb4 (diff) |
radeonsi: return real memory usage instead of per-process usage
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_get.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_get.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 01050cf02b4..154fabebdcc 100644 --- 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 ? |