Make the descriptor and depth-bounds GPU tests portable #121

Manually merged
github merged 2 commits from github-bot/gh-121 into main 2026-11-27 03:16:03 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 02:59 UTC · original
TaynanGT:fix/117-portable-gpu-tests → main · +87 −15 · 2 files · 2 commits · merged 2026-11-27 03:11 UTC

Addresses #117.

  • The descriptor test reads known values through the copied shader resource view and checks that the same slot returns zeros after it receives a null view. It still verifies that each thread uses separate staging handles. The shader's volatile descriptor range keeps buffer bounds checks enabled for the out-of-range read.
  • The depth-bounds test uses an empty version 1.0 root signature and simple Shader Model 5.1 shaders. It still checks pipeline-library reuse and both the rejected and accepted draws across a command-list cut.

Windows 11, RTX 4090 (621.40): cargo test --locked -p victory-gpu --lib -- --test-threads=1 passed (423 passed, 42 ignored). Clippy passed with all victory-gpu targets and features. Both affected tests passed on Microsoft's WARP software adapter. Fredziu-MG confirmed both fixes on the RX 6750 XT with Windows 10 at f8544b8 (423 passed, 42 ignored). The final commit 2b83218 adds the volatile descriptor-range flag for out-of-range reads in the test and passed all four Windows CI checks.

