Merge "[RESTRICT AUTOMERGE]gpuservice: always dump all in BugReport" into rvc-dev
diff --git a/services/gpuservice/GpuService.cpp b/services/gpuservice/GpuService.cpp
index 7bb0e4a..f40ce71 100644
--- a/services/gpuservice/GpuService.cpp
+++ b/services/gpuservice/GpuService.cpp
@@ -94,7 +94,6 @@
size_t numArgs = args.size();
if (numArgs) {
- dumpAll = false;
for (size_t index = 0; index < numArgs; ++index) {
if (args[index] == String16("--gpustats")) {
dumpStats = true;
@@ -102,6 +101,7 @@
dumpDriverInfo = true;
}
}
+ dumpAll = !(dumpDriverInfo || dumpStats);
}
if (dumpAll || dumpDriverInfo) {