summaryrefslogtreecommitdiff
path: root/rs_hal.h
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2015-05-11 15:02:50 -0700
committerJason Sams <jsams@google.com>2015-05-11 15:02:50 -0700
commitf82b626e0479ce4a23ebff1fc088e073dcabaa30 (patch)
tree791670c30202628658777ad2c88f5e9831021f7c /rs_hal.h
parent6063b3ef8f88f5b4f29994b58ef0c883c4bea066 (diff)
downloadrs-f82b626e0479ce4a23ebff1fc088e073dcabaa30.tar.gz
Add USAGE_OEM
Allow OEMs to pass data from other HW blocks via internal extension. Change-Id: I78c19f5eec462aff7d8a5408f2f16cfc9b78c036
Diffstat (limited to 'rs_hal.h')
-rw-r--r--rs_hal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rs_hal.h b/rs_hal.h
index b4070ac1..77c2d261 100644
--- a/rs_hal.h
+++ b/rs_hal.h
@@ -190,6 +190,7 @@ typedef struct {
struct {
bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero);
+ bool (*initOem)(const Context *rsc, Allocation *alloc, bool forceZero, void *usrPtr);
bool (*initAdapter)(const Context *rsc, Allocation *alloc);
void (*destroy)(const Context *rsc, Allocation *alloc);
uint32_t (*grallocBits)(const Context *rsc, Allocation *alloc);
@@ -400,6 +401,7 @@ enum RsHalInitEnums {
RS_HAL_ALLOCATION_GENERATE_MIPMAPS = 2023,
RS_HAL_ALLOCATION_UPDATE_CACHED_OBJECT = 2024,
RS_HAL_ALLOCATION_ADAPTER_OFFSET = 2025,
+ RS_HAL_ALLOCATION_INIT_OEM = 2026,
RS_HAL_SAMPLER_INIT = 3000,
RS_HAL_SAMPLER_DESTROY = 3001,