diff --git a/src/dawn/tests/end2end/ShaderValidationTests.cpp b/src/dawn/tests/end2end/ShaderValidationTests.cpp index e2e436553d..302a6baf64 100644 --- a/src/dawn/tests/end2end/ShaderValidationTests.cpp +++ b/src/dawn/tests/end2end/ShaderValidationTests.cpp @@ -32,17 +32,6 @@ override x: u32 = 1u; override y: u32 = 1u; override z: u32 = 1u; -@compute @workgroup_size(x, y, z) fn main() { - _ = 0u; -})"); - } - - wgpu::ShaderModule SetUpShaderWithZeroDefaultValueConstants() { - return utils::CreateShaderModule(device, R"( -override x: u32 = 0u; -override y: u32 = 0u; -override z: u32 = 0u; - @compute @workgroup_size(x, y, z) fn main() { _ = 0u; })"); @@ -237,12 +226,6 @@ TEST_P(WorkgroupSizeValidationTest, OverridesWithValidDefault) { } } -// Test workgroup size validation with zero as the overrides default values. -TEST_P(WorkgroupSizeValidationTest, OverridesWithZeroDefault) { - // Error: zero is detected as invalid at shader creation time - ASSERT_DEVICE_ERROR(SetUpShaderWithZeroDefaultValueConstants()); -} - // Test workgroup size validation with out-of-limits overrides default values. TEST_P(WorkgroupSizeValidationTest, OverridesWithOutOfLimitsDefault) { wgpu::ShaderModule module = SetUpShaderWithOutOfLimitsDefaultValueConstants();