blob: bfbb7bc6296cf25c41d635a35aec39af849b3683 [file]
// Copyright 2025 The Dawn & Tint Authors
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
// list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <algorithm>
#include <cstdint>
#include <map>
#include <set>
#include <string>
#include <vector>
#include "dawn/utils/ComboLimits.h"
#include "src/dawn/common/LinkedList.h"
#include "src/dawn/tests/DawnTest.h"
#include "src/dawn/utils/WGPUHelpers.h"
#include "webgpu/webgpu_cpp.h"
// The purpose of these tests is to prevent regressions of features and limits on architectures that
// are known to have these supported capabilities.
//
// Why? Because of the nature of feature/limit support in WebGPU we can easily accidentally drop
// (regress) optional capabilities for specific devices and dawn/CTS testing machinery and even
// external webgpu clients will respond gracefully. We (dawn) never want to silently regress
// features on critical platforms. If we are regressing it should be a deliberate decision which may
// involve changes to the tests below.
//
// How? Currently it is difficult to know our features/limit support for all hardware (could even be
// driver version dependent). So here we conservatively assert that specific architectures have
// specific features/limits.
//
// When? This file may need to be updated with new conservative tests if the CQ changes hardware or
// if we have deliberately chosen to regress specific features/limits on some devices.
//
// Not an official dawn/webgpu resource but this page can provide insights into features/limits:
// https://web3dsurvey.com/webgpu
namespace dawn {
namespace {
using TierArchInfoTestBase = DawnTestWithParams<>;
class TierArchInfoTest_TieredMaxLimits : public TierArchInfoTestBase {
protected:
void SetUp() override {
TierArchInfoTestBase::SetUp();
DAWN_TEST_UNSUPPORTED_IF(UsesWire());
}
bool GetRequireUseTieredLimits() override { return true; }
void GetRequiredLimits(const dawn::utils::ComboLimits& supported,
dawn::utils::ComboLimits& required) override {
supported.UnlinkedCopyTo(&required);
}
std::vector<wgpu::FeatureName> GetRequiredFeatures() override {
std::vector<wgpu::FeatureName> features;
if (SupportsFeatures({wgpu::FeatureName::ChromiumExperimentalSubgroupMatrix})) {
features.push_back(wgpu::FeatureName::ChromiumExperimentalSubgroupMatrix);
}
if (SupportsFeatures({wgpu::FeatureName::ShaderF16})) {
features.push_back(wgpu::FeatureName::ShaderF16);
}
return features;
}
std::string GetFullParamString(int alternate = 0) {
std::stringstream param_names_all;
param_names_all << this->GetParam();
DawnTestBase::PrintToStringParamName param_printer{""};
std::string full_param =
param_printer.SanitizeParamName(param_names_all.str(), this->GetAdapterProperties(), 0);
// TODO(crbug.com/363031535): Argument buffers will enable us to raise limits but we won't
// do so until it's safely shipped. In the meantime it shouldn't affect limits, so strip it
// from the device name. Remove this once we stop testing both modes (in DawnTest).
for (std::string_view suffix :
{"__e_metal_use_argument_buffers", "__d_metal_use_argument_buffers"}) {
if (size_t pos = full_param.find(suffix); pos != std::string::npos) {
full_param.erase(pos, suffix.size());
}
}
if (alternate != 0) {
full_param += "_alt";
full_param += std::to_string(alternate);
}
return full_param;
}
std::string FeatureNameToString(wgpu::FeatureName f) {
std::stringstream feature_name;
feature_name << f;
auto feature_name_string = feature_name.str();
std::string prefix = "FeatureName::";
if (feature_name_string.find(prefix) == std::string::npos) {
return feature_name_string;
}
return feature_name_string.substr(prefix.size());
}
std::string SubgroupMatrixComponentTypeToString(wgpu::SubgroupMatrixComponentType ty) {
std::stringstream component_name;
component_name << ty;
auto component_name_string = component_name.str();
std::string prefix = "SubgroupMatrixComponentType::";
if (component_name_string.find(prefix) == std::string::npos) {
return component_name_string;
}
return component_name_string.substr(prefix.size());
}
};
// TODO(https://issues.chromium.org/467170771): Test extension limits as well.
// The indices are used to match the column in the map below.
#define ENUM_LIST_LIMITS \
/* field name */ \
ENUM_LIMIT_PROPERTY(maxTextureDimension1D) /* 0 */ \
ENUM_LIMIT_PROPERTY(maxTextureDimension2D) /* 1 */ \
ENUM_LIMIT_PROPERTY(maxTextureDimension3D) /* 2 */ \
ENUM_LIMIT_PROPERTY(maxTextureArrayLayers) /* 3 */ \
ENUM_LIMIT_PROPERTY(maxBindGroups) /* 4 */ \
ENUM_LIMIT_PROPERTY(maxBindGroupsPlusVertexBuffers) /* 5 */ \
ENUM_LIMIT_PROPERTY(maxBindingsPerBindGroup) /* 6 */ \
ENUM_LIMIT_PROPERTY(maxDynamicUniformBuffersPerPipelineLayout) /* 7 */ \
ENUM_LIMIT_PROPERTY(maxDynamicStorageBuffersPerPipelineLayout) /* 8 */ \
ENUM_LIMIT_PROPERTY(maxSampledTexturesPerShaderStage) /* 9 */ \
ENUM_LIMIT_PROPERTY(maxSamplersPerShaderStage) /* 10 */ \
ENUM_LIMIT_PROPERTY(maxStorageBuffersPerShaderStage) /* 11 */ \
ENUM_LIMIT_PROPERTY(maxStorageTexturesPerShaderStage) /* 12 */ \
ENUM_LIMIT_PROPERTY(maxUniformBuffersPerShaderStage) /* 13 */ \
ENUM_LIMIT_PROPERTY(maxUniformBufferBindingSize) /* 14 */ \
ENUM_LIMIT_PROPERTY(maxStorageBufferBindingSize) /* 15 */ \
ENUM_LIMIT_PROPERTY(minUniformBufferOffsetAlignment) /* 16 */ \
ENUM_LIMIT_PROPERTY(minStorageBufferOffsetAlignment) /* 17 */ \
ENUM_LIMIT_PROPERTY(maxVertexBuffers) /* 18 */ \
ENUM_LIMIT_PROPERTY(maxBufferSize) /* 19 */ \
ENUM_LIMIT_PROPERTY(maxVertexAttributes) /* 20 */ \
ENUM_LIMIT_PROPERTY(maxVertexBufferArrayStride) /* 21 */ \
ENUM_LIMIT_PROPERTY(maxInterStageShaderVariables) /* 22 */ \
ENUM_LIMIT_PROPERTY(maxColorAttachments) /* 23 */ \
ENUM_LIMIT_PROPERTY(maxColorAttachmentBytesPerSample) /* 24 */ \
ENUM_LIMIT_PROPERTY(maxComputeWorkgroupStorageSize) /* 25 */ \
ENUM_LIMIT_PROPERTY(maxComputeInvocationsPerWorkgroup) /* 26 */ \
ENUM_LIMIT_PROPERTY(maxComputeWorkgroupSizeX) /* 27 */ \
ENUM_LIMIT_PROPERTY(maxComputeWorkgroupSizeY) /* 28 */ \
ENUM_LIMIT_PROPERTY(maxComputeWorkgroupSizeZ) /* 29 */ \
ENUM_LIMIT_PROPERTY(maxComputeWorkgroupsPerDimension) /* 30 */ \
ENUM_LIMIT_PROPERTY(maxImmediateSize) /* 31 */ \
ENUM_LIMIT_PROPERTY(maxStorageBuffersInVertexStage) /* 32 */ \
ENUM_LIMIT_PROPERTY(maxStorageTexturesInVertexStage) /* 33 */ \
ENUM_LIMIT_PROPERTY(maxStorageBuffersInFragmentStage) /* 34 */ \
ENUM_LIMIT_PROPERTY(maxStorageTexturesInFragmentStage) /* 35 */
static const int kNumElements =
#define ENUM_LIMIT_PROPERTY(fieldName) 1 +
ENUM_LIST_LIMITS + 0;
#undef ENUM_LIMIT_PROPERTY
static_assert(
kNumElements == utils::ComboLimits::kMemberCount,
"Combo limits structure has a different number of limits than the above ENUM_LIST_LIMITS");
TEST_P(TierArchInfoTest_TieredMaxLimits, ExhaustiveTestAllFields) {
// SwiftShader will return a lower limit than any modern device on CQ.
DAWN_TEST_UNSUPPORTED_IF(IsSwiftshader());
std::map<std::string, std::array<uint64_t, kNumElements>> device_map;
// clang-format off
{
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36
// AMD
device_map["Metal_AMD_Radeon_Pro_5300M"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 10, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 10, 8, 10, 8,};
device_map["Metal_AMD_Radeon_Pro_555X"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 10, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 0, 10, 8, 10, 8,};
device_map["Metal_AMD_Radeon_Pro_555X_alt1"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 10, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 10, 8, 10, 8,};
device_map["Metal_AMD_Radeon_Pro_560X"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 10, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 10, 8, 10, 8,};
device_map["D3D11_Radeon_RX_5500_XT"] = { 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_Radeon_RX_5500_XT"] = { 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["Vulkan_Radeon_RX_5500_XT"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 8, 4, 16, 16, 16, 4, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 4, 16, 4,};
// Apple
device_map["Metal_Apple_M2"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 10, 8, 12, 65536, 4294967292, 256, 256, 8, 4294967292, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 10, 8, 10, 8,};
// ARM
device_map["OpenGLES_Mali_G78_compat"] = { 8192, 8192, 2048, 256, 4, 24, 1000, 8, 4, 16, 16, 8, 4, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 16, 8, 128, 32768, 256, 256, 256, 64, 65535, 64, 0, 0, 4, 4,};
device_map["OpenGLES_Mali_G78_compat_alt1"] = { 8192, 8192, 2048, 256, 4, 24, 1000, 8, 4, 16, 16, 8, 4, 12, 65536, 268435456, 256, 256, 8, 2147483648, 30, 2048, 16, 8, 128, 32768, 256, 256, 256, 64, 65535, 64, 0, 0, 4, 4,};
device_map["Vulkan_Mali_G78"] = { 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, 256, 256, 256, 64, 65535, 64, 16, 8, 16, 8,};
device_map["Vulkan_Mali_G78_alt1"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 268435456, 256, 256, 8, 4294967292, 30, 2048, 28, 8, 128, 32768, 256, 256, 256, 64, 65535, 64, 16, 8, 16, 8,};
// Intel
device_map["D3D11_Intel_R__UHD_Graphics_630"] = { 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_Intel_R__UHD_Graphics_630"] = { 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["Metal_Intel_R__UHD_Graphics_630"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 10, 8, 12, 65536, 2147483644, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 10, 8, 10, 8,};
device_map["OpenGLES_ANGLE__Intel__Intel_R__UHD_Graphics_630__0x00009BC5__Direct3D11_vs_5_0_ps_5_0__D3D11_31_0_101_2127__compat"]
= { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 16, 16, 16, 8, 12, 65536, 134217728, 256, 256, 8, 2147483648, 16, 2048, 16, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 0, 16, 8, 16, 8,};
device_map["Vulkan_Intel_R__UHD_Graphics_630"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 536870912, 256, 256, 8, 4294967292, 30, 2048, 28, 8, 128, 32768, 256, 256, 256, 64, 65535, 64, 16, 8, 16, 8,};
device_map["Vulkan_Intel_R__UHD_Graphics_630__CML_GT2"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 8, 4, 16, 16, 16, 4, 12, 65536, 4294967292, 256, 256, 8, 4294967292, 16, 2048, 16, 8, 128, 65536, 256, 256, 256, 64, 65535, 64, 16, 4, 16, 4,};
device_map["D3D11_Intel_R__UHD_Graphics_770"] = { 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_Intel_R__UHD_Graphics_770"] = { 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["OpenGLES_ANGLE__Intel__Intel_R__UHD_Graphics_770__0x00004680__Direct3D11_vs_5_0_ps_5_0__D3D11_31_0_101_5333__compat"]
= { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 16, 16, 16, 8, 12, 65536, 134217728, 256, 256, 8, 2147483648, 16, 2048, 16, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
device_map["Vulkan_Intel_R__UHD_Graphics_770"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 536870912, 256, 256, 8, 4294967292, 30, 2048, 28, 8, 128, 32768, 256, 256, 256, 64, 65535, 64, 16, 8, 16, 8,};
device_map["Vulkan_Intel_R__UHD_Graphics_770__ADL_S_GT1"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 8, 4, 16, 16, 16, 4, 12, 65536, 4294967292, 256, 256, 8, 4294967292, 16, 2048, 16, 8, 128, 65536, 1024, 1024, 1024, 64, 65535, 64, 16, 4, 16, 4,};
device_map["Vulkan_Intel_R__Iris_R__Xe_Graphics__TGL_GT2"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 8, 4, 16, 16, 16, 4, 12, 65536, 4294967292, 256, 256, 8, 4294967292, 16, 2048, 28, 8, 128, 65536, 1024, 1024, 1024, 64, 65535, 64, 16, 4, 16, 4,};
// llvmpipe
device_map["Vulkan_llvmpipe__LLVM_19_1_7__256_bits"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 134217728, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
// 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,};
device_map["D3D12_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,};
device_map["Vulkan_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, 49152, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
device_map["OpenGLES_ANGLE__NVIDIA__NVIDIA_GeForce_GTX_1660__0x00002184__Direct3D11_vs_5_0_ps_5_0__D3D11_31_0_15_4601__compat"]
= { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 16, 16, 16, 8, 12, 65536, 134217728, 256, 256, 8, 2147483648, 16, 2048, 16, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
device_map["OpenGLES_ANGLE__NVIDIA__NVIDIA_GeForce_GTX_1660__0x00002184__Direct3D11_vs_5_0_ps_5_0__D3D11_32_0_15_7602__compat"]
= { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 16, 16, 16, 8, 12, 65536, 134217728, 256, 256, 8, 2147483648, 16, 2048, 16, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
device_map["Vulkan_NVIDIA_GeForce_GTX_1660"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 2147483644, 256, 256, 8, 4294967292, 30, 2048, 28, 8, 128, 49152, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
// Qualcomm
device_map["OpenGLES_Adreno__TM__640_compat"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 8, 4, 16, 16, 8, 4, 12, 65536, 536870912, 256, 256, 8, 2147483648, 30, 2048, 16, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 0, 4, 4, 4,};
device_map["Vulkan_Adreno__TM__640"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 536870912, 256, 256, 8, 1073741824, 30, 2048, 16, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
device_map["D3D11_Qualcomm_R__Adreno_TM__X1_85_GPU"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 268435456, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
device_map["D3D12_Qualcomm_R__Adreno_TM__X1_85_GPU"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 268435456, 256, 256, 8, 2147483648, 30, 2048, 28, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
device_map["Vulkan_Qualcomm_R__Adreno_TM__X1_85_GPU"] = { 16384, 16384, 2048, 2048, 4, 24, 1000, 10, 8, 48, 16, 16, 8, 12, 65536, 134217728, 256, 256, 8, 2147483648, 30, 2048, 16, 8, 128, 32768, 1024, 1024, 1024, 64, 65535, 64, 16, 8, 16, 8,};
// SwiftShader
device_map["OpenGLES_ANGLE__Google__Vulkan_1_3_0__SwiftShader_Device__Subzero___0x0000C0DE____SwiftShader_driver_5_0_0__compat"]
= { 8192, 8192, 2048, 256, 4, 24, 1000, 10, 8, 16, 16, 16, 8, 12, 16384, 1073741824, 256, 256, 8, 2147483648, 16, 2048, 16, 4, 64, 32768, 256, 256, 256, 64, 65535, 64, 16, 8, 16, 8,};
}
// clang-format on
auto& supported_limits = GetSupportedLimits();
// We need alternates mostly due to differences in driver versions.
// Some devices might be on one driver that supports limit X while others might be on a driver
// that supports limit Y.
// In the case of alternates we append a "_alt{n}" where n starts at 1 (first alternate).
bool encountered_error = false;
int alternate_index = 0;
bool has_next_alternate = true;
std::string full_param;
do {
encountered_error = false;
full_param = GetFullParamString(alternate_index);
auto iter_curr_limits = device_map.find(full_param);
alternate_index++;
has_next_alternate = device_map.contains(GetFullParamString(alternate_index));
if (iter_curr_limits == device_map.end()) {
// CQ bots will pass in '--test-launcher-bot-mode' as a command line parameter.
// In this case, we didn't find any results, so we want to make sure we report an error
// as this is a new CQ bot and we need to update the test results.
if (IsTestLauncherBotMode()) {
encountered_error = true;
} else {
// Skipping the test when the device params does not match limits us to only testing
// known CQ (and try) bots.
GTEST_SKIP();
}
}
int curr_idx = 0;
#define ENUM_LIMIT_PROPERTY(fieldName) \
if (!encountered_error && \
supported_limits.fieldName != static_cast<decltype(supported_limits.fieldName)>( \
(iter_curr_limits->second)[curr_idx])) { \
/* maybe the alternate will pass. Do not surface error.*/ \
if (!has_next_alternate) { \
EXPECT_EQ(supported_limits.fieldName, \
static_cast<decltype(supported_limits.fieldName)>( \
(iter_curr_limits->second)[curr_idx])); \
} \
/*Report first error only*/ \
encountered_error = true; \
} \
curr_idx++;
ENUM_LIST_LIMITS
#undef ENUM_LIMIT_PROPERTY
} while (has_next_alternate && encountered_error);
if (encountered_error) {
std::string expected_str =
"\n Mismatch found! The full set of correct limits for this device are:\n"
" device_map[\"" +
full_param + "\"] = { " +
#define ENUM_LIMIT_PROPERTY(fieldName) " " + std::to_string(supported_limits.fieldName) + "," +
ENUM_LIST_LIMITS
#undef ENUM_LIMIT_PROPERTY
"};";
SCOPED_TRACE(expected_str);
EXPECT_FALSE(encountered_error);
}
}
TEST_P(TierArchInfoTest_TieredMaxLimits, ExhaustiveTestAllFeatures) {
// SwiftShader will return a lower limit than any modern device on CQ.
DAWN_TEST_UNSUPPORTED_IF(IsSwiftshader());
std::multimap<std::string, std::set<uint32_t>> device_map;
using enum wgpu::FeatureName;
// The indices are used to match the column in the map below.
std::set all_feature_enums = {
CoreFeaturesAndLimits, /* 0 */
DepthClipControl, /* 1 */
Depth32FloatStencil8, /* 2 */
TextureCompressionBC, /* 3 */
TextureCompressionBCSliced3D, /* 4 */
TextureCompressionETC2, /* 5 */
TextureCompressionASTC, /* 6 */
TextureCompressionASTCSliced3D, /* 7 */
TimestampQuery, /* 8 */
IndirectFirstInstance, /* 9 */
ShaderF16, /* 10 */
RG11B10UfloatRenderable, /* 11 */
BGRA8UnormStorage, /* 12 */
Float32Filterable, /* 13 */
Float32Blendable, /* 14 */
ClipDistances, /* 15 */
DualSourceBlending, /* 16 */
Subgroups, /* 17 */
TextureFormatsTier1, /* 18 */
TextureFormatsTier2, /* 19 */
PrimitiveIndex, /* 20 */
TextureComponentSwizzle, /* 21 */
SubgroupSizeControl, /* 22 */
TextureCompressionUnaligned, /* 23 */
AtomicVec2uMinMax, /* 24 */
DawnInternalUsages, /* 25 */
DawnMultiPlanarFormats, /* 26 */
DawnNative, /* 27 */
ChromiumExperimentalTimestampQueryInsidePasses, /* 28 */
ImplicitDeviceSynchronization, /* 29 */
TransientAttachments, /* 30 */
MSAARenderToSingleSampled, /* 31 */
D3D11MultithreadProtected, /* 32 */
ANGLETextureSharing, /* 33 */
PixelLocalStorageCoherent, /* 34 */
PixelLocalStorageNonCoherent, /* 35 */
Unorm16TextureFormats, /* 36 */
MultiPlanarFormatExtendedUsages, /* 37 */
MultiPlanarFormatP010, /* 38 */
HostMappedPointer, /* 39 */
MultiPlanarRenderTargets, /* 40 */
MultiPlanarFormatNv12a, /* 41 */
FramebufferFetch, /* 42 */
BufferMapExtendedUsages, /* 43 */
AdapterPropertiesMemoryHeaps, /* 44 */
AdapterPropertiesD3D, /* 45 */
AdapterPropertiesVk, /* 46 */
DawnFormatCapabilities, /* 47 */
DawnDrmFormatCapabilities, /* 48 */
MultiPlanarFormatNv16, /* 49 */
MultiPlanarFormatNv24, /* 50 */
MultiPlanarFormatP210, /* 51 */
MultiPlanarFormatP410, /* 52 */
SharedTextureMemoryVkDedicatedAllocation, /* 53 */
SharedTextureMemoryAHardwareBuffer, /* 54 */
SharedTextureMemoryDmaBuf, /* 55 */
SharedTextureMemoryOpaqueFD, /* 56 */
SharedTextureMemoryZirconHandle, /* 57 */
SharedTextureMemoryDXGISharedHandle, /* 58 */
SharedTextureMemoryD3D11Texture2D, /* 59 */
SharedTextureMemoryIOSurface, /* 60 */
SharedTextureMemoryEGLImage, /* 61 */
SharedFenceVkSemaphoreOpaqueFD, /* 62 */
SharedFenceSyncFD, /* 63 */
SharedFenceVkSemaphoreZirconHandle, /* 64 */
SharedFenceDXGISharedHandle, /* 65 */
SharedFenceMTLSharedEvent, /* 66 */
SharedBufferMemoryD3D12Resource, /* 67 */
StaticSamplers, /* 68 */
YCbCrVulkanSamplers, /* 69 */
ShaderModuleCompilationOptions, /* 70 */
DawnLoadResolveTexture, /* 71 */
DawnPartialLoadResolveTexture, /* 72 */
MultiDrawIndirect, /* 73 */
DawnTexelCopyBufferRowAlignment, /* 74 */
FlexibleTextureViews, /* 75 */
ChromiumExperimentalSubgroupMatrix, /* 76 */
SharedFenceEGLSync, /* 77 */
DawnDeviceAllocatorControl, /* 78 */
AdapterPropertiesWGPU, /* 79 */
SharedBufferMemoryFromWindowsHandle, /* 80 */
SharedTextureMemoryD3D12Resource, /* 81 */
ChromiumExperimentalSamplingResourceTable, /* 82 */
Unorm16FormatsForExternalTexture, /* 83 */
Unorm16Filterable, /* 84 */
BufferMapWriteExtendedUsages, /* 85 */
SharedBufferMemoryHostPointer, /* 86 */
SharedTextureMemoryDXGIY410, /* 87 */
SharedTextureMemoryDXGIY210, /* 88 */
};
auto AddDevice = [&](const std::vector<int>& vec, std::string device_str) {
std::set<uint32_t> device_set;
size_t vec_idx = 0;
if (all_feature_enums.size() != vec.size()) {
std::string msg =
"All feature set (all_feature_enums) does not have the same size at input vector "
"for " +
device_str;
SCOPED_TRACE(msg);
EXPECT_FALSE(true);
return;
}
for (auto& each : all_feature_enums) {
if (vec[vec_idx] == 1) {
// Internal storage is feature id enum
device_set.insert(static_cast<uint32_t>(each));
}
vec_idx++;
}
device_map.insert({device_str, device_set});
};
// clang-format off
{
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
// AMD
AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, "Metal_AMD_Radeon_Pro_5300M");
AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, "Metal_AMD_Radeon_Pro_555X");
AddDevice({1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0}, "Vulkan_Qualcomm_R__Adreno_TM__X1_85_GPU");
// SwiftShader
AddDevice({0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, "OpenGLES_ANGLE__Google__Vulkan_1_3_0__SwiftShader_Device__Subzero___0x0000C0DE____SwiftShader_driver_5_0_0__compat");
AddDevice({0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, "OpenGLES_ANGLE__Google__Vulkan_1_3_0__SwiftShader_Device__Subzero___0x0000C0DE____SwiftShader_driver_5_0_0__compat");
}
// clang-format on
auto full_supported_features = this->GetSupportedFeatures();
// List of features that are not interesting to check, eg. they are enabled unconditionally for
// a backend.
std::set<wgpu::FeatureName> ignored_features = {
wgpu::FeatureName::RenderPassRenderArea,
wgpu::FeatureName::AdapterPropertiesDrm,
wgpu::FeatureName::DawnAllowUndefinedLoadStoreOp,
};
std::set<wgpu::FeatureName> supported_features;
std::set_difference(full_supported_features.begin(), full_supported_features.end(),
ignored_features.begin(), ignored_features.end(),
std::inserter(supported_features, supported_features.begin()));
// We need alternates mostly due to differences in driver versions.
// Some devices might be on one driver that supports limit X while others might be on a driver
// that supports limit Y.
bool encountered_error = false;
std::string full_param = GetFullParamString();
auto iter = device_map.equal_range(full_param);
auto iter_match = iter.first;
auto iter_end = iter.second;
if (iter_match == iter_end) {
// CQ bots will pass in '--test-launcher-bot-mode' as a command line parameter.
// In this case, we didn't find any results, so we want to make sure we report an error
// as this is a new CQ bot and we need to update the test results.
if (IsTestLauncherBotMode()) {
encountered_error = true;
} else {
// Skipping the test when the device params does not match allows us to only
// testing known CQ (and try) bots.
GTEST_SKIP();
}
} else {
std::string error_str;
for (; iter_match != iter_end; iter_match++) {
encountered_error = false;
std::set<wgpu::FeatureName> curr_features_typed;
for (auto& each : iter_match->second) {
curr_features_typed.insert(static_cast<wgpu::FeatureName>(each));
}
std::set<wgpu::FeatureName> missing_features;
std::set_difference(curr_features_typed.begin(), curr_features_typed.end(),
supported_features.begin(), supported_features.end(),
std::inserter(missing_features, missing_features.begin()));
std::set<wgpu::FeatureName> unexpected_features;
std::set_difference(supported_features.begin(), supported_features.end(),
curr_features_typed.begin(), curr_features_typed.end(),
std::inserter(unexpected_features, unexpected_features.begin()));
error_str = "\nMissing features= ";
for (auto& each : missing_features) {
encountered_error = true;
error_str += FeatureNameToString(each) + "(" +
std::to_string(static_cast<int>(each)) + "), ";
}
error_str += "\nUnexpected features= ";
for (auto& each : unexpected_features) {
encountered_error = true;
error_str += FeatureNameToString(each) + "(" +
std::to_string(static_cast<int>(each)) + "), ";
}
if (!encountered_error) {
// Found a successful device feature set.
break;
}
}
if (encountered_error) {
SCOPED_TRACE(error_str);
EXPECT_FALSE(encountered_error);
}
}
if (encountered_error) {
std::string expected_str =
"\n Mismatch found! The full set of correct features for this device are:\n"
" AddDevice({";
bool first = true;
for (auto& feature : all_feature_enums) {
if (!first) {
expected_str += ", ";
}
first = false;
expected_str += supported_features.contains(feature) ? "1" : "0";
}
expected_str += "}, \"" + full_param + "\");\n";
SCOPED_TRACE(expected_str);
EXPECT_FALSE(encountered_error);
}
}
TEST_P(TierArchInfoTest_TieredMaxLimits, SemiExhaustiveTestSubgroupMatrixConfigs) {
DAWN_TEST_UNSUPPORTED_IF(
!adapter.HasFeature(wgpu::FeatureName::ChromiumExperimentalSubgroupMatrix));
wgpu::AdapterInfo info;
wgpu::AdapterPropertiesSubgroupMatrixConfigs subgroupMatrixConfigs;
info.nextInChain = &subgroupMatrixConfigs;
ASSERT_EQ(adapter.GetInfo(&info), wgpu::Status::Success);
auto configs = WGPU_SPAN(subgroupMatrixConfigs.config);
std::multimap<std::string, std::vector<wgpu::SubgroupMatrixConfig>> device_map;
auto AddDevice = [&](const std::vector<wgpu::SubgroupMatrixConfig>& vec,
std::string device_str) { device_map.insert({device_str, vec}); };
// clang-format off
{
using enum wgpu::SubgroupMatrixComponentType;
AddDevice({{F16, F32, 8, 8, 16, 8, 32},
{I8, I32, 8, 8, 32, 8, 32},
{U8, U32, 8, 8, 32, 8, 32},
}, "Vulkan_Intel_R__Iris_R__Xe_Graphics__TGL_GT2");
for (const char* metalDevice : {"Metal_Apple_M1", "Metal_Apple_M2"}) {
AddDevice({{F32, F32, 8, 8, 8, 32, 32},
{F16, F16, 8, 8, 8, 32, 32},
{Bf16, Bf16, 8, 8, 8, 32, 32},
{F16, F32, 8, 8, 8, 32, 32},
}, metalDevice);
}
AddDevice({{F16, F32, 16, 16, 16, 32, 64},
{F16, F16, 16, 16, 16, 32, 64},
{U8, I32, 16, 16, 16, 32, 64},
{I8, I32, 16, 16, 16, 32, 64},
}, "Vulkan_Radeon_RX_5500_XT");
for (const char* warpDevice : {"D3D12_Microsoft_Basic_Render_Driver_CPU",
"D3D12_Microsoft_Basic_Render_Driver_Integrated_GPU"}) {
// SSE / NEON (max native wave size 4)
AddDevice({{F32, F32, 4, 4, 4, 4, 4},
{F16, F32, 4, 4, 4, 4, 4},
{F16, F16, 4, 4, 4, 4, 4},
{U32, U32, 4, 4, 4, 4, 4},
{U32, I32, 4, 4, 4, 4, 4},
{I32, U32, 4, 4, 4, 4, 4},
{I32, I32, 4, 4, 4, 4, 4},
}, warpDevice);
// AVX2 (max native wave size 8)
AddDevice({{F32, F32, 4, 4, 4, 4, 4},
{F32, F32, 8, 8, 4, 4, 8},
{F16, F32, 4, 4, 4, 4, 4},
{F16, F32, 8, 8, 4, 4, 8},
{F16, F16, 4, 4, 4, 4, 4},
{F16, F16, 8, 8, 4, 4, 8},
{U32, U32, 4, 4, 4, 4, 4},
{U32, U32, 8, 8, 4, 4, 8},
{U32, I32, 4, 4, 4, 4, 4},
{U32, I32, 8, 8, 4, 4, 8},
{I32, U32, 4, 4, 4, 4, 4},
{I32, U32, 8, 8, 4, 4, 8},
{I32, I32, 4, 4, 4, 4, 4},
{I32, I32, 8, 8, 4, 4, 8},
}, warpDevice);
// AVX-512 (max native wave size 16)
AddDevice({{F32, F32, 4, 4, 4, 4, 4},
{F32, F32, 8, 8, 4, 4, 8},
{F32, F32, 16, 16, 4, 4, 16},
{F16, F32, 4, 4, 4, 4, 4},
{F16, F32, 8, 8, 4, 4, 8},
{F16, F32, 16, 16, 4, 4, 16},
{F16, F16, 4, 4, 4, 4, 4},
{F16, F16, 8, 8, 4, 4, 8},
{F16, F16, 16, 16, 4, 4, 16},
{U32, U32, 4, 4, 4, 4, 4},
{U32, U32, 8, 8, 4, 4, 8},
{U32, U32, 16, 16, 4, 4, 16},
{U32, I32, 4, 4, 4, 4, 4},
{U32, I32, 8, 8, 4, 4, 8},
{U32, I32, 16, 16, 4, 4, 16},
{I32, U32, 4, 4, 4, 4, 4},
{I32, U32, 8, 8, 4, 4, 8},
{I32, U32, 16, 16, 4, 4, 16},
{I32, I32, 4, 4, 4, 4, 4},
{I32, I32, 8, 8, 4, 4, 8},
{I32, I32, 16, 16, 4, 4, 16},
}, warpDevice);
}
}
// clang-format on
// We need alternates mostly due to differences in driver versions.
// Some devices might be on one driver that supports limit X while others might be on a driver
// that supports limit Y.
bool encountered_error = false;
std::string full_param = GetFullParamString();
auto iter = device_map.equal_range(full_param);
auto iter_match = iter.first;
auto iter_end = iter.second;
if (iter_match == iter_end) {
// CQ bots will pass in '--test-launcher-bot-mode' as a command line parameter.
// In this case, we didn't find any results, so we want to make sure we report an error
// as this is a new CQ bot and we need to update the test results.
if (IsTestLauncherBotMode()) {
encountered_error = true;
} else {
// Skipping the test when the device params does not match allows us to only
// test known CQ (and try) bots.
GTEST_SKIP();
}
} else {
for (; iter_match != iter_end; iter_match++) {
encountered_error = false;
auto& expect_configs = iter_match->second;
if (subgroupMatrixConfigs.configCount != expect_configs.size()) {
// Try next alternate
encountered_error = true;
continue;
}
for (size_t i = 0; i < subgroupMatrixConfigs.configCount; i++) {
auto& config = configs[i];
auto& expect_config = expect_configs[i];
if (config.componentType != expect_config.componentType ||
config.resultComponentType != expect_config.resultComponentType ||
config.M != expect_config.M || config.N != expect_config.N ||
config.K != expect_config.K ||
config.minSubgroupSize != expect_config.minSubgroupSize ||
config.maxSubgroupSize != expect_config.maxSubgroupSize) {
encountered_error = true;
break;
}
}
if (!encountered_error) {
// If there was no error then all of the configs for this device match.
// We're done, and can break out at this point. In the case of a config
// error we keep looking at any other configs for this device.
break;
}
}
}
if (encountered_error) {
std::string expected_str =
"\n Mismatch found! The full set of correct subgroup matrix configs for this device "
"are:\n"
" AddDevice({";
for (size_t i = 0; i < subgroupMatrixConfigs.configCount; i++) {
auto& config = configs[i];
expected_str += '{';
expected_str += SubgroupMatrixComponentTypeToString(config.componentType);
expected_str += ", ";
expected_str += SubgroupMatrixComponentTypeToString(config.resultComponentType);
expected_str += ", ";
expected_str += std::to_string(config.M);
expected_str += ", ";
expected_str += std::to_string(config.N);
expected_str += ", ";
expected_str += std::to_string(config.K);
expected_str += ", ";
expected_str += std::to_string(config.minSubgroupSize);
expected_str += ", ";
expected_str += std::to_string(config.maxSubgroupSize);
expected_str += "},\n ";
}
expected_str += "}, \"" + full_param + "\");\n";
SCOPED_TRACE(expected_str);
EXPECT_FALSE(encountered_error);
}
}
DAWN_INSTANTIATE_TEST(TierArchInfoTest_TieredMaxLimits,
D3D11Backend(),
D3D12Backend(),
MetalBackend(),
OpenGLBackend(),
OpenGLESBackend(),
VulkanBackend());
} // anonymous namespace
} // namespace dawn