From b8188c30a33822d5762010e3fe46d0453786c678 Mon Sep 17 00:00:00 2001 From: Kelsey Gilbert Date: Thu, 23 Feb 2023 19:07:50 +0000 Subject: [PATCH] Bug 1807403 - Blocklist WebGPU on all macOS. r=gfx-reviewers,aosmond WGPU doesn't have bounds checks on Metal yet, so WebGPU is too unsafe to expose by default for now. Differential Revision: https://phabricator.services.mozilla.com/D170702 --- widget/cocoa/GfxInfo.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widget/cocoa/GfxInfo.mm b/widget/cocoa/GfxInfo.mm index 4a9061c4faaa..e50a18461f04 100644 --- a/widget/cocoa/GfxInfo.mm +++ b/widget/cocoa/GfxInfo.mm @@ -410,6 +410,11 @@ const nsTArray& GfxInfo::GetGfxDriverInfo() { IMPLEMENT_MAC_DRIVER_BLOCKLIST( OperatingSystem::OSX, DeviceFamily::IntelSandyBridge, nsIGfxInfo::FEATURE_WEBRENDER, nsIGfxInfo::FEATURE_BLOCKED_DEVICE, "FEATURE_FAILURE_INTEL_MAC_HD3000_NO_WEBRENDER"); + + // wgpu doesn't safely support OOB behavior on Metal yet. + IMPLEMENT_MAC_DRIVER_BLOCKLIST(OperatingSystem::OSX, DeviceFamily::All, + nsIGfxInfo::FEATURE_WEBGPU, nsIGfxInfo::FEATURE_BLOCKED_DEVICE, + "FEATURE_FAILURE_MAC_WGPU_NO_METAL_BOUNDS_CHECKS"); } return *sDriverInfo; }