(removed by author) #618

Merged
JFIREonFIRE merged 1 commit from upstream-pr/618 into main 2026-11-25 00:11:52 +00:00
JFIREonFIRE commented 2026-11-24 05:43:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by JFIREonFIRE on 2026-11-24T05:43:28Z.


(removed by author)

<!-- greyfinch-sync:Marvisak/VIctory:issue:5466809999 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/618). Originally posted by [JFIREonFIRE](https://github.com/JFIREonFIRE) on 2026-11-24T05:43:28Z. --- (removed by author)
LAKSHYA-cmd-tech commented 2026-11-24 06:01:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:01:05Z.

Review: APPROVED


Tested on Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc).

  • cargo test -p victory-gpu: all 45 synthetic tests passed cleanly (0 failed, 1 ignored benchmark).
  • ppended_elements_are_aligned and _huge_explicit_offset_does_not_overflow both passed.
  • cargo xtask policy: 151 files ok.
  • Verified D3D12 min(4, element_size) alignment rule for D3D12_APPEND_ALIGNED_ELEMENT and saturation guard against u32 overflow in GraphicsState::elements.
<!-- greyfinch-sync:Marvisak/VIctory:review:6034423142 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/618#pullrequestreview-6034423142). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T06:01:05Z. **Review:** APPROVED --- Tested on Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc). - cargo test -p victory-gpu: all 45 synthetic tests passed cleanly (0 failed, 1 ignored benchmark). - ppended_elements_are_aligned and _huge_explicit_offset_does_not_overflow both passed. - cargo xtask policy: 151 files ok. - Verified D3D12 min(4, element_size) alignment rule for D3D12_APPEND_ALIGNED_ELEMENT and saturation guard against u32 overflow in GraphicsState::elements.
fuzeofficlal commented 2026-11-24 08:02:48 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-24T07:26:27Z.


I ran a synthetic 4×4 rectangle through GraphicsState::elements and primitive::expand_rects, then rasterized and read it back in native D3D12. The last input follows a 16-bit element and needs to start at byte 12. Native APPEND_ALIGNED_ELEMENT and an explicit byte-12 layout produced identical pixels.

On d2a4bae, the CPU layout resolved to [0, 8, 10] and matched the native reference at 10/16 pixels. On 691236d, it resolved to [0, 8, 12] and matched all 16. The RTX 5090 and WARP agreed on both results, with zero D3D12 debug-layer errors. This covers layout resolution and rectangle expansion with actual rasterization.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7124994255 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/618#issuecomment-7124994255). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-24T07:26:27Z. --- I ran a synthetic 4×4 rectangle through `GraphicsState::elements` and `primitive::expand_rects`, then rasterized and read it back in native D3D12. The last input follows a 16-bit element and needs to start at byte 12. Native `APPEND_ALIGNED_ELEMENT` and an explicit byte-12 layout produced identical pixels. On `d2a4bae`, the CPU layout resolved to `[0, 8, 10]` and matched the native reference at 10/16 pixels. On `691236d`, it resolved to `[0, 8, 12]` and matched all 16. The RTX 5090 and WARP agreed on both results, with zero D3D12 debug-layer errors. This covers layout resolution and rectangle expansion with actual rasterization.
DenRakEiw commented 2026-11-24 13:48:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T13:48:41Z.

Review: APPROVED


Tested head 691236d merged cleanly onto main (ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC, NVIDIA RTX 5090):

  • cargo test -p victory-gpu: 52 passed, 0 failed, 1 ignored (including pipeline::host::tests::appended_elements_are_aligned and a_huge_explicit_offset_does_not_overflow)
  • cargo clippy -p victory-gpu --all-targets: 0 warnings
  • cargo xtask policy: ok

Clean fix: checked_next_multiple_of(bytes.clamp(1, 4)) matches D3D12 D3D12_APPEND_ALIGNED_ELEMENT alignment rules and saturating_add prevents overflow on large explicit offsets. Approving.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6040354651 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/618#pullrequestreview-6040354651). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T13:48:41Z. **Review:** APPROVED --- Tested head `691236d` merged cleanly onto `main` (`ffe310e`) on Windows 11 x64 (Rust 1.98.1 MSVC, NVIDIA RTX 5090): - `cargo test -p victory-gpu`: **52 passed, 0 failed, 1 ignored** (including `pipeline::host::tests::appended_elements_are_aligned` and `a_huge_explicit_offset_does_not_overflow`) - `cargo clippy -p victory-gpu --all-targets`: **0 warnings** - `cargo xtask policy`: ok Clean fix: `checked_next_multiple_of(bytes.clamp(1, 4))` matches D3D12 `D3D12_APPEND_ALIGNED_ELEMENT` alignment rules and `saturating_add` prevents overflow on large explicit offsets. Approving. AI-assisted (Gemini 4 Neon).
Yaekai commented 2026-11-24 16:05:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Yaekai on 2026-11-24T16:03:07Z.


Independent test & review on Windows 11 + NVIDIA RTX 3070 (Rust 1.98.1) at head eb9a10d:

  • cargo test -p victory-gpu --lib: 45 passed, 0 failed (including appended_elements_are_aligned and a_huge_explicit_offset_does_not_overflow).
  • cargo clippy -p victory-gpu -- -D warnings: 0 warnings.
  • Checked the alignment math (bytes.clamp(1, 4) with checked_next_multiple_of + saturating_add): matches D3D12's D3D12_APPEND_ALIGNED_ELEMENT rules cleanly with no overflow paths.

Looks clean and ready to merge!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137040285 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/618#issuecomment-7137040285). Originally posted by [Yaekai](https://github.com/Yaekai) on 2026-11-24T16:03:07Z. --- Independent test & review on Windows 11 + NVIDIA RTX 3070 (Rust 1.98.1) at head `eb9a10d`: - `cargo test -p victory-gpu --lib`: 45 passed, 0 failed (including `appended_elements_are_aligned` and `a_huge_explicit_offset_does_not_overflow`). - `cargo clippy -p victory-gpu -- -D warnings`: 0 warnings. - Checked the alignment math (`bytes.clamp(1, 4)` with `checked_next_multiple_of` + `saturating_add`): matches D3D12's `D3D12_APPEND_ALIGNED_ELEMENT` rules cleanly with no overflow paths. Looks clean and ready to merge!
upstream-sync closed this pull request 2026-11-25 01:04:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!618
No description provided.