vulkan/android: rename global u_gralloc ptr

...to avoid mixing up with type name and local returns from getter.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Acked-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35561>
This commit is contained in:
Yiwei Zhang 2025-06-16 00:07:17 -07:00 committed by Marge Bot
parent 856f1d4e3c
commit 6c284cd534

View file

@ -48,26 +48,26 @@
#include <unistd.h>
static struct u_gralloc *u_gralloc;
static struct u_gralloc *_gralloc;
struct u_gralloc *
vk_android_get_ugralloc(void)
{
return u_gralloc;
return _gralloc;
}
struct u_gralloc *
vk_android_init_ugralloc(void)
{
u_gralloc = u_gralloc_create(U_GRALLOC_TYPE_AUTO);
_gralloc = u_gralloc_create(U_GRALLOC_TYPE_AUTO);
return u_gralloc;
return _gralloc;
}
void
vk_android_destroy_ugralloc(void)
{
u_gralloc_destroy(&u_gralloc);
u_gralloc_destroy(&_gralloc);
}
/* If any bits in test_mask are set, then unset them and return true. */