diff options
| author | 2022-03-07 22:07:03 -0800 | |
|---|---|---|
| committer | 2022-03-09 08:52:25 -0800 | |
| commit | 4f88670777e05bf7a774d2ff41ffe437eeace0c2 (patch) | |
| tree | 4d6e978e66134a90b71bdca01631f48087d08253 /vulkan/libvulkan/api.cpp | |
| parent | f81decc8b72d5d8d5ae928d1c5755c898fe87db9 (diff) | |
libbinder: detect features supported by the driver
The binder driver exposes the features it supports as individual files
under /dev/binderfs/features/*. This patch adds a method to determine
whether a feature is enabled or not and avoid unnecessary calls to the
driver. In this case, we can skip logging any "oneway spam detection"
failures seen during open_driver() if the ioctl is not supported.
Bug: 191910201
Tested: toggling driver features manually
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Change-Id: Ie8e7315cc1ba8baa9cb03bab1fb3bd7507765c99
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions