summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuScript.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2015-05-20 18:09:57 -0700
committerStephen Hines <srhines@google.com>2015-05-22 13:19:36 -0700
commit5aa018cc36e589b07674957714d27ae3d1fa1c4e (patch)
tree0e2c6ba61785d8effa32ff499c21fbcbf966519d /cpu_ref/rsCpuScript.cpp
parentc060f1435e7b9405f3be8974417fa6f410f03753 (diff)
Update RS driver to support extraction of global variable properties.
Bug: 20306487 This patch adds some new enums to classify properties (such as "static", "constant", and "pointer") for global variables. The reference driver is also extended to provide methods to examine these properties (when the bitcode is compiled with bcc). Change-Id: I331756f8a8990caf5ebdf85599060434a7cfdcb7
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
-rw-r--r--cpu_ref/rsCpuScript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp
index 65ced662..9bcb4ac3 100644
--- a/cpu_ref/rsCpuScript.cpp
+++ b/cpu_ref/rsCpuScript.cpp
@@ -922,6 +922,10 @@ size_t RsdCpuScriptImpl::getGlobalSize(int i) const {
return mScriptExec->getGlobalSize(i);
}
+uint32_t RsdCpuScriptImpl::getGlobalProperties(int i) const {
+ return mScriptExec->getGlobalProperties(i);
+}
+
void RsdCpuScriptImpl::preLaunch(uint32_t slot, const Allocation ** ains,
uint32_t inLen, Allocation * aout,
const void * usr, uint32_t usrLen,