summaryrefslogtreecommitdiff
path: root/rs_hal.h
diff options
context:
space:
mode:
authorDavid Gross <dgross@google.com>2016-01-15 11:52:14 -0800
committerDavid Gross <dgross@google.com>2016-01-19 09:44:49 -0800
commit6c1876bbef1b2c89975dce91230a168bd2d2ce4c (patch)
treeddb149e68360d8c039b4d6ec63e19eac0787a38b /rs_hal.h
parent46c93e405b0ad7e8fca12d0b1f9eac3997798e45 (diff)
downloadrs-6c1876bbef1b2c89975dce91230a168bd2d2ce4c.tar.gz
Support for general reduction kernels.
Requires coordinated change in frameworks/base. Requires coordinated change in frameworks/compile/libbcc in order for RsTest to run. At present, general reduction kernels are run single-threaded. Also: Remove dead struct field MTLaunchStructForEach::sig. Bug: 23535724 Change-Id: Ice17ccf20a902f8a106eaa62ec071d46e3c0ad8c
Diffstat (limited to 'rs_hal.h')
-rw-r--r--rs_hal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/rs_hal.h b/rs_hal.h
index 390e90df..2f3aa1a1 100644
--- a/rs_hal.h
+++ b/rs_hal.h
@@ -154,6 +154,11 @@ typedef struct {
uint32_t slot, const Allocation *ain,
Allocation *aout,
const RsScriptCall *sc);
+ void (*invokeReduceNew)(const Context *rsc, Script *s,
+ uint32_t slot,
+ const Allocation ** ains, size_t inLen,
+ Allocation *aout,
+ const RsScriptCall *sc);
void (*invokeInit)(const Context *rsc, Script *s);
void (*invokeFreeChildren)(const Context *rsc, Script *s);
@@ -386,6 +391,7 @@ enum RsHalInitEnums {
RS_HAL_SCRIPT_INVOKE_FOR_EACH_MULTI = 1013,
RS_HAL_SCRIPT_UPDATE_CACHED_OBJECT = 1014,
RS_HAL_SCRIPT_INVOKE_REDUCE = 1015,
+ RS_HAL_SCRIPT_INVOKE_REDUCE_NEW = 1016,
RS_HAL_ALLOCATION_INIT = 2000,
RS_HAL_ALLOCATION_INIT_ADAPTER = 2001,