From 56eeaf26f857b1c9432393ddb67040e59423b30f Mon Sep 17 00:00:00 2001 From: Longlong Yao Date: Mon, 27 Oct 2025 10:59:00 +0800 Subject: [PATCH] librocdxg: query total shared GPU memory Signed-off-by: Longlong Yao --- thunk_proxy/thunk_proxy.h | 1 + wddm/device.h | 1 + 2 files changed, 2 insertions(+) diff --git a/thunk_proxy/thunk_proxy.h b/thunk_proxy/thunk_proxy.h index 3eace0b6e5..d6bdce2451 100644 --- a/thunk_proxy/thunk_proxy.h +++ b/thunk_proxy/thunk_proxy.h @@ -70,6 +70,7 @@ typedef struct { uint32_t asic_revision; uint64_t local_visible_heap_size; uint64_t local_invisible_heap_size; + uint64_t non_local_heap_size; uint64_t private_aperture_base; uint64_t private_aperture_size; uint64_t shared_aperture_base; diff --git a/wddm/device.h b/wddm/device.h index ab873a4bc6..15821b5483 100644 --- a/wddm/device.h +++ b/wddm/device.h @@ -119,6 +119,7 @@ public: uint64_t LocalHeapSize() { return device_info_.local_visible_heap_size + device_info_.local_invisible_heap_size; } uint64_t LocalVisibleHeapSize() { return device_info_.local_visible_heap_size; } uint64_t LocalInvisibleHeapSize() { return device_info_.local_invisible_heap_size; } + uint64_t NonLocalHeapSize() { return device_info_.non_local_heap_size; } uint64_t PrivateApertureBase() { return device_info_.private_aperture_base; } uint64_t PrivateApertureSize() { return device_info_.private_aperture_size; } uint64_t SharedApertureBase() { return device_info_.shared_aperture_base; }