From 21b2ec6d4010e0fe3934d16841377107641a6f2a Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 24 Sep 2025 23:02:15 -0700 Subject: [PATCH 1/2] try llvmpipe on CQ --- build/constants.js | 1 + test/functional-tests.js | 6 ++---- test/webgpu.js | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/constants.js b/build/constants.js index 8c5dcab..e448348 100644 --- a/build/constants.js +++ b/build/constants.js @@ -9,3 +9,4 @@ export const kConfig = process.env.CMAKE_BUILD_TYPE ?? 'Release'; export const isMac = process.platform === 'darwin'; export const isWin = process.platform === 'win32'; +export const isLinux = process.platform === 'linux'; diff --git a/test/functional-tests.js b/test/functional-tests.js index 2984901..2d38638 100644 --- a/test/functional-tests.js +++ b/test/functional-tests.js @@ -8,7 +8,5 @@ Promise.withResolvers = Promise.withResolvers ?? function() { return o; }; -if (isWin || isMac) { - await import('./tests/basic-tests.js'); - //await import('./tests/reference-count-tests.js'); -} +await import('./tests/basic-tests.js'); +//await import('./tests/reference-count-tests.js'); diff --git a/test/webgpu.js b/test/webgpu.js index 99fbb33..68242ee 100644 --- a/test/webgpu.js +++ b/test/webgpu.js @@ -1,11 +1,12 @@ import { create, globals } from '../index.js'; -import { isWin } from '../build/constants.js'; +import { isWin, isLinux } from '../build/constants.js'; import { addElemIf } from '../build/utils.js'; export function getGPU() { const options = []; if (!!process.env.WEBGPU_USE_CI_AVAILABLE_RENDERER) { options.push(...addElemIf(isWin, 'adapter=Microsoft')); + options.push(...addElemIf(isLinux, 'adapter=llvmpipe')); } return { gpu: create(options), globals }; } From 6b9d50453522d61a4bb12830d5e7e50cc7b0fb8e Mon Sep 17 00:00:00 2001 From: Michael Giuliana Date: Fri, 13 Mar 2026 16:37:43 -1000 Subject: [PATCH 2/2] Install `mesa-vulkan-drivers` and `libvulkan1` for Linux LLVMPipe --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d97cdb..7dd4d8f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,7 +81,7 @@ jobs: if: startsWith(matrix.config.name, 'Ubuntu') run: | sudo apt-get update - sudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev pkg-config nodejs npm + sudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev pkg-config nodejs npm mesa-vulkan-drivers libvulkan1 cmake --version gcc --version