mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
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:
parent
d147817599
commit
8504922dda
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue