diff options
| author | Stephen Hines <srhines@google.com> | 2013-04-15 01:06:39 -0700 |
|---|---|---|
| committer | Stephen Hines <srhines@google.com> | 2013-04-17 19:42:56 -0700 |
| commit | cca3d6ca444bef3b6d75431ec19bd07bfe40a733 (patch) | |
| tree | 034159cbccbf4fa2ef6ba4b69faad0e2badc4e2a /cpu_ref/rsCpuScript.cpp | |
| parent | 886e51b2ef45ce123379c8a11579851c5580d957 (diff) | |
Add support for DEBUG context type.
Bug: 7343201
This change adds switching for the debug runtime (libclcore_debug.bc) when
running under a DEBUG RS context. It also fixes a small naming issue for
rsSetElementAt_int().
Change-Id: I8b574c9ce915a440375530325ba7de2b46707cfd
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
| -rw-r--r-- | cpu_ref/rsCpuScript.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp index 0b8dff75..ca852c1f 100644 --- a/cpu_ref/rsCpuScript.cpp +++ b/cpu_ref/rsCpuScript.cpp @@ -149,6 +149,11 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, if (selectRTCallback != NULL) { core_lib = selectRTCallback((const char *)bitcode, bitcodeSize); } + + if (mCtx->getContext()->getContextType() == RS_CONTEXT_TYPE_DEBUG) { + // Use the libclcore_debug.bc instead of the default library. + core_lib = bcc::RSInfo::LibCLCoreDebugPath; + } exec = mCompilerDriver->build(*mCompilerContext, cacheDir, resName, (const char *)bitcode, bitcodeSize, core_lib, mCtx->getLinkRuntimeCallback()); |
