vc4: Use os_get_gpu_heap_size()
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41242>
This commit is contained in:
Karmjit Mahil 2026-04-28 14:31:56 +01:00 committed by Marge Bot
parent b8786ccf64
commit 3366fcff27

View file

@ -27,6 +27,7 @@
#include "pipe/p_screen.h"
#include "pipe/p_state.h"
#include "util/os_misc.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
#include "util/format/u_format.h"
@ -199,9 +200,7 @@ vc4_init_screen_caps(struct vc4_screen *screen)
caps->vendor_id = 0x14E4;
uint64_t system_memory;
caps->video_memory = os_get_total_physical_memory(&system_memory) ?
system_memory >> 20 : 0;
caps->video_memory = os_get_gpu_heap_size(1.0f, NULL) >> 20;
caps->uma = true;