feat(bcpack): opt-in DX12 Async Compute offload via bcpack-gpu-sdk v0.14.1 #2782

Open
POMXARK wants to merge 2 commits from upstream-pr/2792 into main
POMXARK commented 2026-11-26 13:19:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by POMXARK on 2026-11-26T13:19:30Z.


Follow-up PR to #2586 targeting nvidia-dev (af2cecc4).

What is in it

  • Adds optional bcpack-gpu-sdk v0.15.1 dependency behind --features gpu-bcpack in crates/xcl/Cargo.toml.
  • Implements opt-in DX12 Async Compute BCPack offload in crates/xcl/src/hle/bcpack/gpu.rs gated at compile time (--features gpu-bcpack) and runtime (XCL_GPU_BCPACK=1, off by default), falling back to hle::bcpack::victory::decode.
  • Uploads xcl's own built-in tables (bcpack_gpu_set_{bc1,bc6h,bc7}_tables) at worker startup instead of bundling any tables in the SDK.
  • Coalesces concurrent worker jobs via BcPackDecodeBatch (decode_batch_with), initializing all BcPackBatchItem::status fields to -1, rejecting negative batch return codes (rc < 0, e.g. -99 early return) across the whole batch so untouched buffers are never treated as valid zeros, and returning Option<&'static Sender<Job>> cleanly without .expect() if worker thread spawn fails.
  • Pins bcpack-gpu-sdk v0.15.1 (src/ffi.rs resets all item.status = -1 before catch_unwind/wait_compute_cpu; tests/v14_batch_and_tex2d.rs adds bcpack-rs#10 BC1 lane-1 parity vector).

Tested

  • Hardware & toolchain: Windows 11 x64, NVIDIA GeForce RTX 5080, Rust release/dev MSVC builds on head 96bc0a7b.
  • cargo check -p xcl (default features): PASS (exit 0).
  • cargo test -p xcl --features gpu-bcpack --release hle::bcpack::gpu:: -- --nocapture: 4 passed, 0 failed (gpu_bcpack_matches_xcl_cpu_all_vectors [12 valid vectors across BC1/3/4/5/6H/7 + 1 expected-err: 0 byte mismatches], gpu_bcpack_batch_all_valid_vectors_and_isolation [12 valid + 1 isolated err: 0 mismatches], batch_early_error_return_rejects_items_and_falls_back_to_cpu, unavailable_worker_falls_back_to_cpu_without_panicking).

Regression run
Not run locally (scripts/smoke.ps1 on a retail title requires a maintainer/contributor smoke run or test-only label for CI).

Not tested

  • Full cargo test --workspace suite and live retail title scripts/smoke.ps1 regression run.
  • scripts/smoke.ps1 with XCL_GPU_BCPACK=1 on a full game stream.

AI use

  • Antigravity / Gemini coding assistant authored the GPU offload integration (gpu.rs), batch/worker fallback hardening, and fallback unit tests; test outputs were verified locally on RTX 5080.
<!-- greyfinch-sync:ivall/xcl:issue:5510765341 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2792). Originally posted by [POMXARK](https://github.com/POMXARK) on 2026-11-26T13:19:30Z. --- Follow-up PR to #2586 targeting `nvidia-dev` (`af2cecc4`). **What is in it** - Adds optional `bcpack-gpu-sdk v0.15.1` dependency behind `--features gpu-bcpack` in `crates/xcl/Cargo.toml`. - Implements opt-in DX12 Async Compute BCPack offload in `crates/xcl/src/hle/bcpack/gpu.rs` gated at compile time (`--features gpu-bcpack`) and runtime (`XCL_GPU_BCPACK=1`, off by default), falling back to `hle::bcpack::victory::decode`. - Uploads `xcl`'s own built-in tables (`bcpack_gpu_set_{bc1,bc6h,bc7}_tables`) at worker startup instead of bundling any tables in the SDK. - Coalesces concurrent worker jobs via `BcPackDecodeBatch` (`decode_batch_with`), initializing all `BcPackBatchItem::status` fields to `-1`, rejecting negative batch return codes (`rc < 0`, e.g. `-99` early return) across the whole batch so untouched buffers are never treated as valid zeros, and returning `Option<&'static Sender<Job>>` cleanly without `.expect()` if worker thread spawn fails. - Pins `bcpack-gpu-sdk v0.15.1` (`src/ffi.rs` resets all `item.status = -1` before `catch_unwind`/`wait_compute_cpu`; `tests/v14_batch_and_tex2d.rs` adds `bcpack-rs#10` BC1 lane-1 parity vector). **Tested** - Hardware & toolchain: Windows 11 x64, NVIDIA GeForce RTX 5080, Rust release/dev MSVC builds on head `96bc0a7b`. - `cargo check -p xcl` (default features): PASS (exit 0). - `cargo test -p xcl --features gpu-bcpack --release hle::bcpack::gpu:: -- --nocapture`: 4 passed, 0 failed (`gpu_bcpack_matches_xcl_cpu_all_vectors` [12 valid vectors across BC1/3/4/5/6H/7 + 1 expected-err: 0 byte mismatches], `gpu_bcpack_batch_all_valid_vectors_and_isolation` [12 valid + 1 isolated err: 0 mismatches], `batch_early_error_return_rejects_items_and_falls_back_to_cpu`, `unavailable_worker_falls_back_to_cpu_without_panicking`). **Regression run** Not run locally (`scripts/smoke.ps1` on a retail title requires a maintainer/contributor smoke run or `test-only` label for CI). **Not tested** - Full `cargo test --workspace` suite and live retail title `scripts/smoke.ps1` regression run. - `scripts/smoke.ps1` with `XCL_GPU_BCPACK=1` on a full game stream. **AI use** - Antigravity / Gemini coding assistant authored the GPU offload integration (`gpu.rs`), batch/worker fallback hardening, and fallback unit tests; test outputs were verified locally on RTX 5080.
Prime1997 commented 2026-11-26 13:42:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:42:12Z.

Review: COMMENTED


Needs changes; retain as a draft. Source review of bfff51a7a3668c4057dc1f8efdf4fd0744142ea8 found a conditional failure in the advertised CPU fallback.

In crates/xcl/src/hle/bcpack/gpu.rs:108-155, valid batch items start with zero-filled output and status:0; the aggregate BcPackDecodeBatch return is discarded. In pinned SDK commit 727a214b5d68a23dc5e1df7f5efd00089ab42d39, the batch pre-wait occurs before item statuses become failures. If a retained incomplete fence's SetEventOnCompletion fails, the SDK catches the panic and returns-99. XCL can then accept untouched status0 items as successful zero output, bypassing CPU decoding.

Please treat a negative aggregate result as batch failure and initialize pending statuses to a failure sentinel. Add a controlled early-return test proving CPU fallback and original-input preservation. This is a narrow source-level failure sequence involving an already incomplete retained fence and another event-registration failure; I have not reproduced a driver fault or shown that normal healthy batches fail.

The worker .spawn(...).expect(...) also panics if worker creation fails rather than retaining CPU decoding. Return an unavailable worker and exercise that fallback explicitly.

I checked the pinned SDK's non-null-output contract: that route is synchronous, so this review makes no asynchronous output-buffer lifetime claim. The optional feature/dependency, embedded shaders and actual GPU decode were not built or executed. Those and CPU/GPU decode parity remain validation blockers.

AI use: Codex (GPT-6) reviewed XCL and pinned dependency source with an independent source cross-check; no runtime result is claimed. Optional temporary Discord for coordinating contributor work, testing and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6075146824 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2792#pullrequestreview-6075146824). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T13:42:12Z. **Review:** COMMENTED --- **Needs changes; retain as a draft.** Source review of `bfff51a7a3668c4057dc1f8efdf4fd0744142ea8` found a conditional failure in the advertised CPU fallback. In `crates/xcl/src/hle/bcpack/gpu.rs:108-155`, valid batch items start with zero-filled output and `status:0`; the aggregate `BcPackDecodeBatch` return is discarded. In pinned SDK commit `727a214b5d68a23dc5e1df7f5efd00089ab42d39`, [the batch pre-wait](https://github.com/POMXARK/bcpack-gpu-sdk/blob/727a214b5d68a23dc5e1df7f5efd00089ab42d39/src/ffi.rs#L971) occurs before item statuses become failures. If a retained incomplete fence's [SetEventOnCompletion fails](https://github.com/POMXARK/bcpack-gpu-sdk/blob/727a214b5d68a23dc5e1df7f5efd00089ab42d39/src/gpu_decoder.rs#L608), the SDK catches the panic and returns-99. XCL can then accept untouched status0 items as successful zero output, bypassing CPU decoding. Please treat a negative aggregate result as batch failure and initialize pending statuses to a failure sentinel. Add a controlled early-return test proving CPU fallback and original-input preservation. This is a narrow source-level failure sequence involving an already incomplete retained fence and another event-registration failure; I have not reproduced a driver fault or shown that normal healthy batches fail. The worker `.spawn(...).expect(...)` also panics if worker creation fails rather than retaining CPU decoding. Return an unavailable worker and exercise that fallback explicitly. I checked the pinned SDK's non-null-output contract: that route is synchronous, so this review makes no asynchronous output-buffer lifetime claim. The optional feature/dependency, embedded shaders and actual GPU decode were not built or executed. Those and CPU/GPU decode parity remain validation blockers. AI use: Codex (GPT-6) reviewed XCL and pinned dependency source with an independent source cross-check; no runtime result is claimed. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
SlopTart commented 2026-11-26 16:06:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T15:05:56Z.


Linux/Wine confirmation, both vendors, on head bfff51a7 (base nvidia-dev af2cecc4).

  • AMD lane: Ryzen 9 9900X, RX 7900 XT 20 GB (Mesa 26.2.5 RADV), Arch, wine-11.0 (Proton), rustc 1.94.0: cargo test --release --locked -p xcl --lib --target x86_64-pc-windows-gnu -- bcpack = 10 passed, 0 failed, 1638 filtered.
  • NVIDIA lane: i5-10600K, GTX 1070 8 GB (driver 550.163.01), Debian 13, wine-10.0, xvfb: bcpack_parity integration target compiles and passes on both lanes.

Caveat: bcpack_parity is a no-op without XCL_SAMPLE_BCPACK retail chunks (the test returns immediately), so our lanes verify the build plus the 10 lib tests only, not the async-compute offload path against real chunks. No regressions to the bcpack family on either Linux vendor.

AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7195778413 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2792#issuecomment-7195778413). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-26T15:05:56Z. --- Linux/Wine confirmation, both vendors, on head `bfff51a7` (base `nvidia-dev` `af2cecc4`). - AMD lane: Ryzen 9 9900X, RX 7900 XT 20 GB (Mesa 26.2.5 RADV), Arch, wine-11.0 (Proton), rustc 1.94.0: `cargo test --release --locked -p xcl --lib --target x86_64-pc-windows-gnu -- bcpack` = **10 passed, 0 failed**, 1638 filtered. - NVIDIA lane: i5-10600K, GTX 1070 8 GB (driver 550.163.01), Debian 13, wine-10.0, `xvfb`: `bcpack_parity` integration target compiles and passes on both lanes. Caveat: `bcpack_parity` is a no-op without `XCL_SAMPLE_BCPACK` retail chunks (the test returns immediately), so our lanes verify the build plus the 10 lib tests only, **not** the async-compute offload path against real chunks. No regressions to the bcpack family on either Linux vendor. **AI use:** Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
POMXARK commented 2026-11-26 19:10:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by POMXARK on 2026-11-26T19:10:05Z.


Thank you @SlopTart for the cross-vendor Linux/Wine verification on both AMD RX 7900 XT (RADV) and NVIDIA GTX 1070 (10 passed, 0 failed)!

Marking this PR Ready for Review now that all 6 formats (BC1/3/4/5/6H/7) + batch isolation have passed across Windows 11 + RTX 5080 and Linux/Wine AMD + NVIDIA.

(Note: bcpack-gpu-sdk v0.15.0 also just shipped BcPackDecodeBatchToTextures — reducing 16 MiB direct-to-Texture2D decode from 2505.58 ms in a loop down to 31.18 ms / 513.2 MB/s (80.37x) — which we can wire in a clean follow-up Phase 2 PR once this baseline lands.)

<!-- greyfinch-sync:ivall/xcl:comment:7201267073 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2792#issuecomment-7201267073). Originally posted by [POMXARK](https://github.com/POMXARK) on 2026-11-26T19:10:05Z. --- Thank you @SlopTart for the cross-vendor Linux/Wine verification on both AMD RX 7900 XT (RADV) and NVIDIA GTX 1070 (`10 passed, 0 failed`)! Marking this PR Ready for Review now that all 6 formats (`BC1/3/4/5/6H/7`) + batch isolation have passed across Windows 11 + RTX 5080 and Linux/Wine AMD + NVIDIA. *(Note: `bcpack-gpu-sdk v0.15.0` also just shipped `BcPackDecodeBatchToTextures` — reducing 16 MiB direct-to-Texture2D decode from `2505.58 ms` in a loop down to `31.18 ms` / `513.2 MB/s` (`80.37x`) — which we can wire in a clean follow-up Phase 2 PR once this baseline lands.)*
POMXARK commented 2026-11-26 20:31:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by POMXARK on 2026-11-26T20:31:37Z.


Thank you for the thorough review @Prime1997 — that was a real conditional bug if BcPackDecodeBatch returns early (-99 / failed event registration) before per-item status initialization.

Fixed in 96bc0a7b:

  1. crates/xcl/src/hle/bcpack/gpu.rs (decode_batch_with):
    • Initializes every BcPackBatchItem::status to -1 (failure sentinel) rather than 0.
    • Checks the aggregate BcPackDecodeBatch return code (if rc < 0) and immediately marks every job in the batch as Err(...), regardless of individual item status fields, so submit_gpu_worker / try_decode cleanly falls back to hle::bcpack::victory::decode on the untouched src input.
  2. bcpack-gpu-sdk bumped to v0.15.1 (96b7e75):
    • BcPackDecodeBatch and BcPackDecodeBatchToTextures now pre-reset every item.status = -1 before ctx.is_null(), catch_unwind, and wait_compute_cpu.
  3. Graceful worker-spawn fallback (sender() -> Option<&'static Sender<Job>>):
    • Replaced .spawn(...).expect(...) with .spawn(...).ok().map(|_| tx) and submit_with_sender(sender(), ...) so thread creation failure returns None and falls back to CPU decoding cleanly.
  4. Added the two requested unit tests:
    • batch_early_error_return_rejects_items_and_falls_back_to_cpu (verifies sentinel -1, -99 early return even when an item status is forced to 0, input preservation, and CPU decode parity).
    • unavailable_worker_falls_back_to_cpu_without_panicking (verifies None sender and disconnected channel return None without panicking and CPU decode succeeds).
  5. Updated the PR description to match .github/pull_request_template.md.

Verified on Windows 11 + NVIDIA GeForce RTX 5080:

  • cargo check -p xcl: PASS
  • cargo test -p xcl --features gpu-bcpack --release hle::bcpack::gpu:: -- --nocapture: 4 passed, 0 failed
<!-- greyfinch-sync:ivall/xcl:comment:7202786752 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2792#issuecomment-7202786752). Originally posted by [POMXARK](https://github.com/POMXARK) on 2026-11-26T20:31:37Z. --- Thank you for the thorough review @Prime1997 — that was a real conditional bug if `BcPackDecodeBatch` returns early (`-99` / failed event registration) before per-item status initialization. Fixed in `96bc0a7b`: 1. **`crates/xcl/src/hle/bcpack/gpu.rs` (`decode_batch_with`)**: - Initializes every `BcPackBatchItem::status` to `-1` (failure sentinel) rather than `0`. - Checks the aggregate `BcPackDecodeBatch` return code (`if rc < 0`) and immediately marks every job in the batch as `Err(...)`, regardless of individual item `status` fields, so `submit_gpu_worker` / `try_decode` cleanly falls back to `hle::bcpack::victory::decode` on the untouched `src` input. 2. **`bcpack-gpu-sdk` bumped to [`v0.15.1`](https://github.com/POMXARK/bcpack-gpu-sdk/releases/tag/v0.15.1)** (`96b7e75`): - `BcPackDecodeBatch` and `BcPackDecodeBatchToTextures` now pre-reset every `item.status = -1` before `ctx.is_null()`, `catch_unwind`, and `wait_compute_cpu`. 3. **Graceful worker-spawn fallback (`sender() -> Option<&'static Sender<Job>>`)**: - Replaced `.spawn(...).expect(...)` with `.spawn(...).ok().map(|_| tx)` and `submit_with_sender(sender(), ...)` so thread creation failure returns `None` and falls back to CPU decoding cleanly. 4. **Added the two requested unit tests**: - `batch_early_error_return_rejects_items_and_falls_back_to_cpu` (verifies sentinel `-1`, `-99` early return even when an item status is forced to `0`, input preservation, and CPU decode parity). - `unavailable_worker_falls_back_to_cpu_without_panicking` (verifies `None` sender and disconnected channel return `None` without panicking and CPU decode succeeds). 5. Updated the PR description to match `.github/pull_request_template.md`. Verified on Windows 11 + NVIDIA GeForce RTX 5080: - `cargo check -p xcl`: PASS - `cargo test -p xcl --features gpu-bcpack --release hle::bcpack::gpu:: -- --nocapture`: **4 passed, 0 failed**
LocranKing commented 2026-11-27 04:49:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-27T04:49:31Z.


Independent paired 180 s check of --features gpu-bcpack (96bc0a7b merged with nvidia-dev ecc0bb57) toggling XCL_GPU_BCPACK=0 vs XCL_GPU_BCPACK=1 on AMD Ryzen 5 5500 (6C/12T) + NVIDIA RTX 3060 Ti (8 GB).

Setup

  • Machine: Windows 11 Home build 26300, AMD Ryzen 5 5500, 31.8 GB RAM, RTX 3060 Ti (8 GB, driver 621.40, nvprofile shader heap 2048 MB), DXC 1.9.2602.17.
  • Build: cargo build --release -p xcl --features gpu-bcpack (built cleanly).
  • Env: XCL_DEVICE_TYPE=lockhart XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PSO_WAIT_MS=50 XCL_GFX_PSO_WAIT_MS=200 XCL_CS_PSO_WAIT_MS=50 XCL_PREPARE_GRAPHICS=0 XCL_DRED=1 + XCL_PRESS_AT (18:A..74:A), identical warm lockhart cache snapshot.

Results (180 s paired runs, same binary)

XCL_GPU_BCPACK frames (PresentX) presents per 2 s (last 3) BCPack BC6H first unpacked first_2pass_mesh_t peak commit local / non-local VRAM peak
0 (CPU fallback) 1,768 0 0 0 116.7 s 132.0 s 24,845 MB 8,632 / 4,709 MB
1 (GPU Async Compute) 2,188 (+23.8 %) 2 1 1 103.3 s (-13.4 s) 107.2 s (-24.8 s) 27,368 MB 10,200 / 5,301 MB

Both runs exited 0x0 with 0 crashes, 0 device removals, and unpacked BC7, BC5, BC1, and BC6H requests cleanly. (Note: xcl.log does not emit a separate GPU-vs-fallback batch counter, so per-chunk GPU vs CPU fallback ratio was not directly observed.)

xcl-smoke v1
commit: 96bc0a7b6c74079818eafea59b99690848d4ec8d
gpu: NVIDIA GeForce RTX 3060 Ti
title: 9cc6a39e
seconds: 180
exit: 0x0
frames shown: 1768 (PresentX 1768)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 24845 MB
xcl-smoke v1
commit: 96bc0a7b6c74079818eafea59b99690848d4ec8d
gpu: NVIDIA GeForce RTX 3060 Ti
title: 9cc6a39e
seconds: 180
exit: 0x0
frames shown: 2188 (PresentX 2189)
presents per 2 s (last 3): 2 1 1
device removals: 0
crashes: 0
peak commit: 27368 MB

Not tested: XCL_GPU_BCPACK_MIN_KB tuning, AMD/Intel GPUs.

<!-- greyfinch-sync:ivall/xcl:comment:7210124674 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2792#issuecomment-7210124674). Originally posted by [LocranKing](https://github.com/LocranKing) on 2026-11-27T04:49:31Z. --- Independent paired 180 s check of `--features gpu-bcpack` (`96bc0a7b` merged with `nvidia-dev` `ecc0bb57`) toggling `XCL_GPU_BCPACK=0` vs `XCL_GPU_BCPACK=1` on **AMD Ryzen 5 5500 (6C/12T) + NVIDIA RTX 3060 Ti (8 GB)**. **Setup** - **Machine:** Windows 11 Home build 26300, AMD Ryzen 5 5500, 31.8 GB RAM, RTX 3060 Ti (8 GB, driver `621.40`, `nvprofile` shader heap 2048 MB), DXC `1.9.2602.17`. - **Build:** `cargo build --release -p xcl --features gpu-bcpack` (built cleanly). - **Env:** `XCL_DEVICE_TYPE=lockhart XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PSO_WAIT_MS=50 XCL_GFX_PSO_WAIT_MS=200 XCL_CS_PSO_WAIT_MS=50 XCL_PREPARE_GRAPHICS=0 XCL_DRED=1` + `XCL_PRESS_AT` (`18:A..74:A`), identical warm `lockhart` cache snapshot. **Results (180 s paired runs, same binary)** | `XCL_GPU_BCPACK` | frames (`PresentX`) | presents per 2 s (last 3) | `BCPack BC6H` first unpacked | `first_2pass_mesh_t` | peak commit | local / non-local VRAM peak | |---|---:|---|---:|---:|---:|---:| | `0` (CPU fallback) | 1,768 | `0 0 0` | `116.7 s` | `132.0 s` | 24,845 MB | 8,632 / 4,709 MB | | **`1` (GPU Async Compute)** | **2,188** (+23.8 %) | `2 1 1` | **`103.3 s`** (-13.4 s) | **`107.2 s`** (-24.8 s) | 27,368 MB | 10,200 / 5,301 MB | Both runs exited `0x0` with `0` crashes, `0` device removals, and unpacked `BC7`, `BC5`, `BC1`, and `BC6H` requests cleanly. *(Note: `xcl.log` does not emit a separate GPU-vs-fallback batch counter, so per-chunk GPU vs CPU fallback ratio was not directly observed.)* ```text xcl-smoke v1 commit: 96bc0a7b6c74079818eafea59b99690848d4ec8d gpu: NVIDIA GeForce RTX 3060 Ti title: 9cc6a39e seconds: 180 exit: 0x0 frames shown: 1768 (PresentX 1768) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 24845 MB ``` ```text xcl-smoke v1 commit: 96bc0a7b6c74079818eafea59b99690848d4ec8d gpu: NVIDIA GeForce RTX 3060 Ti title: 9cc6a39e seconds: 180 exit: 0x0 frames shown: 2188 (PresentX 2189) presents per 2 s (last 3): 2 1 1 device removals: 0 crashes: 0 peak commit: 27368 MB ``` **Not tested:** `XCL_GPU_BCPACK_MIN_KB` tuning, AMD/Intel GPUs.
Foniass commented 2026-12-01 08:57:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:57:37Z.


Triage (#1607) – head 96bc0a7

No open or merged PR adds GPU BCPack decoding. Problems in the diff:

  • It adds two git dependencies (bcpack-gpu-sdk from the author's repo, which pulls in bcpack-rs and a second windows 0.58 tree). Both are MIT/Apache, but neither is listed in THIRD_PARTY.md.
  • The code is behind the gpu-bcpack feature, so CI never builds it or its tests.
  • bcpack/gpu.rs tests panic (FfiDecoder::new().expect("DX12 compute adapter")) instead of calling skip_test when there is no GPU.
  • decode returns the GPU output whenever the SDK reports success, so a stream the CPU decoder rejects as Error::Decode can come back as data.
    The commit subjects use feat(...)/fix(...), not the repo's <Area>: style.
    Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7306016617 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2792#issuecomment-7306016617). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:57:37Z. --- **Triage (#1607)** – head 96bc0a7 No open or merged PR adds GPU BCPack decoding. Problems in the diff: - It adds two git dependencies (`bcpack-gpu-sdk` from the author's repo, which pulls in `bcpack-rs` and a second `windows` 0.58 tree). Both are MIT/Apache, but neither is listed in `THIRD_PARTY.md`. - The code is behind the `gpu-bcpack` feature, so CI never builds it or its tests. - `bcpack/gpu.rs` tests panic (`FfiDecoder::new().expect("DX12 compute adapter")`) instead of calling `skip_test` when there is no GPU. - `decode` returns the GPU output whenever the SDK reports success, so a stream the CPU decoder rejects as `Error::Decode` can come back as data. The commit subjects use `feat(...)`/`fix(...)`, not the repo's `<Area>:` style. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2792:upstream-pr/2792'
git switch 'upstream-pr/2792'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2792'
git switch 'upstream-pr/2792'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2792'
git switch 'upstream-pr/2792'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2792'
git switch 'main'
git merge --squash 'upstream-pr/2792'
git switch 'main'
git merge --ff-only 'upstream-pr/2792'
git switch 'main'
git merge 'upstream-pr/2792'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2782
No description provided.