From 0f9d717a7463d833cd460610c97b5854ff18096a Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Fri, 8 Nov 2019 10:49:01 -0800 Subject: 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 --- vulkan/libvulkan/driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vulkan/libvulkan') 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() { -- cgit v1.2.3-59-g8ed1b