Source code

Revision control

Copy as Markdown

Other Tools

From 680f28128f179a050def4d42df23faa731143d1b Mon Sep 17 00:00:00 2001
From: Ryan VanderMeulen <rvandermeulen@mozilla.com>
Date: Thu, 14 May 2026 00:00:00 +0000
Subject: [PATCH 1/7] Disable Windows device discovery to avoid DXGI probe in
CPU-only build
---
onnxruntime/core/platform/windows/device_discovery.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/onnxruntime/core/platform/windows/device_discovery.cc b/onnxruntime/core/platform/windows/device_discovery.cc
index 6e43a22..7d40997 100644
--- a/onnxruntime/core/platform/windows/device_discovery.cc
+++ b/onnxruntime/core/platform/windows/device_discovery.cc
@@ -45,7 +45,7 @@ using Microsoft::WRL::ComPtr;
namespace onnxruntime {
// unsupported in minimal build. also needs xbox specific handling to be implemented.
-#if !defined(ORT_MINIMAL_BUILD) && !defined(_GAMING_XBOX)
+#if 0 // Firefox: skip Windows device discovery; we are CPU-only and the DXGI/D3D12/DXCore probe crashes on display-less CI workers.
namespace {
// device info we accumulate from various sources
--
2.55.0