winevulkan: Update to VK spec version 1.1.117.
Adds int16 types needed for spec update. Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9126cd623e
commit
54acff1227
|
@ -64,7 +64,7 @@ from enum import Enum
|
|||
LOGGER = logging.Logger("vulkan")
|
||||
LOGGER.addHandler(logging.StreamHandler())
|
||||
|
||||
VK_XML_VERSION = "1.1.114"
|
||||
VK_XML_VERSION = "1.1.117"
|
||||
WINE_VK_VERSION = (1, 1)
|
||||
|
||||
# Filenames to create.
|
||||
|
@ -1312,7 +1312,7 @@ class VkParam(object):
|
|||
elif self.type == "size_t":
|
||||
self.format_str = "0x%s"
|
||||
self.format_conv = "wine_dbgstr_longlong({0})"
|
||||
elif self.type in ["uint32_t", "VkBool32"]:
|
||||
elif self.type in ["uint16_t", "uint32_t", "VkBool32"]:
|
||||
self.format_str = "%u"
|
||||
elif self.type in ["uint64_t", "VkDeviceSize"]:
|
||||
self.format_str = "0x%s"
|
||||
|
@ -1501,7 +1501,7 @@ class VkParam(object):
|
|||
return "int64"
|
||||
if self.type == "float":
|
||||
return "float"
|
||||
if self.type in ["int", "int32_t", "size_t", "uint32_t", "VkBool32"]:
|
||||
if self.type in ["int", "int32_t", "size_t", "uint16_t", "uint32_t", "VkBool32"]:
|
||||
return "long"
|
||||
if self.type in ["uint64_t", "VkDeviceSize"]:
|
||||
return "int64"
|
||||
|
|
|
@ -1546,10 +1546,10 @@ VkResult convert_VkDeviceCreateInfo_struct_chain(const void *pNext, VkDeviceCrea
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR:
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES_KHR:
|
||||
{
|
||||
const VkPhysicalDeviceFloat16Int8FeaturesKHR *in = (const VkPhysicalDeviceFloat16Int8FeaturesKHR *)in_header;
|
||||
VkPhysicalDeviceFloat16Int8FeaturesKHR *out;
|
||||
const VkPhysicalDeviceShaderFloat16Int8FeaturesKHR *in = (const VkPhysicalDeviceShaderFloat16Int8FeaturesKHR *)in_header;
|
||||
VkPhysicalDeviceShaderFloat16Int8FeaturesKHR *out;
|
||||
|
||||
if (!(out = heap_alloc(sizeof(*out)))) goto out_of_memory;
|
||||
|
||||
|
@ -2013,6 +2013,22 @@ VkResult convert_VkDeviceCreateInfo_struct_chain(const void *pNext, VkDeviceCrea
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES_EXT:
|
||||
{
|
||||
const VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT *in = (const VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT *)in_header;
|
||||
VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT *out;
|
||||
|
||||
if (!(out = heap_alloc(sizeof(*out)))) goto out_of_memory;
|
||||
|
||||
out->sType = in->sType;
|
||||
out->pNext = NULL;
|
||||
out->textureCompressionASTC_HDR = in->textureCompressionASTC_HDR;
|
||||
|
||||
out_header->pNext = (VkBaseOutStructure *)out;
|
||||
out_header = out_header->pNext;
|
||||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NV:
|
||||
{
|
||||
const VkPhysicalDeviceCooperativeMatrixFeaturesNV *in = (const VkPhysicalDeviceCooperativeMatrixFeaturesNV *)in_header;
|
||||
|
@ -2062,10 +2078,10 @@ VkResult convert_VkDeviceCreateInfo_struct_chain(const void *pNext, VkDeviceCrea
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS2_FEATURES_INTEL:
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL:
|
||||
{
|
||||
const VkPhysicalDeviceShaderIntegerFunctions2INTEL *in = (const VkPhysicalDeviceShaderIntegerFunctions2INTEL *)in_header;
|
||||
VkPhysicalDeviceShaderIntegerFunctions2INTEL *out;
|
||||
const VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL *in = (const VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL *)in_header;
|
||||
VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL *out;
|
||||
|
||||
if (!(out = heap_alloc(sizeof(*out)))) goto out_of_memory;
|
||||
|
||||
|
@ -2078,6 +2094,22 @@ VkResult convert_VkDeviceCreateInfo_struct_chain(const void *pNext, VkDeviceCrea
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT:
|
||||
{
|
||||
const VkPhysicalDeviceIndexTypeUint8FeaturesEXT *in = (const VkPhysicalDeviceIndexTypeUint8FeaturesEXT *)in_header;
|
||||
VkPhysicalDeviceIndexTypeUint8FeaturesEXT *out;
|
||||
|
||||
if (!(out = heap_alloc(sizeof(*out)))) goto out_of_memory;
|
||||
|
||||
out->sType = in->sType;
|
||||
out->pNext = NULL;
|
||||
out->indexTypeUint8 = in->indexTypeUint8;
|
||||
|
||||
out_header->pNext = (VkBaseOutStructure *)out;
|
||||
out_header = out_header->pNext;
|
||||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV:
|
||||
{
|
||||
const VkPhysicalDeviceShaderSMBuiltinsFeaturesNV *in = (const VkPhysicalDeviceShaderSMBuiltinsFeaturesNV *)in_header;
|
||||
|
@ -2144,6 +2176,27 @@ VkResult convert_VkDeviceCreateInfo_struct_chain(const void *pNext, VkDeviceCrea
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT:
|
||||
{
|
||||
const VkPhysicalDeviceLineRasterizationFeaturesEXT *in = (const VkPhysicalDeviceLineRasterizationFeaturesEXT *)in_header;
|
||||
VkPhysicalDeviceLineRasterizationFeaturesEXT *out;
|
||||
|
||||
if (!(out = heap_alloc(sizeof(*out)))) goto out_of_memory;
|
||||
|
||||
out->sType = in->sType;
|
||||
out->pNext = NULL;
|
||||
out->rectangularLines = in->rectangularLines;
|
||||
out->bresenhamLines = in->bresenhamLines;
|
||||
out->smoothLines = in->smoothLines;
|
||||
out->stippledRectangularLines = in->stippledRectangularLines;
|
||||
out->stippledBresenhamLines = in->stippledBresenhamLines;
|
||||
out->stippledSmoothLines = in->stippledSmoothLines;
|
||||
|
||||
out_header->pNext = (VkBaseOutStructure *)out;
|
||||
out_header = out_header->pNext;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
FIXME("Application requested a linked structure of type %u.\n", in_header->sType);
|
||||
}
|
||||
|
@ -2870,6 +2923,12 @@ static void WINAPI wine_vkCmdSetExclusiveScissorNV(VkCommandBuffer commandBuffer
|
|||
commandBuffer->device->funcs.p_vkCmdSetExclusiveScissorNV(commandBuffer->command_buffer, firstExclusiveScissor, exclusiveScissorCount, pExclusiveScissors);
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkCmdSetLineStippleEXT(VkCommandBuffer commandBuffer, uint32_t lineStippleFactor, uint16_t lineStipplePattern)
|
||||
{
|
||||
TRACE("%p, %u, %u\n", commandBuffer, lineStippleFactor, lineStipplePattern);
|
||||
commandBuffer->device->funcs.p_vkCmdSetLineStippleEXT(commandBuffer->command_buffer, lineStippleFactor, lineStipplePattern);
|
||||
}
|
||||
|
||||
void WINAPI wine_vkCmdSetLineWidth(VkCommandBuffer commandBuffer, float lineWidth)
|
||||
{
|
||||
TRACE("%p, %f\n", commandBuffer, lineWidth);
|
||||
|
@ -4359,6 +4418,7 @@ static const struct vulkan_func vk_device_dispatch_table[] =
|
|||
{"vkCmdSetDiscardRectangleEXT", &wine_vkCmdSetDiscardRectangleEXT},
|
||||
{"vkCmdSetEvent", &wine_vkCmdSetEvent},
|
||||
{"vkCmdSetExclusiveScissorNV", &wine_vkCmdSetExclusiveScissorNV},
|
||||
{"vkCmdSetLineStippleEXT", &wine_vkCmdSetLineStippleEXT},
|
||||
{"vkCmdSetLineWidth", &wine_vkCmdSetLineWidth},
|
||||
{"vkCmdSetPerformanceMarkerINTEL", &wine_vkCmdSetPerformanceMarkerINTEL},
|
||||
{"vkCmdSetPerformanceOverrideINTEL", &wine_vkCmdSetPerformanceOverrideINTEL},
|
||||
|
@ -4613,7 +4673,9 @@ static const char * const vk_device_extensions[] =
|
|||
"VK_EXT_fragment_shader_interlock",
|
||||
"VK_EXT_global_priority",
|
||||
"VK_EXT_host_query_reset",
|
||||
"VK_EXT_index_type_uint8",
|
||||
"VK_EXT_inline_uniform_block",
|
||||
"VK_EXT_line_rasterization",
|
||||
"VK_EXT_memory_budget",
|
||||
"VK_EXT_memory_priority",
|
||||
"VK_EXT_pci_bus_info",
|
||||
|
@ -4628,7 +4690,9 @@ static const char * const vk_device_extensions[] =
|
|||
"VK_EXT_shader_subgroup_ballot",
|
||||
"VK_EXT_shader_subgroup_vote",
|
||||
"VK_EXT_shader_viewport_index_layer",
|
||||
"VK_EXT_subgroup_size_control",
|
||||
"VK_EXT_texel_buffer_alignment",
|
||||
"VK_EXT_texture_compression_astc_hdr",
|
||||
"VK_EXT_transform_feedback",
|
||||
"VK_EXT_validation_cache",
|
||||
"VK_EXT_vertex_attribute_divisor",
|
||||
|
|
|
@ -945,6 +945,7 @@ struct vulkan_device_funcs
|
|||
void (*p_vkCmdSetDiscardRectangleEXT)(VkCommandBuffer, uint32_t, uint32_t, const VkRect2D *);
|
||||
void (*p_vkCmdSetEvent)(VkCommandBuffer, VkEvent, VkPipelineStageFlags);
|
||||
void (*p_vkCmdSetExclusiveScissorNV)(VkCommandBuffer, uint32_t, uint32_t, const VkRect2D *);
|
||||
void (*p_vkCmdSetLineStippleEXT)(VkCommandBuffer, uint32_t, uint16_t);
|
||||
void (*p_vkCmdSetLineWidth)(VkCommandBuffer, float);
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
VkResult (*p_vkCmdSetPerformanceMarkerINTEL)(VkCommandBuffer, const VkPerformanceMarkerInfoINTEL_host *);
|
||||
|
@ -1363,6 +1364,7 @@ struct vulkan_instance_funcs
|
|||
USE_VK_FUNC(vkCmdSetDiscardRectangleEXT) \
|
||||
USE_VK_FUNC(vkCmdSetEvent) \
|
||||
USE_VK_FUNC(vkCmdSetExclusiveScissorNV) \
|
||||
USE_VK_FUNC(vkCmdSetLineStippleEXT) \
|
||||
USE_VK_FUNC(vkCmdSetLineWidth) \
|
||||
USE_VK_FUNC(vkCmdSetPerformanceMarkerINTEL) \
|
||||
USE_VK_FUNC(vkCmdSetPerformanceOverrideINTEL) \
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue