From 14ce007a633b10e3b9a3fae29d8f53a7e8c9b59f Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Thu, 30 Jul 2015 17:30:25 -0700 Subject: 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 --- 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 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, -- cgit v1.2.3