xcrdapi: add BC6H codec, zlib continuation cache, overlapped reads, and GDKX ABI chains #508
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/508"
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 brcly/TuxBox. Originally posted by glovepost on 2026-11-29T17:31:22Z.
Summary
Extends the console storage provider (
xcrdapi) with BC6H decoding, zlib continuation slices, overlapped file reads, and the request and interface layouts of the GDKX storage API.runtime/xcrdapi/codecdecodes BCPack BC6H streams (bc6h.rs, with its tables intables/bc6h.rs), alongside the existing BC1, BC3, BC4, BC5 and BC7.docs/REFERENCES.mdlists the new attribution, and the decode path indecode.rsaccepts BC6H and still refuses BC2.ZLIB_CACHE), so a continuation slice no longer issues a disk read. A read that starts partway into a chunk scans backward to the covering chunk, and the cache is purged with the file.GetOverlappedResultwith a per-worker event, and a persistentReadPoolruns a batch of queued reads together. A file with no overlapped handle falls back to the synchronous path.Requestgains thenamepointer, so its size is 72 bytes, with the layout asserted at compile time.IFactory1/IFactory2andIQueue1/IQueue2are split into the interface chains the SDK defines, andCreateQueueaccepts any interface in the queue chain.write_decoded_output.#501 also edits
Read::executeinruntime/xcrdapi/src/queue.rs, so whichever of the two lands second needs a rebase.Prepared with AI assistance; all changes were reviewed and verified on host checks, the Windows unit tests and both NVIDIA and AMD GPUs.
Tested
Run the checks relevant to this change.
xcrdapiis a storage provider, not a graphics or compute path, so no Lanes scenario applies. It is covered by thetuxbox-xcrdapi-codechost tests (including the new BC6H round trips), thetuxbox-xcrdapiunit tests that run under Wine (the ABI and interface chains, the overlapped pool and the zlib cache), and thexcrdapiverify suite.GPU, driver and backend:
10de:1e84), driver620.73.04, GE-Proton11-141002:13c0), RADV / Mesa26.3.1, GE-Proton11-14Commands run and their results:
Checks
CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of
tuxbox-d3d12.