anv/android: Enable shared presentable image support

Signed-off-by: Chris Spencer <spencercw@gmail.com>
Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24941>
This commit is contained in:
Chris Spencer
2023-08-29 20:26:20 +01:00
committed by Marge Bot
parent 574bdee19d
commit b492f73f87
4 changed files with 36 additions and 2 deletions

View File

@@ -63,6 +63,9 @@
#include "util/set.h"
#include "util/sparse_array.h"
#include "util/u_atomic.h"
#ifdef ANDROID
#include "util/u_gralloc/u_gralloc.h"
#endif
#include "util/u_vector.h"
#include "util/u_math.h"
#include "util/vma.h"
@@ -1298,6 +1301,9 @@ struct anv_device {
uint32_t draw_call_count;
struct anv_state breakpoint;
#ifdef ANDROID
struct u_gralloc *u_gralloc;
#endif
};
static inline struct anv_state