summaryrefslogtreecommitdiff
path: root/rs_hal.h
diff options
context:
space:
mode:
authorMatt Wala <wala@google.com>2015-07-30 17:30:25 -0700
committerMatt Wala <wala@google.com>2015-08-14 12:24:24 -0700
commit14ce007a633b10e3b9a3fae29d8f53a7e8c9b59f (patch)
treed9089fc8c60a65d071cb817b156cc0edc3bb5015 /rs_hal.h
parent2b4632b580c756af046ee4b9a6ecc77a01388d4e (diff)
downloadrs-14ce007a633b10e3b9a3fae29d8f53a7e8c9b59f.tar.gz
Add a basic implementation of the reduce kernel API to the CPU
reference implementation. Bug: 22631253 For now, this just runs a serial reduction on one thread. Change-Id: I34c96d24bb6f44274de72bb53160abcf79d143b0
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 6bc7d7a0..390e90df 100644
--- a/rs_hal.h
+++ b/rs_hal.h
@@ -150,6 +150,10 @@ typedef struct {
const void * usr,
size_t usrLen,
const RsScriptCall *sc);
+ void (*invokeReduce)(const Context *rsc, Script *s,
+ uint32_t slot, const Allocation *ain,
+ Allocation *aout,
+ const RsScriptCall *sc);
void (*invokeInit)(const Context *rsc, Script *s);
void (*invokeFreeChildren)(const Context *rsc, Script *s);
@@ -381,6 +385,7 @@ enum RsHalInitEnums {
RS_HAL_SCRIPT_DESTROY = 1012,
RS_HAL_SCRIPT_INVOKE_FOR_EACH_MULTI = 1013,
RS_HAL_SCRIPT_UPDATE_CACHED_OBJECT = 1014,
+ RS_HAL_SCRIPT_INVOKE_REDUCE = 1015,
RS_HAL_ALLOCATION_INIT = 2000,
RS_HAL_ALLOCATION_INIT_ADAPTER = 2001,