No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1378
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1378"
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?
@slopgobblercobbler on GitHub · 2026-11-24 15:24 UTC · original
slopgobblercobbler:fix/queue-slot18-safety→main· +68 −0 · 1 files · 1 commits · openSummary
Fixes #104 Item 4:
Before
Signalis called andQUEUE_SHIFTEDis determined (e.g., during early GDK initialization when titles callID3D12CommandQueue::GetTimestampFrequency), early callers invoke slot #18 with an 8-byteUINT64*out-param buffer.QUEUE_SHIFTEDis false (and layout is not yet known), calls to slot #18 copy only the first 8 bytes of the description into the out pointer via a temporary 16-byte local buffer (desc), preventing overrun of 8-byteUINT64buffers passed by earlyGetTimestampFrequencycallers.if a1 != 0) ensuring null out pointers do not trigger memory writes.queue_slot_18_bounds_and_safety_on_early_timestamp_frequencyvalidating canary preservation and proper dispatch under both unshifted and shifted states.Changes
crates/xcl/src/hle/d3d12x/real.rs:queue_method_18: use 16-byte local descriptor buffer and bounded 8-byte copy toa1when not null.queue_slot_18_bounds_and_safety_on_early_timestamp_frequencyverifying 8-byte out-param bounds, canary preservation, null pointer handling, and restoration of atomic test flags.Tested
cargo test -p xcl -- real: 9 passed, 0 failed (100% pass rate).a1immediately triggers canary assertion failure in synthetic test.Not Tested
AI Use
Co-Authored-By: Claude Code (Claude Opus 5.5) / Gemini Antigravity
@futurepro62 on GitHub · 2026-11-24 15:32 UTC · original · edited 2026-11-24 15:35 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
e1943b1(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.queue_slot_18_bounds_and_safety_on_early_timestamp_frequency.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 16:49 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@Toons29 on GitHub · 2026-11-25 03:28 UTC · original
Regression run of
e1943b13on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.