diff options
| author | Jason Sams <jsams@google.com> | 2014-03-31 14:44:53 -0700 |
|---|---|---|
| committer | Jason Sams <jsams@google.com> | 2014-03-31 14:44:53 -0700 |
| commit | cd5f1cef34f23262f59e820a5f65ec4dad7f0bf8 (patch) | |
| tree | 363ac3609a0f686933d4c5770f8da3f2ce76e6c5 /rsContext.cpp | |
| parent | 43f7bffe3972887347afede7001992c90fd633f7 (diff) | |
| download | android_frameworks_rs-cd5f1cef34f23262f59e820a5f65ec4dad7f0bf8.tar.gz android_frameworks_rs-cd5f1cef34f23262f59e820a5f65ec4dad7f0bf8.tar.bz2 android_frameworks_rs-cd5f1cef34f23262f59e820a5f65ec4dad7f0bf8.zip | |
Disable acceleration when the context is legacy graphics.
bug 13728313
Change-Id: I63d8a352cc6d44f1b87ba5ded7f95b297f512e92
Diffstat (limited to 'rsContext.cpp')
| -rw-r--r-- | rsContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsContext.cpp b/rsContext.cpp index 1bcea6bc..916c6a0a 100644 --- a/rsContext.cpp +++ b/rsContext.cpp @@ -324,7 +324,7 @@ void * Context::threadProc(void *vrsc) { if (getProp("debug.rs.default-CPU-driver") != 0) { ALOGD("Skipping override driver and loading default CPU driver"); - } else if (rsc->mForceCpu) { + } else if (rsc->mForceCpu || rsc->mIsGraphicsContext) { ALOGV("Application requested CPU execution"); } else if (rsc->getContextType() == RS_CONTEXT_TYPE_DEBUG) { ALOGV("Application requested debug context"); |
