VkPhysicalDevicePCIBusInfoPropertiesEXT ext_pci_properties = (VkPhysicalDevicePCIBusInfoPropertiesEXT) {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT
};
- VkPhysicalDeviceProperties2KHR properties = (VkPhysicalDeviceProperties2KHR){
- .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR
+ VkPhysicalDeviceProperties2 properties = (VkPhysicalDeviceProperties2){
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2
};
if (info->has_vulkan11 && info->has_pci_bus)
properties.pNext = &ext_pci_properties;
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT
};
- VkPhysicalDeviceProperties2KHR properties = (VkPhysicalDeviceProperties2KHR){
- .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR
+ VkPhysicalDeviceProperties2 properties = (VkPhysicalDeviceProperties2){
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2
};
if (info->has_vulkan11 && info->has_pci_bus)
bool group_has_cpu_device = false;
for (unsigned j = 0; j < physical_device_groups[i].physicalDeviceCount; j++) {
VkPhysicalDevice physical_device = physical_device_groups[i].physicalDevices[j];
- VkPhysicalDeviceProperties2KHR properties = (VkPhysicalDeviceProperties2KHR){
- .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR
+ VkPhysicalDeviceProperties2 properties = (VkPhysicalDeviceProperties2){
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2
};
info->GetPhysicalDeviceProperties(physical_device, &properties.properties);
group_has_cpu_device = properties.properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_CPU;
switch (pipelineBindPoint) {
case VK_PIPELINE_BIND_POINT_GRAPHICS: cmd_buffer_data->stats.stats[OVERLAY_PARAM_ENABLED_pipeline_graphics]++; break;
case VK_PIPELINE_BIND_POINT_COMPUTE: cmd_buffer_data->stats.stats[OVERLAY_PARAM_ENABLED_pipeline_compute]++; break;
- case VK_PIPELINE_BIND_POINT_RAY_TRACING_NV: cmd_buffer_data->stats.stats[OVERLAY_PARAM_ENABLED_pipeline_raytracing]++; break;
+ case VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR: cmd_buffer_data->stats.stats[OVERLAY_PARAM_ENABLED_pipeline_raytracing]++; break;
default: break;
}
struct device_data *device_data = cmd_buffer_data->device;
static VkResult overlay_QueueSubmit2KHR(
VkQueue queue,
uint32_t submitCount,
- const VkSubmitInfo2KHR* pSubmits,
+ const VkSubmitInfo2* pSubmits,
VkFence fence)
{
struct queue_data *queue_data = FIND(struct queue_data, queue);
return PIPE_FORMAT_Y16_U16V16_422_UNORM;
case VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM:
return PIPE_FORMAT_Y16_U16_V16_444_UNORM;
- case VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT:
+ case VK_FORMAT_A4R4G4B4_UNORM_PACK16:
return PIPE_FORMAT_B4G4R4A4_UNORM;
- case VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT:
+ case VK_FORMAT_A4B4G4R4_UNORM_PACK16:
return PIPE_FORMAT_R4G4B4A4_UNORM;
default:
return PIPE_FORMAT_NONE;
if (pCreateInfo->flags & VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR) {
info->create.flags |= VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT |
- VK_IMAGE_CREATE_EXTENDED_USAGE_BIT_KHR;
+ VK_IMAGE_CREATE_EXTENDED_USAGE_BIT;
- const VkImageFormatListCreateInfoKHR *format_list_in =
+ const VkImageFormatListCreateInfo *format_list_in =
vk_find_struct_const(pCreateInfo->pNext,
- IMAGE_FORMAT_LIST_CREATE_INFO_KHR);
+ IMAGE_FORMAT_LIST_CREATE_INFO);
assume(format_list_in && format_list_in->viewFormatCount > 0);
}
assert(format_found);
- info->format_list = (VkImageFormatListCreateInfoKHR) {
- .sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR,
+ info->format_list = (VkImageFormatListCreateInfo) {
+ .sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO,
.viewFormatCount = view_format_count,
.pViewFormats = view_formats,
};
VkIcdSurfaceBase *surface_base,
VkSurfaceCounterFlagsEXT *counters)
{
- *counters = VK_SURFACE_COUNTER_VBLANK_EXT;
+ *counters = VK_SURFACE_COUNTER_VBLANK_BIT_EXT;
return VK_SUCCESS;
}
for (unsigned i = 0; i < ARRAY_SIZE(sorted_formats); i++) {
vk_outarray_append_typed(VkSurfaceFormatKHR, &out, f) {
f->format = sorted_formats[i];
- f->colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR;
+ f->colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
}
}
vk_outarray_append_typed(VkSurfaceFormat2KHR, &out, f) {
assert(f->sType == VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR);
f->surfaceFormat.format = sorted_formats[i];
- f->surfaceFormat.colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR;
+ f->surfaceFormat.colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
}
}
.flags = info->create.flags,
};
- VkImageFormatListCreateInfoKHR format_list;
+ VkImageFormatListCreateInfo format_list;
if (info->create.flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) {
format_list = info->format_list;
format_list.pNext = NULL;
VkImageCreateInfo create;
struct wsi_image_create_info wsi;
VkExternalMemoryImageCreateInfo ext_mem;
- VkImageFormatListCreateInfoKHR format_list;
+ VkImageFormatListCreateInfo format_list;
VkImageDrmFormatModifierListCreateInfoEXT drm_mod_list;
bool prime_use_linear_modifier;
* we probably need to make their use conditional on this extension. */
case DRM_FORMAT_ARGB4444:
wsi_wl_display_add_vk_format_modifier(display, formats,
- VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT,
+ VK_FORMAT_A4R4G4B4_UNORM_PACK16,
WSI_WL_FMT_ALPHA, modifier);
break;
case DRM_FORMAT_XRGB4444:
wsi_wl_display_add_vk_format_modifier(display, formats,
- VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT,
+ VK_FORMAT_A4R4G4B4_UNORM_PACK16,
WSI_WL_FMT_OPAQUE, modifier);
break;
case DRM_FORMAT_ABGR4444:
wsi_wl_display_add_vk_format_modifier(display, formats,
- VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT,
+ VK_FORMAT_A4B4G4R4_UNORM_PACK16,
WSI_WL_FMT_ALPHA, modifier);
break;
case DRM_FORMAT_XBGR4444:
wsi_wl_display_add_vk_format_modifier(display, formats,
- VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT,
+ VK_FORMAT_A4B4G4R4_UNORM_PACK16,
WSI_WL_FMT_OPAQUE, modifier);
break;
#endif
{
switch (vk_format) {
#if 0
- case VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT:
+ case VK_FORMAT_A4R4G4B4_UNORM_PACK16:
return alpha ? DRM_FORMAT_ARGB4444 : DRM_FORMAT_XRGB4444;
- case VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT:
+ case VK_FORMAT_A4B4G4R4_UNORM_PACK16:
return alpha ? DRM_FORMAT_ABGR4444 : DRM_FORMAT_XBGR4444;
#endif
#if MESA_LITTLE_ENDIAN
vk_outarray_append_typed(VkSurfaceFormatKHR, &out, out_fmt) {
out_fmt->format = disp_fmt->vk_format;
- out_fmt->colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR;
+ out_fmt->colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
}
}
vk_outarray_append_typed(VkSurfaceFormat2KHR, &out, out_fmt) {
out_fmt->surfaceFormat.format = disp_fmt->vk_format;
- out_fmt->surfaceFormat.colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR;
+ out_fmt->surfaceFormat.colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
}
}
for (unsigned i = 0; i < ARRAY_SIZE(sorted_formats); i++) {
vk_outarray_append_typed(VkSurfaceFormatKHR, &out, f) {
f->format = sorted_formats[i];
- f->colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR;
+ f->colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
}
}
vk_outarray_append_typed(VkSurfaceFormat2KHR, &out, f) {
assert(f->sType == VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR);
f->surfaceFormat.format = sorted_formats[i];
- f->surfaceFormat.colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR;
+ f->surfaceFormat.colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
}
}
for (unsigned i = 0; i < count; i++) {
vk_outarray_append_typed(VkSurfaceFormatKHR, &out, f) {
f->format = sorted_formats[i];
- f->colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR;
+ f->colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
}
}
vk_outarray_append_typed(VkSurfaceFormat2KHR, &out, f) {
assert(f->sType == VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR);
f->surfaceFormat.format = sorted_formats[i];
- f->surfaceFormat.colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR;
+ f->surfaceFormat.colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
}
}