Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #10 and #8 on top of
main(60fe765f), keeping #8's zero-copysrc_ptr/out_ptrJobrepresentation intact while adding early batch-error isolation, non-panicking worker spawn fallback, andbcpack-gpu-sdk v0.15.1.Summary
bcpack-gpu-sdktov0.15.1(96b7e757) inCargo.tomlandCargo.lock, which initializes everyitem.status = -1inBcPackDecodeBatchandBcPackDecodeBatchToTexturesbeforectx.is_null(),catch_unwind, andwait_compute_cpu.BcPackBatchItemerror handling (crates/victory-hle/src/modules/gpu_bcpack.rsdecode_batch_with):BcPackBatchItem::statusfields to-1(failure sentinel) rather than0.BcPackDecodeBatchreturn value (if rc < 0) and fails the entire batch cleanly so callers never treat untouched zero/destination buffers as decoded output if an early SDK error (e.g.-99) occurs.sender() -> Option<&'static Sender<Job>>):.spawn(...).expect(...)with.spawn(...).ok().map(|_| tx)andsubmit_with_sender(sender(), ...)so worker creation failure returnsNoneand falls back cleanly to CPUvictory_formats::bcpack::decode.batch_early_error_return_rejects_itemsandunavailable_worker_falls_back_without_panicking.Verification (Windows 11 + NVIDIA GeForce RTX 5080, head
a05a1e26)cargo clippy --locked -p victory-hle -- -D warnings: PASS (0 warnings)cargo clippy --locked -p victory-hle --features gpu-bcpack -- -D warnings: PASS (0 warnings)cargo test --release --locked -p victory-hle --features gpu-bcpack gpu_bcpack -- --nocapture: 4 passed; 0 failedunavailable_worker_falls_back_without_panicking: okbatch_early_error_return_rejects_items: okgpu_bcpack_matches_victory_cpu: ok (0 mismatches across BC1/3/4/5/6H/7)gpu_bcpack_batch_coalescing_matches_cpu: ok (12/13 mixed + 6-thread coalescing: 0 mismatches)