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)
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 @@
pScript.setEmbedGlobalInfo(mEmbedGlobalInfo);
pScript.setEmbedGlobalInfoSkipConstant(mEmbedGlobalInfoSkipConstant);
+ pScript.setLinkRuntimeCallback(getLinkRuntimeCallback());
Compiler::ErrorCode status = compileScript(pScript, pOut, pOut, pRuntimePath,
pBuildChecksum, pDumpIR);