From bcc0ec8e6c4cc8ec577cf24506676f7c682145ca Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 8 Mar 2023 13:43:41 +0200 Subject: [PATCH] anv: enable KHR_maintenance5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: José Roberto de Souza Part-of: --- .../drivers/zink/ci/zink-anv-tgl-fails.txt | 2 -- src/intel/vulkan/anv_device.c | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/ci/zink-anv-tgl-fails.txt b/src/gallium/drivers/zink/ci/zink-anv-tgl-fails.txt index 7c9519ff8c4..10e9a57b829 100644 --- a/src/gallium/drivers/zink/ci/zink-anv-tgl-fails.txt +++ b/src/gallium/drivers/zink/ci/zink-anv-tgl-fails.txt @@ -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 diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 9cb7ec6b431..1c50a5c3977 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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;