From 8ce12815675bfaeb2768959b092d6db293ba36c5 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Mon, 18 May 2015 17:28:59 -0700 Subject: Notify drivers when user get a pointer to allocation Requested by vendor for driver bring-up. bug 20894664 Change-Id: I7a1540236e557ef42ffde1c832b5d5ef36b91c96 --- rs_hal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rs_hal.h') diff --git a/rs_hal.h b/rs_hal.h index 77c2d261..c500e5a2 100644 --- a/rs_hal.h +++ b/rs_hal.h @@ -275,6 +275,10 @@ typedef struct { void (*updateCachedObject)(const Context *rsc, const Allocation *alloc, rs_allocation *obj); void (*adapterOffset)(const Context *rsc, const Allocation *alloc); + + void (*getPointer)(const Context *rsc, const Allocation *alloc, + uint32_t lod, RsAllocationCubemapFace face, + uint32_t z, uint32_t array); } allocation; struct { @@ -402,6 +406,7 @@ enum RsHalInitEnums { RS_HAL_ALLOCATION_UPDATE_CACHED_OBJECT = 2024, RS_HAL_ALLOCATION_ADAPTER_OFFSET = 2025, RS_HAL_ALLOCATION_INIT_OEM = 2026, + RS_HAL_ALLOCATION_GET_POINTER = 2027, RS_HAL_SAMPLER_INIT = 3000, RS_HAL_SAMPLER_DESTROY = 3001, -- cgit v1.2.3