From 7ed7d08c1ffbf5069720d3f027aad3133a0dd936 Mon Sep 17 00:00:00 2001 From: Jamie Nicol Date: Thu, 21 Mar 2024 17:17:25 +0000 Subject: [PATCH] Bug 1886715 - Block webgpu by default on Android. r=webgpu-reviewers,jimb Currently webgpu is enabled by default on Nightly Android. As it is currently receiving no testing at all, we should disable it by default by adding a blocklist entry. Adventurous souls will still be able to enable it by setting the pref gfx.webgpu.ignore-blocklist=true. Differential Revision: https://phabricator.services.mozilla.com/D205300 --- widget/android/GfxInfo.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/widget/android/GfxInfo.cpp b/widget/android/GfxInfo.cpp index 6e6d3bf47bbd..267beaf33047 100644 --- a/widget/android/GfxInfo.cpp +++ b/widget/android/GfxInfo.cpp @@ -667,6 +667,14 @@ nsresult GfxInfo::GetFeatureStatusImpl( return NS_OK; } + if (aFeature == FEATURE_WEBGPU) { + // Ensure WebGPU is disabled by default on Android until it is better + // tested. + *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE; + aFailureId = "FEATURE_FAILURE_WEBGPU_ANDROID"; + return NS_OK; + } + return GfxInfoBase::GetFeatureStatusImpl( aFeature, aStatus, aSuggestedDriverVersion, aDriverInfo, aFailureId, &os); }