diff options
author | David Gross <dgross@google.com> | 2016-01-15 11:52:14 -0800 |
---|---|---|
committer | David Gross <dgross@google.com> | 2016-01-19 09:44:49 -0800 |
commit | 6c1876bbef1b2c89975dce91230a168bd2d2ce4c (patch) | |
tree | ddb149e68360d8c039b4d6ec63e19eac0787a38b /rs_hal.h | |
parent | 46c93e405b0ad7e8fca12d0b1f9eac3997798e45 (diff) | |
download | rs-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, |