zink: update renderdoc layer string for android

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35350>
(cherry picked from commit 1ad37360de)
This commit is contained in:
Mike Blumenkrantz 2025-06-04 14:48:06 -04:00 committed by Eric Engestrom
parent 8fa2cd2fee
commit f9cf332fa7
2 changed files with 7 additions and 2 deletions

View file

@ -6824,7 +6824,7 @@
"description": "zink: update renderdoc layer string for android",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2222,7 +2222,12 @@ setup_renderdoc(struct zink_screen *screen)
const char *capture_id = debug_get_option("ZINK_RENDERDOC", NULL);
if (!capture_id)
return;
void *renderdoc = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD);
#if DETECT_OS_ANDROID
const char *libstr = "libVkLayer_GLES_RenderDoc.so";
#else
const char *libstr = "librenderdoc.so";
#endif
void *renderdoc = dlopen(libstr, RTLD_NOW | RTLD_NOLOAD);
/* not loaded */
if (!renderdoc)
return;