radv: advertise VK_EXT_image_2d_view_of_3d
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 3 May 2022 06:51:14 +0000 (08:51 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 May 2022 17:53:25 +0000 (17:53 +0000)
This pass new dEQP-VK.pipeline.*.image_2d_view_3d_image.*.

This should also fix a GPU hang with Deus Ex: Mankind Divided and Zink.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16294>

docs/relnotes/new_features.txt
src/amd/vulkan/radv_device.c
src/gallium/drivers/zink/ci/zink-radv-fails.txt

index a18e567..a1dd900 100644 (file)
@@ -1,3 +1,4 @@
 WGL_ARB_create_context_robustness
 d3d12 ARB_robust_buffer_access_behavior
 VK_EXT_robustness2 for lavapipe
+VK_EXT_image_2d_view_of_3d on RADV
index 0007096..4f0f8e1 100644 (file)
@@ -487,6 +487,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
       .EXT_global_priority = true,
       .EXT_global_priority_query = true,
       .EXT_host_query_reset = true,
+      .EXT_image_2d_view_of_3d = true,
       .EXT_image_drm_format_modifier = device->rad_info.chip_class >= GFX9,
       .EXT_image_robustness = true,
       .EXT_image_view_min_lod = true,
@@ -1719,6 +1720,13 @@ radv_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
          features->depthClipControl = true;
          break;
       }
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_2D_VIEW_OF_3D_FEATURES_EXT: {
+         VkPhysicalDeviceImage2DViewOf3DFeaturesEXT *features =
+            (VkPhysicalDeviceImage2DViewOf3DFeaturesEXT *)ext;
+         features->image2DViewOf3D = true;
+         features->sampler2DViewOf3D = false;
+         break;
+      }
       default:
          break;
       }
index b455fed..1a0afd1 100644 (file)
@@ -10,37 +10,6 @@ KHR-GL46.sparse_texture_tests.InternalFormatQueries,Fail
 KHR-GL46.sparse_texture_tests.SparseTextureAllocation,Fail
 KHR-GL46.sparse_texture_tests.SparseTextureCommitment,Fail
 
-#4562
-dEQP-GLES31.functional.image_load_store.3d.load_store.r32f_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.r32i_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.r32ui_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba16f_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba16i_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba16ui_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba32f_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba32i_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba32ui_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba8_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba8_snorm_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba8i_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.load_store.rgba8ui_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.r32f_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.r32i_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.r32ui_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba16f_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba16i_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba16ui_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba32f_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba32i_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba32ui_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba8_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba8_snorm_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba8i_single_layer,Fail
-dEQP-GLES31.functional.image_load_store.3d.store.rgba8ui_single_layer,Fail
-
-# probably fixed by EXT_2d_view_of_3d support
-KHR-GL46.shader_image_load_store.non-layered_binding,Fail
-
 # amd issue #6305
 KHR-GL46.shader_ballot_tests.ShaderBallotFunctionRead,Fail
 
@@ -424,10 +393,6 @@ spec@arb_sample_shading@samplemask 8@sample mask_in_one,Fail
 
 spec@arb_shader_clock@execution@clock2x32,Fail
 spec@arb_shader_clock@execution@clock,Fail
-spec@arb_shader_image_load_store@layer,Fail
-spec@arb_shader_image_load_store@layer@image3D/non-layered binding test,Fail
-spec@arb_shader_image_load_store@level@3D level binding test,Fail
-spec@arb_shader_image_load_store@level,Fail
 spec@arb_shader_texture_lod@execution@arb_shader_texture_lod-texgradcube,Fail
 spec@arb_shader_texture_lod@execution@glsl-fs-shadow2dgradarb-01,Fail
 spec@arb_shader_texture_lod@execution@glsl-fs-shadow2dgradarb-03,Fail