venus: clang-format clean

Add parentheses to VN_DEBUG to avoid confusing clang-format.

Remove redundant comments, that confuse clang-format, because
VN_USE_WSI_PLATFORM can serve as comments.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10326>
This commit is contained in:
Chia-I Wu 2021-04-17 11:08:56 -07:00
parent 1e33b6a32b
commit 11a65dbedc
2 changed files with 1 additions and 3 deletions

View file

@ -41,7 +41,7 @@
#define VN_DEFAULT_ALIGN 8
#define VN_DEBUG(category) unlikely(vn_debug & VN_DEBUG_##category)
#define VN_DEBUG(category) (unlikely(vn_debug & VN_DEBUG_##category))
#define vn_error(instance, error) \
(VN_DEBUG(RESULT) ? vn_log_result((instance), (error), __func__) : (error))

View file

@ -43,7 +43,6 @@ static const struct vk_instance_extension_table
.KHR_external_semaphore_capabilities = true,
.KHR_get_physical_device_properties2 = true,
/* WSI */
#ifdef VN_USE_WSI_PLATFORM
.KHR_get_surface_capabilities2 = true,
.KHR_surface = true,
@ -1410,7 +1409,6 @@ vn_physical_device_get_supported_extensions(
struct vk_device_extension_table *recognized)
{
*supported = (struct vk_device_extension_table){
/* WSI */
#ifdef VN_USE_WSI_PLATFORM
.KHR_incremental_present = true,
.KHR_swapchain = true,