summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2015-05-15 10:38:48 -0700
committerMiao Wang <miaowang@google.com>2015-05-28 17:19:44 +0000
commit549f8a500d72edda06f1f1a4986a57aba7f66294 (patch)
treea877a91a508ebf610d605b11c41b7bb449526288
parent9a6bbddf6c9cc9ff8c9092bbc4f915d4afdbda34 (diff)
downloadrs-549f8a500d72edda06f1f1a4986a57aba7f66294.tar.gz
update dispatch table for IntrinsicBLAS
bug: 21028875 Change-Id: I6d4aa8973de523aef7ced48105737eb5ee471e5d
-rw-r--r--cpp/rsDispatch.cpp5
-rw-r--r--cpp/rsDispatch.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/cpp/rsDispatch.cpp b/cpp/rsDispatch.cpp
index f09f539b..10adcf28 100644
--- a/cpp/rsDispatch.cpp
+++ b/cpp/rsDispatch.cpp
@@ -411,6 +411,11 @@ bool loadSymbols(void* handle, dispatchTable& dispatchTab, int device_api) {
LOG_API("Couldn't initialize dispatchTab.Allocation3DRead");
return false;
}
+ dispatchTab.ScriptForEachMulti = (ScriptForEachMultiFnPtr)dlsym(handle, "rsScriptForEachMulti");
+ if (dispatchTab.ScriptForEachMulti == NULL) {
+ LOG_API("Couldn't initialize dispatchTab.ScriptForEachMulti");
+ return false;
+ }
}
return true;
diff --git a/cpp/rsDispatch.h b/cpp/rsDispatch.h
index d77a4d97..740457ac 100644
--- a/cpp/rsDispatch.h
+++ b/cpp/rsDispatch.h
@@ -93,6 +93,7 @@ typedef RsScriptGroup2 (*ScriptGroup2CreateFnPtr)(RsContext, const char*, size_t
typedef void (*ScriptGroupSetOutputFnPtr) (RsContext, RsScriptGroup, RsScriptKernelID, RsAllocation);
typedef void (*ScriptGroupSetInputFnPtr) (RsContext, RsScriptGroup, RsScriptKernelID, RsAllocation);
typedef void (*ScriptGroupExecuteFnPtr) (RsContext, RsScriptGroup);
+typedef void (*ScriptForEachMultiFnPtr) (RsContext, RsScript, uint32_t, RsAllocation *, size_t, RsAllocation, const void *, size_t, const RsScriptCall *, size_t);
typedef void (*AllocationIoSendFnPtr) (RsContext, RsAllocation);
typedef void (*AllocationIoReceiveFnPtr) (RsContext, RsAllocation);
typedef void * (*AllocationGetPointerFnPtr) (RsContext, RsAllocation, uint32_t lod, RsAllocationCubemapFace face, uint32_t z, uint32_t array, size_t *stride, size_t stride_len);
@@ -176,6 +177,7 @@ struct dispatchTable {
ScriptGroupSetOutputFnPtr ScriptGroupSetOutput;
ScriptGroupSetInputFnPtr ScriptGroupSetInput;
ScriptGroupExecuteFnPtr ScriptGroupExecute;
+ ScriptForEachMultiFnPtr ScriptForEachMulti;
AllocationIoSendFnPtr AllocationIoSend;
AllocationIoReceiveFnPtr AllocationIoReceive;
AllocationGetPointerFnPtr AllocationGetPointer;