summaryrefslogtreecommitdiff
path: root/rs_hal.h
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2015-05-18 17:28:59 -0700
committerJason Sams <jsams@google.com>2015-05-18 17:29:39 -0700
commit8ce12815675bfaeb2768959b092d6db293ba36c5 (patch)
tree7834665d5480538a3bfdf0a02ed937a5b7b23516 /rs_hal.h
parent902077a7b2db5b34560289e28fed0fab36ef4e6c (diff)
downloadrs-8ce12815675bfaeb2768959b092d6db293ba36c5.tar.gz
Notify drivers when user get a pointer to allocation
Requested by vendor for driver bring-up. bug 20894664 Change-Id: I7a1540236e557ef42ffde1c832b5d5ef36b91c96
Diffstat (limited to 'rs_hal.h')
-rw-r--r--rs_hal.h5
1 files changed, 5 insertions, 0 deletions
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,