Dawn: make subgroups WebGPU features stable
This CL make `subgroups` and `subgroups-f16` WebGPU features stable,
so that they can be used by Chrome for OT without enabling unsafe WebGPU
Bug: 349125474
Change-Id: I080be8e021522eb34012ec8bf924813c01887b42
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/198700
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn/native/Features.cpp b/src/dawn/native/Features.cpp
index 8b9a480..b42c298 100644
--- a/src/dawn/native/Features.cpp
+++ b/src/dawn/native/Features.cpp
@@ -377,11 +377,11 @@
{Feature::Subgroups,
{"Supports the \"enable subgroups;\" directive in WGSL.",
"https://github.com/gpuweb/gpuweb/blob/main/proposals/subgroups.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
{Feature::SubgroupsF16,
{"Supports the \"enable subgroups_f16;\" directive in WGSL.",
"https://github.com/gpuweb/gpuweb/blob/main/proposals/subgroups.md",
- FeatureInfo::FeatureState::Experimental}},
+ FeatureInfo::FeatureState::Stable}},
};
} // anonymous namespace
diff --git a/src/dawn/tests/unittests/validation/ShaderModuleValidationTests.cpp b/src/dawn/tests/unittests/validation/ShaderModuleValidationTests.cpp
index e202869..a188a98 100644
--- a/src/dawn/tests/unittests/validation/ShaderModuleValidationTests.cpp
+++ b/src/dawn/tests/unittests/validation/ShaderModuleValidationTests.cpp
@@ -769,8 +769,8 @@
{"f16", false, {"shader-f16"}, {}},
{"dual_source_blending", true, {"dual-source-blending"}, {}},
{"chromium_experimental_subgroups", true, {"chromium-experimental-subgroups"}, {}},
- {"subgroups", true, {"subgroups"}, {}},
- {"subgroups_f16", true, {"shader-f16", "subgroups", "subgroups-f16"}, {"f16", "subgroups"}},
+ {"subgroups", false, {"subgroups"}, {}},
+ {"subgroups_f16", false, {"shader-f16", "subgroups", "subgroups-f16"}, {"f16", "subgroups"}},
{"chromium_experimental_pixel_local", true, {"pixel-local-storage-coherent"}, {}},
{"chromium_disable_uniformity_analysis", true, {}, {}},
{"chromium_internal_graphite", true, {}, {}},