[pr-tests] descriptor: SAFETY comment on the watch-page sampler test's VirtualAlloc #285
Loading…
Reference in a new issue
No description provided.
Delete branch "iboom72/fix/descriptor-test-safety-comment"
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?
What it changes
crates/darner-gpu/src/descriptor.rs, testdirty_sampler_across_two_watch_pages_is_mirrored, added with7a2c516b).The test's
unsafe { VirtualAlloc(..) }has no// SAFETY:comment; AGENTS.md asks for one on every unsafe block, and the other blocks of the same test have theirs. This adds the comment, in the wordswatch.rsuses for the same call. No code changes.How it was tested
1c142d36cargo clippy --workspace --all-targets --locked -- -D warningsand the same with--all-features: both passed.cargo test --workspace --lockedwas not run as a whole.Checklist
main.docs/asset-policy.md.Not run in the game: a comment in a test.
Checked for overlap
crates/darner-gpu/src/descriptor.rs.🤖 Generated with Claude Code
Follow-up to "How it was tested": the description says
cargo test --workspace --lockedwas not run as a whole. It has now been run, together with five other small pull requests of mine, on one local branch.mainf3840d73with these six commits picked on top, no conflicts:98a3c911(#265),5799f84a(#270),c782a6e2(#283),e69c0f77(#284),1c142d36(#285),5eae3d19(#286). Not run on this pull request's branch alone.cargo clippy --workspace --all-targets --locked -- -D warnings: passed.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed.cargo test --workspace --locked: one test failed, indarner-shader:emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders("DXIL validation failed ... Not all elements of output SV_Depth were written"). The same test fails the same way onmainf3840d73without these commits, none of the six changesdarner-shader, and #227 (open) fixes it.darner-shader's other tests: 557 passed, 16 ignored.cargo test --workspace --locked --no-fail-fast --exclude darner-shader: passed, all packages and the doc tests (darner-gpu: 1,773 passed, 81 ignored).Still not run in the game.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.