**@⁠TaynanGT** on GitHub · 2026-11-27 02:59 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/121) `TaynanGT:fix/117-portable-gpu-tests` → `main` · +87 −15 · 2 files · 2 commits · merged 2026-11-27 03:11 UTC Addresses #117. - The descriptor test reads known values through the copied shader resource view and checks that the same slot returns zeros after it receives a null view. It still verifies that each thread uses separate staging handles. The shader's volatile descriptor range keeps buffer bounds checks enabled for the out-of-range read. - The depth-bounds test uses an empty version 1.0 root signature and simple Shader Model 5.1 shaders. It still checks pipeline-library reuse and both the rejected and accepted draws across a command-list cut. Windows 11, RTX 4090 (621.40): `cargo test --locked -p victory-gpu --lib -- --test-threads=1` passed (423 passed, 42 ignored). Clippy passed with all `victory-gpu` targets and features. Both affected tests passed on Microsoft's WARP software adapter. Fredziu-MG confirmed both fixes on the RX 6750 XT with Windows 10 at `f8544b8` (423 passed, 42 ignored). The final commit `2b83218` adds the volatile descriptor-range flag for out-of-range reads in the test and passed [all four Windows CI checks](https://github.com/TaynanGT/Vice-Tay/actions/runs/45932005613).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:04:08 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 02:59 UTC · original · edited 2026-11-27 03:07 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T03:06:13.143552Z 2b83218 Manual request
🔒 Security Review ✅ Completed 2026-11-27T03:07:36.549359Z 2b83218 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 02:59 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/121#issuecomment-7208611323) · edited 2026-11-27 03:07 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"2b832185a8ed54d13f1891c774836b34ed921ea3","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"2b832185a8ed54d13f1891c774836b34ed921ea3","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"2b832185a8ed54d13f1891c774836b34ed921ea3","mergeGateEnabled":false,"pullRequestNumber":121,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-27T03:06:13.143552Z">2026-11-27T03:06:13.143552Z</relative-time> | `2b83218` | Manual request | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T03:07:36.549359Z">2026-11-27T03:07:36.549359Z</relative-time> | `2b83218` | Manual request | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 03:06 UTC · original

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 2b832185a8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 03:06 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/121#issuecomment-7208706610) <!-- codex-review-receipt:v1 --> Codex Review: Didn't find any major issues. Chef's kiss. **Reviewed commit:** `2b832185a8` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 03:07 UTC · original

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 2b832185a8

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@⁠codex security review"
  • A regular code review gets triggered (for example, "@⁠codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 03:07 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/121#issuecomment-7208726633) <!-- codex-review-receipt:v1 --> ### 🛡️ Codex Security Review · _Automatically triggered_ Security review completed. No security issues were found in this pull request. **Reviewed commit:** `2b832185a8` [View security finding report](https://chatgpt.com/codex/cloud/tasks/task_e_6b08f3722c9483228874f080f7b04a25) _Only the user who started this review can view the report in Codex._ <details> <summary>ℹ️ About Codex security reviews in GitHub</summary> <br/> This is an experimental Codex feature. Security reviews are triggered when: - You comment "@⁠codex security review" - A regular code review gets triggered (for example, "@⁠codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review Once complete, Codex will leave suggestions, or a comment if no findings are found. </details>
Author
Owner

@⁠Fredziu-MG on GitHub · 2026-11-27 03:09 UTC · original

Great news! Both fixes work on my RX 6750 XT! 🎉

Tested commit: f8544b89f919d27c6e72db9b9003a803554eb027

System: Windows 10 Pro 22H2, AMD RX 6750 XT, driver 32.0.21045.29003.

Result: 423 passed, 0 failed, 42 ignored.

Both previously failing tests now pass.

Thanks for the fixes!

**@⁠Fredziu-MG** on GitHub · 2026-11-27 03:09 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/121#issuecomment-7208747837) Great news! Both fixes work on my RX 6750 XT! 🎉 Tested commit: `f8544b89f919d27c6e72db9b9003a803554eb027` System: Windows 10 Pro 22H2, AMD RX 6750 XT, driver 32.0.21045.29003. **Result: 423 passed, 0 failed, 42 ignored.** Both previously failing tests now pass. Thanks for the fixes!
github manually merged commit 123c4b7fce into main 2026-11-27 03:16:03 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 03:10 UTC · original

@⁠Fredziu-MG Thanks for testing this on the RX 6750 XT and including the driver version. Your Windows 10 run confirms that both reported failures are fixed on f8544b8, with 423 tests passed and 42 ignored.

The current commit, 2b83218, has one follow-up: the descriptor test marks its descriptor range volatile so D3D12 guarantees bounds checking for the test's out-of-range read. The depth-bounds test is the same as the one you ran. The updated descriptor test passed on my RTX 4090 and on WARP, and all four Windows CI checks passed. Windows CI run

If you have time for one last check on AMD, the focused command is cargo test --locked -p victory-gpu --lib views_are_made_beside_the_heap_and_copied_in.

**@⁠TaynanGT** on GitHub · 2026-11-27 03:10 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/121#issuecomment-7208766394) @⁠Fredziu-MG Thanks for testing this on the RX 6750 XT and including the driver version. Your Windows 10 run confirms that both reported failures are fixed on `f8544b8`, with 423 tests passed and 42 ignored. The current commit, `2b83218`, has one follow-up: the descriptor test marks its descriptor range volatile so D3D12 guarantees bounds checking for the test's out-of-range read. The depth-bounds test is the same as the one you ran. The updated descriptor test passed on my RTX 4090 and on WARP, and all four Windows CI checks passed. [Windows CI run](https://github.com/TaynanGT/Vice-Tay/actions/runs/45932005613) If you have time for one last check on AMD, the focused command is `cargo test --locked -p victory-gpu --lib views_are_made_beside_the_heap_and_copied_in`.
Author
Owner

@⁠Fredziu-MG on GitHub · 2026-11-27 03:21 UTC · original · edited 2026-11-27 03:23 UTC

The updated descriptor test passes on my RX 6750 XT! ✅

I downloaded the latest main (123c4b7fce) ZIP and ran:

cargo test --locked -p victory-gpu --lib views_are_made_beside_the_heap_and_copied_in -- --test-threads=1 --nocapture

Result: 1 passed, 0 failed, 464 filtered out.

Thanks again for the fixes!

**@⁠Fredziu-MG** on GitHub · 2026-11-27 03:21 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/121#issuecomment-7208920403) · edited 2026-11-27 03:23 UTC The updated descriptor test passes on my RX 6750 XT! ✅ I downloaded the latest `main` (123c4b7fceac985eee2876f8774785a451092aec) ZIP and ran: `cargo test --locked -p victory-gpu --lib views_are_made_beside_the_heap_and_copied_in -- --test-threads=1 --nocapture` **Result: 1 passed, 0 failed, 464 filtered out.** Thanks again for the fixes!
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 04:07 UTC · original

Thanks for checking the final merged revision on the RX 6750 XT, @⁠Fredziu-MG. The one pass at 123c4b7 confirms the updated descriptor bounds test on your physical Radeon. That gives us a direct Windows 10 result for the exact test in main.

**@⁠TaynanGT** on GitHub · 2026-11-27 04:07 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/121#issuecomment-7209543419) Thanks for checking the final merged revision on the RX 6750 XT, @⁠Fredziu-MG. The one pass at `123c4b7` confirms the updated descriptor bounds test on your physical Radeon. That gives us a direct Windows 10 result for the exact test in `main`.
This discussion has been locked. Commenting is limited to contributors.
No description provided.