Skip to content

Commit

Permalink
Bug 1886715 - Block webgpu by default on Android. r=webgpu-reviewers,…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
jamienicol committed Mar 21, 2024
1 parent af96103 commit 7ed7d08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions widget/android/GfxInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7ed7d08

Please sign in to comment.