aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2015-07-29 00:34:30 -0700
committerStephen Hines <srhines@google.com>2015-07-30 14:35:41 -0700
commitd47777179abaffa360d4ba6a59c19498c61350c1 (patch)
treec35efeeaf79133b3ebfe3f282220529e87e1ff1d
parent6052c4012d291951c0835a7a36bbb3baae2b2045 (diff)
downloadandroid_frameworks_compile_libbcc-d47777179abaffa360d4ba6a59c19498c61350c1.tar.gz
android_frameworks_compile_libbcc-d47777179abaffa360d4ba6a59c19498c61350c1.tar.bz2
android_frameworks_compile_libbcc-d47777179abaffa360d4ba6a59c19498c61350c1.zip
Fix missing call to setLinkRuntimeCallback() from compat path.
Bug: 22809453 This call was missing from the buildForCompatLib() path, leading to potential problems with GPGPU drivers that depend on that callback. Change-Id: I236cf9f6e067d243977fbcce154e79953c9e33aa (cherry picked from commit efb3af3ba00e8dc9a10130ec66727ebd8c11a2ed)
-rw-r--r--lib/Renderscript/RSCompilerDriver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Renderscript/RSCompilerDriver.cpp b/lib/Renderscript/RSCompilerDriver.cpp
index 7a8d4da..0e769e9 100644
--- a/lib/Renderscript/RSCompilerDriver.cpp
+++ b/lib/Renderscript/RSCompilerDriver.cpp
@@ -379,6 +379,7 @@ bool RSCompilerDriver::buildForCompatLib(RSScript &pScript, const char *pOut,
pScript.setEmbedGlobalInfo(mEmbedGlobalInfo);
pScript.setEmbedGlobalInfoSkipConstant(mEmbedGlobalInfoSkipConstant);
+ pScript.setLinkRuntimeCallback(getLinkRuntimeCallback());
Compiler::ErrorCode status = compileScript(pScript, pOut, pOut, pRuntimePath,
pBuildChecksum, pDumpIR);