venus: implement vn_debug_init_once with os_get_option
authorYiwei Zhang <zzyiwei@chromium.org>
Tue, 6 Apr 2021 00:50:36 +0000 (00:50 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 8 Apr 2021 18:51:24 +0000 (18:51 +0000)
commita049cff2414c772d4bc03012ff4e0ee0247c64e2
tree9a2683f70345cdfde0246a87eae04c35bdb4c13d
parent82bb90e072c5cccfb334e73db09335219ac2b2cb
venus: implement vn_debug_init_once with os_get_option

getenv is not working well with Android VM. Instead, use os_get_option
to read Android system property.

e.g. adb shell setprop mesa.vn.debug drm

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10112>
src/virtio/vulkan/vn_common.c
src/virtio/vulkan/vn_common.h