egl/android: use ndk api __system_property_get

Reviewed-by: Dhruv Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41222>
This commit is contained in:
Yiwei Zhang 2026-04-27 15:45:33 -07:00 committed by Marge Bot
parent d147817599
commit 8504922dda

View file

@ -34,7 +34,7 @@
#include <stdbool.h>
#include <stdio.h>
#include "util/libdrm.h"
#include <cutils/properties.h>
#include <sys/system_properties.h>
#include <drm-uapi/drm_fourcc.h>
#include <sync/sync.h>
#include <sys/types.h>
@ -1103,7 +1103,7 @@ droid_open_device(_EGLDisplay *disp, bool swrast)
drmDevicePtr device;
char *vendor_name = NULL;
char vendor_buf[PROPERTY_VALUE_MAX];
char vendor_buf[PROP_VALUE_MAX];
#ifdef EGL_FORCE_RENDERNODE
const unsigned node_type = DRM_NODE_RENDER;
@ -1111,7 +1111,7 @@ droid_open_device(_EGLDisplay *disp, bool swrast)
const unsigned node_type = swrast ? DRM_NODE_PRIMARY : DRM_NODE_RENDER;
#endif
if (property_get("drm.gpu.vendor_name", vendor_buf, NULL) > 0)
if (__system_property_get("drm.gpu.vendor_name", vendor_buf) > 0)
vendor_name = vendor_buf;
while (dev_list) {