[d3d12] Fix end2end tests with Agility SDK With Agility SDK enabled, SM 6.10 becomes available, which results in some known DXIL issues in WARP, and enables features on certain bots (Intel UHD 630) requiring updates of ArchTierLimits. - Modify WorkgroupSizeUsesExplicitSubgroupSize test to iterate subgroup size up to subgroupMax / 2. This not only improves coverage, but allows us to test valid subgroup sizes on WARP (4) and skip the invalid ones. - Suppress a number of copy tests that crash in WARP's ShaderJIT (crbug.com/563423066). - Update ArchTierLimitsExhaustive for D3D12_Intel_R__UHD_Graphics_630 (which gains TextureCompressionUnaligned) and Microsoft Basic Render Driver (_Integrated_GPU and _CPU) when Agility SDK is enabled. Bug: 561616293, 563423066, 564583985 Change-Id: I7625fcd54451e97cce5112acce98de0d825cd1ae Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/344315 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
diff --git a/src/dawn/tests/end2end/ArchTierLimitsExhaustive.cpp b/src/dawn/tests/end2end/ArchTierLimitsExhaustive.cpp index 0500930..251bd7f 100644 --- a/src/dawn/tests/end2end/ArchTierLimitsExhaustive.cpp +++ b/src/dawn/tests/end2end/ArchTierLimitsExhaustive.cpp
@@ -224,8 +224,12 @@ // Microsoft device_map["D3D11_Microsoft_Basic_Render_Driver_Integrated_GPU"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,}; +device_map["D3D11_Microsoft_Basic_Render_Driver_CPU"] + = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,}; device_map["D3D12_Microsoft_Basic_Render_Driver_Integrated_GPU"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,}; +device_map["D3D12_Microsoft_Basic_Render_Driver_CPU"] + = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,}; // NVIDIA device_map["D3D11_NVIDIA_GeForce_GTX_1660"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,}; @@ -462,7 +466,9 @@ AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1}, "D3D12_Intel_R__UHD_Graphics_630"); AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1}, "D3D12_Int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 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0}, "Vulkan_Intel_R__UHD_Graphics_630"); @@ -490,10 +496,19 @@ // Microsoft AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0}, "D3D11_Microsoft_Basic_Render_Driver_Integrated_GPU"); +AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0}, "D3D11_Microsoft_Basic_Render_Driver_CPU"); AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1}, "D3D12_Microsoft_Basic_Render_Driver_Integrated_GPU"); AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1,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, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1}, "D3D12_Microsoft_Basic_Render_Driver_CPU"); // NVIDIA AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0}, "D3D11_NVIDIA_GeForce_GTX_1660"); @@ -661,6 +676,22 @@ {U8, I32, 16, 16, 16}, {I8, I32, 16, 16, 16}, }, "Vulkan_Radeon_RX_5500_XT"); + AddDevice({{I32, I32, 4, 4, 4}, + {I32, U32, 4, 4, 4}, + {U32, I32, 4, 4, 4}, + {U32, U32, 4, 4, 4}, + {F16, F16, 4, 4, 4}, + {F16, F32, 4, 4, 4}, + {F32, F32, 4, 4, 4}, + }, "D3D12_Microsoft_Basic_Render_Driver_CPU"); + AddDevice({{I32, I32, 4, 4, 4}, + {I32, U32, 4, 4, 4}, + {U32, I32, 4, 4, 4}, + {U32, U32, 4, 4, 4}, + {F16, F16, 4, 4, 4}, + {F16, F32, 4, 4, 4}, + {F32, F32, 4, 4, 4}, + }, "D3D12_Microsoft_Basic_Render_Driver_Integrated_GPU"); } // clang-format on
diff --git a/src/dawn/tests/end2end/CopyExternalTextureForBrowserTests.cpp b/src/dawn/tests/end2end/CopyExternalTextureForBrowserTests.cpp index 0460aa1..fea9e06 100644 --- a/src/dawn/tests/end2end/CopyExternalTextureForBrowserTests.cpp +++ b/src/dawn/tests/end2end/CopyExternalTextureForBrowserTests.cpp
@@ -283,6 +283,10 @@ const wgpu::Extent3D& dstTextureSize, const wgpu::CopyTextureForBrowserOptions options = {}, const wgpu::TextureAspect dstAspect = wgpu::TextureAspect::All) { + // TODO(crbug.com/563423066): On D3D12 WARP with DXC (DXIL), WARP's ShaderJIT crashes in + // Implement_DXIL_ShuffleVector. + DAWN_SUPPRESS_TEST_IF(this->IsD3D12() && this->IsWARP()); + wgpu::ExternalTexture externalTexture = this->CreateDefaultExternalTexture(); wgpu::ImageCopyExternalTexture srcImageCopyExternalTexture; srcImageCopyExternalTexture.externalTexture = externalTexture; @@ -327,10 +331,6 @@ DAWN_SUPPRESS_TEST_IF(IsOpenGLES() && IsAndroid() && IsQualcomm() && srcCopyRect != CopyRect::TopLeft); - // TODO(crbug.com/563423066): On D3D12 WARP with DXC (DXIL), WARP's ShaderJIT crashes in - // Implement_DXIL_ShuffleVector. - DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsWARP()); - float scaleFactor = 1.0; switch (scaleType) {
diff --git a/src/dawn/tests/end2end/CopyTextureForBrowserTests.cpp b/src/dawn/tests/end2end/CopyTextureForBrowserTests.cpp index 53c03fdc..c72e28d 100644 --- a/src/dawn/tests/end2end/CopyTextureForBrowserTests.cpp +++ b/src/dawn/tests/end2end/CopyTextureForBrowserTests.cpp
@@ -594,6 +594,10 @@ protected: void DoBasicCopyTest(const wgpu::Extent3D& copySize, const wgpu::CopyTextureForBrowserOptions options = {}) { + // TODO(crbug.com/563423066): On D3D12 WARP with DXC (DXIL), WARP's ShaderJIT crashes in + // Implement_DXIL_ShuffleVector. + DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsWARP()); + TextureSpec textureSpec; textureSpec.textureSize = copySize; @@ -1191,6 +1195,10 @@ // dst texture format DAWN_SUPPRESS_TEST_IF(IsOpenGL() && IsLinux() && IsDstFormatSrgbFormats()); + // TODO(crbug.com/563423066): On D3D12 WARP with DXC (DXIL), WARP's ShaderJIT crashes in + // Implement_DXIL_ShuffleVector. + DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsWARP()); + DoColorConversionTest(); }
diff --git a/src/dawn/tests/end2end/MultithreadTests.cpp b/src/dawn/tests/end2end/MultithreadTests.cpp index 0151b80..4ec1339 100644 --- a/src/dawn/tests/end2end/MultithreadTests.cpp +++ b/src/dawn/tests/end2end/MultithreadTests.cpp
@@ -1861,6 +1861,10 @@ TEST_P(MultithreadTextureCopyTests, CopyTextureForBrowserNoRace) { DAWN_SUPPRESS_TEST_IF(IsOpenGL() && IsLinux()); + // TODO(crbug.com/563423066): On D3D12 WARP with DXC (DXIL), WARP's ShaderJIT crashes in + // Implement_DXIL_ShuffleVector. + DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsWARP()); + enum class Step { Begin, WriteTexture, @@ -1928,6 +1932,10 @@ TEST_P(MultithreadTextureCopyTests, CopyTextureForBrowserErrorNoDeadLock) { DAWN_SUPPRESS_TEST_IF(IsOpenGL() && IsLinux()); + // TODO(crbug.com/563423066): On D3D12 WARP with DXC (DXIL), WARP's ShaderJIT crashes in + // Implement_DXIL_ShuffleVector. + DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsWARP()); + DAWN_TEST_UNSUPPORTED_IF(HasToggleEnabled("skip_validation")); enum class Step {
diff --git a/src/dawn/tests/end2end/ShaderTests.cpp b/src/dawn/tests/end2end/ShaderTests.cpp index 12f90dd..1ac360e 100644 --- a/src/dawn/tests/end2end/ShaderTests.cpp +++ b/src/dawn/tests/end2end/ShaderTests.cpp
@@ -3066,6 +3066,10 @@ TEST_P(ShaderTests, SkiaGraphiteVertexShaderBugOnIntelGen9) { DAWN_TEST_UNSUPPORTED_IF(IsCompatibilityMode()); + // TODO(crbug.com/563423066): On D3D12 WARP with DXC (DXIL), WARP's ShaderJIT crashes in + // Implement_DXIL_ShuffleVector. + DAWN_SUPPRESS_TEST_IF(IsD3D12() && IsWARP()); + // This test uses a shader derived from Skia's analytic rrect rendering. // It is complex and uses a large number of vertex attributes. // The vertex shader calculates the position and other data needed for the rounded rectangle.
diff --git a/src/dawn/tests/end2end/SubgroupMatrixTests.cpp b/src/dawn/tests/end2end/SubgroupMatrixTests.cpp index 260b8e5..67a39d8 100644 --- a/src/dawn/tests/end2end/SubgroupMatrixTests.cpp +++ b/src/dawn/tests/end2end/SubgroupMatrixTests.cpp
@@ -491,42 +491,57 @@ // A size smaller than the maximum is needed to distinguish explicit-subgroup-size validation // from the default maximum-subgroup-size validation. DAWN_TEST_UNSUPPORTED_IF(info.subgroupMinSize == info.subgroupMaxSize); - const uint32_t subgroupSize = info.subgroupMaxSize / 2; - DAWN_TEST_UNSUPPORTED_IF(subgroupSize < info.subgroupMinSize); - - // Intel Gen12 cannot use subgroup size 8 on D3D12 despite advertising it as the minimum. - DAWN_TEST_UNSUPPORTED_IF(IsD3D12() && IsIntelGen12() && subgroupSize == 8); bool testedConfig = false; - for (size_t i = 0; i < subgroupMatrixConfigs.configCount; i++) { - const auto& config = subgroupMatrixConfigs.configs[i]; + for (uint32_t subgroupSize = info.subgroupMinSize; subgroupSize < info.subgroupMaxSize; + subgroupSize *= 2) { + for (size_t i = 0; i < subgroupMatrixConfigs.configCount; i++) { + const auto& config = subgroupMatrixConfigs.configs[i]; - std::ostringstream configTrace; - configTrace << config; - SCOPED_TRACE(configTrace.str()); - testedConfig = true; + std::ostringstream configTrace; + configTrace << config << " (subgroupSize=" << subgroupSize << ")"; - std::ostringstream shader; - shader << "enable subgroups;\n"; - shader << "enable subgroup_size_control;\n"; - shader << "enable chromium_experimental_subgroup_matrix;\n"; - if (config.resultComponentType == wgpu::SubgroupMatrixComponentType::F16) { - shader << "enable f16;\n"; - } - shader << "alias ResultComponentType = " - << ComponentTypeToWgslType(config.resultComponentType) << ";\n"; - shader << "const M = " << config.M << ";\n"; - shader << "const N = " << config.N << ";\n"; - shader << "const SubgroupSize = " << subgroupSize << ";\n"; - shader << R"( + // Intel Gen12 cannot use subgroup size 8 on D3D12 despite advertising it as the + // minimum. + if (IsD3D12() && IsIntelGen12() && subgroupSize == 8) { + std::cout << "Skipping config: " << configTrace.str() << "\n"; + continue; + } + + // TODO(crbug.com/564583985): Remove this skip once SubgroupMatrixConfig exposes + // supported subgroup sizes. On D3D12 WARP, 4x4x4 configs are only supported at + // subgroup_size(4). + if (IsD3D12() && IsWARP() && config.M == 4 && config.N == 4 && config.K == 4 && + subgroupSize != 4) { + std::cout << "Skipping config: " << configTrace.str() << "\n"; + continue; + } + + SCOPED_TRACE(configTrace.str()); + testedConfig = true; + + std::ostringstream shader; + shader << "enable subgroups;\n"; + shader << "enable subgroup_size_control;\n"; + shader << "enable chromium_experimental_subgroup_matrix;\n"; + if (config.resultComponentType == wgpu::SubgroupMatrixComponentType::F16) { + shader << "enable f16;\n"; + } + shader << "alias ResultComponentType = " + << ComponentTypeToWgslType(config.resultComponentType) << ";\n"; + shader << "const M = " << config.M << ";\n"; + shader << "const N = " << config.N << ";\n"; + shader << "const SubgroupSize = " << subgroupSize << ";\n"; + shader << R"( @compute @workgroup_size(SubgroupSize) @subgroup_size(SubgroupSize) fn main() { _ = subgroup_matrix_result<ResultComponentType, N, M>(); })"; - wgpu::ComputePipelineDescriptor csDesc; - csDesc.compute.module = utils::CreateShaderModule(device, shader.str()); - device.CreateComputePipeline(&csDesc); + wgpu::ComputePipelineDescriptor csDesc; + csDesc.compute.module = utils::CreateShaderModule(device, shader.str()); + device.CreateComputePipeline(&csDesc); + } } DAWN_TEST_UNSUPPORTED_IF(!testedConfig); }