summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/VRamHeap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/surfaceflinger/VRamHeap.cpp')
-rw-r--r--libs/surfaceflinger/VRamHeap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaceflinger/VRamHeap.cpp b/libs/surfaceflinger/VRamHeap.cpp
index 0ccd71f..238c602 100644
--- a/libs/surfaceflinger/VRamHeap.cpp
+++ b/libs/surfaceflinger/VRamHeap.cpp
@@ -98,7 +98,7 @@ sp<MemoryDealer> SurfaceHeapManager::createHeap(
}
}
- if (flags & ISurfaceComposer::eGPU) {
+ if ((flags & ISurfaceComposer::eGPU) && (mFlinger->getGPU() != 0)) {
// FIXME: this is msm7201A specific, where gpu surfaces may not be secure
if (!(flags & ISurfaceComposer::eSecure)) {
// if GPU doesn't work, we try eHardware