venus: format with clang-format

clang-format misaligns one of the comments in
vn_physical_device_get_passthrough_extensions, but we can live with
that.

Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14550>
This commit is contained in:
Chia-I Wu 2022-01-13 12:07:30 -08:00 committed by Marge Bot
parent 4d15b52783
commit 350dfb8c3c
4 changed files with 8 additions and 8 deletions

View file

@ -1005,8 +1005,9 @@ vn_android_device_import_ahb(struct vn_device *dev,
}
/* XXX Workaround before we use cross-domain backend in minigbm. The
* blob_mem allocated from virgl backend can have a queried guest mappable
* size smaller than the size returned from image memory requirement.
* blob_mem allocated from virgl backend can have a queried guest
* mappable size smaller than the size returned from image memory
* requirement.
*/
force_unmappable = true;
}

View file

@ -778,8 +778,8 @@ vn_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
driParseOptionInfo(&instance->available_dri_options, vn_dri_options,
ARRAY_SIZE(vn_dri_options));
driParseConfigFiles(&instance->dri_options,
&instance->available_dri_options, 0, "venus", NULL, NULL,
instance->base.base.app_info.app_name,
&instance->available_dri_options, 0, "venus", NULL,
NULL, instance->base.base.app_info.app_name,
instance->base.base.app_info.app_version,
instance->base.base.app_info.engine_name,
instance->base.base.app_info.engine_version);

View file

@ -954,7 +954,7 @@ vn_physical_device_get_passthrough_extensions(
.EXT_separate_stencil_usage = true,
.EXT_shader_viewport_index_layer = true,
/* EXT */
/* EXT */
#ifndef ANDROID
.EXT_image_drm_format_modifier = true,
#endif

View file

@ -11,7 +11,6 @@
#include "vn_wsi.h"
#include "vk_enum_to_str.h"
#include "wsi_common_entrypoints.h"
#include "vn_device.h"
@ -150,8 +149,8 @@ vn_CreateSwapchainKHR(VkDevice device,
{
struct vn_device *dev = vn_device_from_handle(device);
VkResult result = wsi_CreateSwapchainKHR(device, pCreateInfo,
pAllocator, pSwapchain);
VkResult result =
wsi_CreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain);
if (VN_DEBUG(WSI) && result == VK_SUCCESS) {
vn_log(dev->instance,
"swapchain %p: created with surface %p, min count %d, size "