mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-13 22:50:26 +01:00
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:
parent
4d15b52783
commit
350dfb8c3c
4 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue