diff options
| author | Stephen McGroarty <stephen@codeplay.com> | 2015-09-02 16:03:38 +0100 |
|---|---|---|
| committer | Stephen McGroarty <stephen@codeplay.com> | 2015-09-02 16:03:38 +0100 |
| commit | 15c1d06c654c246b8e8047f64f781add32483576 (patch) | |
| tree | d3d89feca133b5f4a44b275f24fd479e73656c80 /cpp/RenderScript.cpp | |
| parent | afe220464222e93514d1048a9361bb46aafd4905 (diff) | |
Derive the bcc optimization level from the input bitcode.
This patch derives the optimization level of the slang bitcode
and passes that to bcc. This patch replaces the old method, where
a flag was passed to the RenderScript context and the context
would set the optimization level accordingly.
Change-Id: Ie64a2d0125ca30da4ae7522961dca144d0457f03
Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
Diffstat (limited to 'cpp/RenderScript.cpp')
| -rw-r--r-- | cpp/RenderScript.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp index 66a7421c..a0c5debb 100644 --- a/cpp/RenderScript.cpp +++ b/cpp/RenderScript.cpp @@ -165,8 +165,7 @@ bool RS::init(const char * name, int targetApi, uint32_t flags) { } if (flags & ~(RS_CONTEXT_SYNCHRONOUS | RS_CONTEXT_LOW_LATENCY | - RS_CONTEXT_LOW_POWER | RS_CONTEXT_WAIT_FOR_ATTACH | - RS_CONTEXT_OPT_LEVEL_0)) { + RS_CONTEXT_LOW_POWER | RS_CONTEXT_WAIT_FOR_ATTACH)) { ALOGE("Invalid flags passed"); return false; } |
