[Contribution] Native Wave32 GPU BCPack Decoder (RTX 5080 Verified) + Zero-Copy C-ABI bcpack_gpu.dll (MIT/Apache-2.0) #229

Open
opened 2026-11-26 05:38:51 +00:00 by github-bot · 0 comments
Owner

@⁠POMXARK on GitHub · 2026-11-25 19:28 UTC · original

Hi team,

Notice you've been actively debugging NVIDIA 32-lane wave behavior on RTX 5080! For IDStorageQueueX / xgcore BCPack texture decompression on NVIDIA Wave32 hardware, I built a clean-room, MIT OR Apache-2.0 licensed DX12 HLSL SM 6.6 Wave32 decompressor and prebuilt C-ABI DLL (bcpack_gpu.dll) verified bit-exact on RTX 5080:

Highlights (RTX 5080 Verified 19/19 PASS, DX12 Debug Layer Clean — 0 errors)

  • True WaveSize(32) Compute Kernels (shaders/bcpack_decode.hlsl, shaders/bcpack_bc7_rans.hlsl):
    • Dual-chunk warp packing (24/32 lanes active on BC1, 32/32 = 100% on 16-lane BC7 rANS), 0 barriers inside the hot loop (WaveReadLaneAt), reaching 11.33 GB/s (BC1) and 6.02 GB/s equiv (BC7 rANS).
    • DXC -O3 Wave-Intrinsic Pitfall Documented: Explicit WaveActiveBallot + countbits workaround replacing WavePrefixCountBits/WaveActiveCountBits in the split-half byte allocator (0 byte mismatches at -O3).
    • RTX 5080 621.24 RT-Core Cache Fix: Isolated uav_barrier_all() sync note if pairing Async Compute streaming with DXR RayQuery.
  • Zero-Copy C++ Integration (include/bcpack_gpu.h): Share your ID3D12Device* via bcpack_gpu_create_from_device and decode (+ Gfx10 SW_64KB_D/SW_4KB_S detile @ 432.6 GB/s) directly into caller GPU buffers (BcPackDecodeToBuffer) or 2D texture mips (BcPackDecodeToTexture2D) with pure GPU fence synchronization.

Zero Rust toolchain needed — the C-ABI DLL, import .lib, .dxil, and .spv binaries are attached in the v0.10.0 release!

**@⁠POMXARK** on GitHub · 2026-11-25 19:28 UTC · [original](https://github.com/LooperSalty/AnyXboxX/issues/229) Hi team, Notice you've been actively debugging NVIDIA 32-lane wave behavior on RTX 5080! For `IDStorageQueueX` / `xgcore` BCPack texture decompression on NVIDIA Wave32 hardware, I built a **clean-room, `MIT OR Apache-2.0` licensed DX12 HLSL SM 6.6 Wave32 decompressor** and prebuilt C-ABI DLL (`bcpack_gpu.dll`) verified bit-exact on RTX 5080: - **Repository:** https://github.com/POMXARK/bcpack-gpu-hlsl - **Prebuilt Win64 SDK (`v0.10.0`):** https://github.com/POMXARK/bcpack-gpu-hlsl/releases/tag/v0.10.0 (`bcpack-gpu-sdk-v0.10.0-win64.zip`) - **Engineering Notes & Invariants:** [`docs/AI_ARCHITECTURE.md`](https://github.com/POMXARK/bcpack-gpu-hlsl/blob/main/docs/AI_ARCHITECTURE.md) ### Highlights (RTX 5080 Verified `19/19 PASS`, DX12 Debug Layer Clean — 0 errors) - **True `WaveSize(32)` Compute Kernels (`shaders/bcpack_decode.hlsl`, `shaders/bcpack_bc7_rans.hlsl`):** - Dual-chunk warp packing (`24/32` lanes active on BC1, **`32/32` = 100% on 16-lane BC7 rANS**), 0 barriers inside the hot loop (`WaveReadLaneAt`), reaching **11.33 GB/s** (BC1) and **6.02 GB/s equiv** (BC7 rANS). - **DXC `-O3` Wave-Intrinsic Pitfall Documented:** Explicit `WaveActiveBallot` + `countbits` workaround replacing `WavePrefixCountBits`/`WaveActiveCountBits` in the split-half byte allocator (`0` byte mismatches at `-O3`). - **RTX 5080 `621.24` RT-Core Cache Fix:** Isolated `uav_barrier_all()` sync note if pairing Async Compute streaming with DXR `RayQuery`. - **Zero-Copy C++ Integration (`include/bcpack_gpu.h`):** Share your `ID3D12Device*` via `bcpack_gpu_create_from_device` and decode (+ Gfx10 `SW_64KB_D`/`SW_4KB_S` detile @ `432.6 GB/s`) directly into caller GPU buffers (`BcPackDecodeToBuffer`) or 2D texture mips (`BcPackDecodeToTexture2D`) with pure GPU fence synchronization. Zero Rust toolchain needed — the C-ABI DLL, import `.lib`, `.dxil`, and `.spv` binaries are attached in the `v0.10.0` release!
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:38:51 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/LooperSalty--AnyXboxX#229
No description provided.