shader: allow partial SDWA destinations for V_NOT_B32 #684

Manually merged
github merged 1 commit from gh-pr/684/head into gh-pr/684/base 2026-11-26 09:29:43 +00:00
Owner

@⁠ElijaOwO on GitHub · 2026-09-17 18:48 UTC · original
ElijaOwO:shader-v-not-b32-sdwa-partial-dst → main · +83 −1 · 3 files · 1 commits · merged 2026-09-20 14:21 UTC

Allows partial SDWA destinations for V_NOT_B32 when source selector is DWORD.
Limited the change to VOP1 SDWA validation rules. (-> Source modifiers remain disabled)

Tests:

  • shader_cfg
  • shader_recompiler_compute_tests build
  • focused V_NOT_B32 SDWA preserve runtime test
**@⁠ElijaOwO** on GitHub · 2026-09-17 18:48 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/684) `ElijaOwO:shader-v-not-b32-sdwa-partial-dst` → `main` · +83 −1 · 3 files · 1 commits · merged 2026-09-20 14:21 UTC Allows partial SDWA destinations for V_NOT_B32 when source selector is DWORD. Limited the change to VOP1 SDWA validation rules. (-> Source modifiers remain disabled) Tests: - shader_cfg - shader_recompiler_compute_tests build - focused V_NOT_B32 SDWA preserve runtime test
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:29:37 +00:00
github manually merged commit 9d1fd7d5df into gh-pr/684/base 2026-11-26 09:29:43 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-17 18:54 UTC · original

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: c1c56b43-45a1-4906-b2d5-56507110c1ec

📥 Commits

Reviewing files that changed from the base of the PR and between 104530eafc and 9d1fd7d5df.

📒 Files selected for processing (3)
  • src/graphics/shader/recompiler/frontend/decode/VectorAluOps.cpp
  • tests/ShaderRecompilerComputeTests.cpp
  • tests/shaderCfgTests.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The V_NOT_B32 SDWA rule now accepts byte-, word-, and full-destination selectors. Decoder tests cover valid and invalid destination metadata and modifiers. A compute recompiler test verifies high-word preservation, opcode output, IR generation, and SPIR-V OpNot support.

Suggested reviewers: nmzik

Priority: ⬇️ Low

Change: Feature

Merge Risk: ⚪ Minimal · up to 9d1fd

The SDWA destination expansion has focused validation and runtime coverage, with no actionable merge risk identified.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description accurately explains the V_NOT_B32 partial SDWA destination change, the validation scope, and the listed tests.
Title check ✅ Passed The title clearly and concisely identifies the main change: allowing partial SDWA destinations for V_NOT_B32.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-17 18:54 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/684#issuecomment-5719618235) <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/684#gh-light-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg" alt="Review Change Stack" width="202" height="32"></a><a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/684#gh-dark-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg" alt="Review Change Stack" width="202" height="32"></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Path: .coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `c1c56b43-45a1-4906-b2d5-56507110c1ec` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 104530eafcc4c5eb2e33959488ce7472e1484482 and 9d1fd7d5df1c6db301ff7cc851f1552fbba40903. </details> <details> <summary>📒 Files selected for processing (3)</summary> * `src/graphics/shader/recompiler/frontend/decode/VectorAluOps.cpp` * `tests/ShaderRecompilerComputeTests.cpp` * `tests/shaderCfgTests.cpp` </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 9 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The `V_NOT_B32` SDWA rule now accepts byte-, word-, and full-destination selectors. Decoder tests cover valid and invalid destination metadata and modifiers. A compute recompiler test verifies high-word preservation, opcode output, IR generation, and SPIR-V `OpNot` support. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"9d1fd7d5df1c6db301ff7cc851f1552fbba40903" --> **Change:** Feature <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `9d1fd` <!-- final_review_risk_coverage:{"sourceCommitId":"9d1fd7d5df1c6db301ff7cc851f1552fbba40903","coveredCommitId":"9d1fd7d5df1c6db301ff7cc851f1552fbba40903","kind":"reviewed"} --> The SDWA destination expansion has focused validation and runtime coverage, with no actionable merge risk identified. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 5</summary> <details> <summary>✅ Passed checks (5 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Description check | ✅ Passed | The description accurately explains the V_NOT_B32 partial SDWA destination change, the validation scope, and the listed tests. | | Title check | ✅ Passed | The title clearly and concisely identifies the main change: allowing partial SDWA destinations for V_NOT_B32. | | Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1… | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> --- <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.