mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
856f1d4e3c
commit
6c284cd534
1 changed files with 5 additions and 5 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue