summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yiwei Zhang <zzyiwei@google.com> 2019-11-08 10:49:01 -0800
committer Yiwei Zhang <zzyiwei@google.com> 2019-11-08 10:49:01 -0800
commit0f9d717a7463d833cd460610c97b5854ff18096a (patch)
tree393495fbdfd67916a86a2ee9cb6a2f3694dcf463
parentb74b376735adb894eaff02d82fda0fd5aefb49d2 (diff)
Fix the behavior of vulkan::driver::Debuggable() function
Bug: 144169750 Test: Vulkan app on user build is unable to load implicit layers by default Change-Id: Ief47c6daaa7d5722920e0fd75183d35ae2362adb
-rw-r--r--vulkan/libvulkan/driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp
index a544bc5ff8..0b686f189a 100644
--- a/vulkan/libvulkan/driver.cpp
+++ b/vulkan/libvulkan/driver.cpp
@@ -756,7 +756,7 @@ void FreeDeviceData(DeviceData* data, const VkAllocationCallbacks& allocator) {
} // anonymous namespace
bool Debuggable() {
- return (prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) >= 0);
+ return prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) > 0;
}
bool OpenHAL() {