anv: enable KHR_maintenance5

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24387>
This commit is contained in:
Lionel Landwerlin 2023-03-08 13:43:41 +02:00
parent 688bb37552
commit bcc0ec8e6c
2 changed files with 16 additions and 2 deletions

View file

@ -575,7 +575,6 @@ spec@arb_texture_buffer_object@formats (fs- arb)@GL_ALPHA16UI_EXT,Fail
spec@arb_texture_buffer_object@formats (fs- arb)@GL_ALPHA32F_ARB,Fail
spec@arb_texture_buffer_object@formats (fs- arb)@GL_ALPHA32I_EXT,Fail
spec@arb_texture_buffer_object@formats (fs- arb)@GL_ALPHA32UI_EXT,Fail
spec@arb_texture_buffer_object@formats (fs- arb)@GL_ALPHA8,Fail
spec@arb_texture_buffer_object@formats (fs- arb)@GL_ALPHA8I_EXT,Fail
spec@arb_texture_buffer_object@formats (fs- arb)@GL_ALPHA8UI_EXT,Fail
spec@arb_texture_buffer_object@formats (fs- arb)@GL_LUMINANCE_ALPHA16F_ARB,Fail
@ -605,7 +604,6 @@ spec@arb_texture_buffer_object@formats (vs- arb)@GL_ALPHA16UI_EXT,Fail
spec@arb_texture_buffer_object@formats (vs- arb)@GL_ALPHA32F_ARB,Fail
spec@arb_texture_buffer_object@formats (vs- arb)@GL_ALPHA32I_EXT,Fail
spec@arb_texture_buffer_object@formats (vs- arb)@GL_ALPHA32UI_EXT,Fail
spec@arb_texture_buffer_object@formats (vs- arb)@GL_ALPHA8,Fail
spec@arb_texture_buffer_object@formats (vs- arb)@GL_ALPHA8I_EXT,Fail
spec@arb_texture_buffer_object@formats (vs- arb)@GL_ALPHA8UI_EXT,Fail
spec@arb_texture_buffer_object@formats (vs- arb)@GL_LUMINANCE_ALPHA16F_ARB,Fail

View file

@ -242,6 +242,7 @@ get_device_extensions(const struct anv_physical_device *device,
.KHR_maintenance2 = true,
.KHR_maintenance3 = true,
.KHR_maintenance4 = true,
.KHR_maintenance5 = true,
.KHR_map_memory2 = true,
.KHR_multiview = true,
.KHR_performance_query =
@ -837,6 +838,9 @@ get_features(const struct anv_physical_device *pdevice,
/* VK_EXT_pipeline_robustness */
.pipelineRobustness = true,
/* VK_KHR_maintenance5 */
.maintenance5 = true,
};
/* The new DOOM and Wolfenstein games require depthBounds without
@ -2263,6 +2267,18 @@ void anv_GetPhysicalDeviceProperties2(
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_PROPERTIES_KHR: {
VkPhysicalDeviceMaintenance5PropertiesKHR *properties =
(VkPhysicalDeviceMaintenance5PropertiesKHR *)ext;
properties->earlyFragmentMultisampleCoverageAfterSampleCounting = false;
properties->earlyFragmentSampleMaskTestBeforeSampleCounting = false;
properties->depthStencilSwizzleOneSupport = true;
properties->polygonModePointSize = true;
properties->nonStrictSinglePixelWideLinesUseParallelogram = false;
properties->nonStrictWideLinesUseParallelogram = false;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_EXT: {
VkPhysicalDeviceMeshShaderPropertiesEXT *properties =
(VkPhysicalDeviceMeshShaderPropertiesEXT *)ext;