radv: adjust the computation of the total usage of memory used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 26 Apr 2021 11:43:44 +0000 (11:43 +0000)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 5 May 2021 06:44:17 +0000 (08:44 +0200)
commit986a3243cf9b97e910ff05a5c119ca919b3bc3e0
tree1ffd467cc2d4b66059a53d2fe7f3eb40b959d7ce
parent340703e044ba6ef148d69bcd3a121263d720ab91
radv: adjust the computation of the total usage of memory used

internal_usage is the memory allocated by the current process (intent)
while system_usage is the memory allocated globally (actual).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9774>
src/amd/vulkan/radv_device.c