Path: blob/21.2-virgl/src/virtio/venus-protocol/vn_protocol_driver_info.h
4560 views
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */12/*3* Copyright 2020 Google LLC4* SPDX-License-Identifier: MIT5*/67#ifndef VN_PROTOCOL_DRIVER_INFO_H8#define VN_PROTOCOL_DRIVER_INFO_H910#include "vn_protocol_driver_defines.h"1112static inline uint32_t13vn_info_wire_format_version(void)14{15return 0;16}1718static inline uint32_t19vn_info_vk_xml_version(void)20{21return VK_MAKE_VERSION(1, 2, 168);22}2324static inline int25vn_info_extension_compare(const void *a, const void *b)26{27return strcmp(a, *(const char **)b);28}2930static inline uint32_t31vn_info_extension_spec_version(const char *name)32{33static uint32_t ext_count = 54;34static const char *ext_names[54] = {35"VK_EXT_command_serialization",36"VK_EXT_descriptor_indexing",37"VK_EXT_external_memory_dma_buf",38"VK_EXT_host_query_reset",39"VK_EXT_image_drm_format_modifier",40"VK_EXT_queue_family_foreign",41"VK_EXT_sampler_filter_minmax",42"VK_EXT_scalar_block_layout",43"VK_EXT_separate_stencil_usage",44"VK_EXT_shader_viewport_index_layer",45"VK_EXT_transform_feedback",46"VK_KHR_16bit_storage",47"VK_KHR_8bit_storage",48"VK_KHR_bind_memory2",49"VK_KHR_buffer_device_address",50"VK_KHR_create_renderpass2",51"VK_KHR_dedicated_allocation",52"VK_KHR_depth_stencil_resolve",53"VK_KHR_descriptor_update_template",54"VK_KHR_device_group",55"VK_KHR_device_group_creation",56"VK_KHR_draw_indirect_count",57"VK_KHR_driver_properties",58"VK_KHR_external_fence",59"VK_KHR_external_fence_capabilities",60"VK_KHR_external_memory",61"VK_KHR_external_memory_capabilities",62"VK_KHR_external_memory_fd",63"VK_KHR_external_semaphore",64"VK_KHR_external_semaphore_capabilities",65"VK_KHR_get_memory_requirements2",66"VK_KHR_get_physical_device_properties2",67"VK_KHR_image_format_list",68"VK_KHR_imageless_framebuffer",69"VK_KHR_maintenance1",70"VK_KHR_maintenance2",71"VK_KHR_maintenance3",72"VK_KHR_multiview",73"VK_KHR_relaxed_block_layout",74"VK_KHR_sampler_mirror_clamp_to_edge",75"VK_KHR_sampler_ycbcr_conversion",76"VK_KHR_separate_depth_stencil_layouts",77"VK_KHR_shader_atomic_int64",78"VK_KHR_shader_draw_parameters",79"VK_KHR_shader_float16_int8",80"VK_KHR_shader_float_controls",81"VK_KHR_shader_subgroup_extended_types",82"VK_KHR_spirv_1_4",83"VK_KHR_storage_buffer_storage_class",84"VK_KHR_timeline_semaphore",85"VK_KHR_uniform_buffer_standard_layout",86"VK_KHR_variable_pointers",87"VK_KHR_vulkan_memory_model",88"VK_MESA_venus_protocol",89};90static const uint32_t ext_versions[54] = {910,922,931,941,951,961,972,981,991,1001,1011,1021,1031,1041,1051,1061,1073,1081,1091,1104,1111,1121,1131,1141,1151,1161,1171,1181,1191,1201,1211,1222,1231,1241,1252,1261,1271,1281,1291,1303,13114,1321,1331,1341,1351,1364,1371,1381,1391,1402,1411,1421,1433,144100000,145};146const char **found;147148found = bsearch(name, ext_names, ext_count, sizeof(ext_names[0]),149vn_info_extension_compare);150151return found ? ext_versions[found - ext_names] : 0;152}153154#endif /* VN_PROTOCOL_DRIVER_INFO_H */155156157