diff options
| author | Yang Ni <yangni@google.com> | 2016-03-10 16:06:36 -0800 |
|---|---|---|
| committer | Yang Ni <yangni@google.com> | 2016-03-22 09:03:24 -0700 |
| commit | a7481b21c4ad4127f54c02c7402039d068948a34 (patch) | |
| tree | 2ad92bb7b1fe8651db105ac6ffedc987bb797898 /cpu_ref/rsCpuScript.cpp | |
| parent | 101caf152df0e7a63a10ec7537a89c9596be5cbb (diff) | |
Fixed intrinsics inside a script group
Bug: 27439842
An RS intrinsic relies on RSExpandKernelDriverInfo.usr for the "this"
pointer to the ScriptIntrinsic object.
Need to to correctly set that field in a script execution for intrinsics.
Also fixed a bcc command-line option.
Added a test of script group with intrinsics to ImageProcessing GroupTest(native).
Change-Id: Ia8b45bca3396ac987ba167fd1709ee89123a2557
(cherry picked from commit 7a106adbb5e370b544f2cbf5b83c063560c81b57)
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
| -rw-r--r-- | cpu_ref/rsCpuScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp index 16b3ec60..a5fc96b4 100644 --- a/cpu_ref/rsCpuScript.cpp +++ b/cpu_ref/rsCpuScript.cpp @@ -107,10 +107,10 @@ static void setCompileArguments(std::vector<const char*>* args, args->push_back("-O"); switch (optLevel) { - case (0): + case 0: args->push_back("0"); break; - case (3): + case 3: args->push_back("3"); break; default: |
