[RFC] Zero-Copy GPU Compute BCPack Offload (HLSL SM 6.6 Wave32, 11.33 GB/s) + 1.25M Descriptor Paging (MIT/Apache-2.0) #2442
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by POMXARK on 2026-11-25T19:28:08Z.
Hi team,
Great work getting CPU
hle::bcpacklanding in#905— to help offloadIDStorageQueueX/ BCPack texture decompression and Gfx10 detiling onto Async Compute (avoiding CPU bottlenecks & unpacked PCIe transfers) as well as NVIDIA's ~1Mshader-visibledescriptor heap limit (E_OUTOFMEMORY), I built a 100% clean-room,MIT OR Apache-2.0licensed DX12 HLSL SM 6.6 + Rust implementation:v0.10.0): https://github.com/POMXARK/bcpack-gpu-hlsl/releases/tag/v0.10.0 (bcpack-gpu-sdk-v0.10.0-win64.zip:bcpack_gpu.dll,include/bcpack_gpu.h,.dxil+.spv)docs/AI_ARCHITECTURE.mdHighlights (Verified
19/19 PASSon NVIDIA RTX 5080, DX12 Debug Layer Clean — 0 errors)shaders/bcpack_decode.hlsl,shaders/bcpack_bc7_rans.hlsl):24/32lanes BC1,32/32 = 100%Wave32 BC7 rANS) keeping the 64B stream window in registers viaWaveReadLaneAt(0 shared-memory barriers inside the hot loop) and explicitWaveActiveBallot+countbitsworkaround for the DXC 1.8-O3prefix-count miscompile.0byte/symbol mismatches vsAhmet-Dedeler/bcpack-rs).shaders/gfx10_detile.hlsl):SW_64KB_D(8B/16B) andSW_4KB_S(8B) at 432.6 GB/s (0.144 ms/64 MiB).ResourceDescriptorHeap[]Paging (src/descriptor_paging.rs,shaders/bindless_paging.hlsl):1,250,000virtual resource IDs onto262,144physical Tier-3 slots viaCopyDescriptorsSimplein0.064 ms(65,536verified readbacks,0mismatches).include/bcpack_gpu.h,src/ffi.rs):bcpack_gpu_create_from_deviceshares XCL'sID3D12Device*,BcPackDecodeToBuffer/BcPackDecodeToTexture2Ddecode + Gfx10-detile directly into caller GPU resources (with automatic 256B RowPitch padding on small mips), and sync via GPUQueue::Waitwith zero CPU readback.Happy to adapt the shaders, Rust modules, or descriptor layout if XCL would like an optional GPU BCPack offload path!