diff options
author | Samuel Pitoiset <[email protected]> | 2020-03-02 12:04:46 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-06 08:22:02 +0000 |
commit | 6dc38cea52ce1e498a5d7a38cadcb9e7e15bde6c (patch) | |
tree | efd1044d34a4a9b628542524a4c36255985322c7 /src/amd/vulkan | |
parent | eeb09a01e7699cbcf1836b0aba288e0e3c8656ac (diff) |
radv/rgp: report correct system ram size
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4023>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4023>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_rgp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_rgp.c b/src/amd/vulkan/radv_rgp.c index 619ab8cfb08..c2dc98f4fec 100644 --- a/src/amd/vulkan/radv_rgp.c +++ b/src/amd/vulkan/radv_rgp.c @@ -166,6 +166,8 @@ static_assert(sizeof(struct sqtt_file_chunk_cpu_info) == 112, static void radv_sqtt_fill_cpu_info(struct sqtt_file_chunk_cpu_info *chunk) { + uint64_t system_ram_size = 0; + chunk->header.chunk_id.type = SQTT_FILE_CHUNK_TYPE_CPU_INFO; chunk->header.chunk_id.index = 0; chunk->header.major_version = 0; @@ -181,7 +183,10 @@ radv_sqtt_fill_cpu_info(struct sqtt_file_chunk_cpu_info *chunk) chunk->clock_speed = 0; chunk->num_logical_cores = 0; chunk->num_physical_cores = 0; + chunk->system_ram_size = 0; + if (os_get_total_physical_memory(&system_ram_size)) + chunk->system_ram_size = system_ram_size / (1024 * 1024); } /** |