mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
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:
parent
1e33b6a32b
commit
11a65dbedc
2 changed files with 1 additions and 3 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue