From b8a94e26c0a5e8f58d5b6ed04e46b411e95b77a4 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Mon, 24 Feb 2014 17:52:32 -0800 Subject: Add getPointer for USAGE_SHARED allocations. Change-Id: I13a2af09bbbeec6cc6131b935979ac21c02820be --- cpp/RenderScript.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/RenderScript.cpp') diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp index 04f1e88e..5709f799 100644 --- a/cpp/RenderScript.cpp +++ b/cpp/RenderScript.cpp @@ -401,6 +401,11 @@ static bool loadSymbols(void* handle) { ALOGV("Couldn't initialize RS::dispatch->AllocationIoReceive"); return false; } + RS::dispatch->AllocationGetPointer = (AllocationGetPointerFnPtr)dlsym(handle, "rsAllocationGetPointer"); + if (RS::dispatch->AllocationGetPointer == NULL) { + ALOGV("Couldn't initialize RS::dispatch->AllocationGetPointer"); + //return false; + } return true; } -- cgit v1.2.3