Tests: enable lane-read coverage and clarify layout failures #840
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!840
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/840/head"
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?
@theantipopau on GitHub · 2026-09-25 21:20 UTC · original
theantipopau:shader-cfg-dormant-guard→main· +6 −4 · 2 files · 1 commits · merged 2026-09-27 11:37 UTCEnable the VOP3 lane-read destination test and update its expected opcode names to match decoded output. Reword two texture layout failure messages.
Validation: built
shader_cfg_tests;ctest --test-dir _Build/vscode-clang -R '^shader_cfg$' --output-on-failurepassed.@coderabbitai[bot] on GitHub · 2026-09-25 21:26 UTC · original · edited 2026-09-26 05:12 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
23c71778-4714-4f0d-a5ff-b0f169fe5253📥 Commits
Reviewing files that changed from the base of the PR and between 042f012af740607ae113d6cbc73d510e611feac0 and 6c56d67cbb0ce2c1882f0880a38bc576eb253642.
📒 Files selected for processing (1)
CMakeLists.txtIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough
The lane-read test now expects uppercase decoded opcode names and runs from the test runner. CMake checks test definitions in two source files against calls after
main()and compares dormant tests with a 43-name allowlist. Configuration fails when the sets differ.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Other
Merge Risk: ⚪ Minimal · up to
6c56dThe lane-read test is registered, and the configure-time dormant-test check avoids the known comment-parsing false positive. No concrete merge-blocking risk remains.
Architecture Summary
Architecture risk: 🔵 Low · up to
6c56dThe change affects 2 systems.
Changed systems:
CMakeLists.txt,testsArchitecture concerns
No architecture-level concerns identified.
Review details
Systems and components
Before / after behavior
TestNewShaderRecompilerVop3LaneReadDestinationEncodingfrom lowercase to uppercase opcode names.TestNewShaderRecompilerVop3LaneReadDestinationEncoding()to the test runner.main()against the sorted allowlist. It strips block comments before line comments prior to checking for calls. A mismatch stops configuration and reports unlisted dormant tests and allowlisted tests that are now called.🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-09-25 21:26 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
4bc78113-1645-420a-96fe-d4511b015a5e📥 Commits
Reviewing files that changed from the base of the PR and between
497166009cand 5cdbb002f1cd4b9fd7c8bec7979f91d7663ee43d.📒 Files selected for processing (2)
CMakeLists.txttests/shaderCfgTests.cppIncluded review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.
@coderabbitai[bot] on GitHub · 2026-09-25 21:26 UTC · original · edited 2026-09-26 01:29 UTC
On
CMakeLists.txtline 466 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Exclude C++ comments from the dormant-test check.
When
kyty_shader_cfg_maincontainsTestName();only inside a C++ comment,string(FIND)treats it as a call. The allowlistedTestNameis then omitted from the dormant-test set, so the exact comparison can raiseFATAL_ERROReven though the test remains dormant. Parse executable calls or strip C++ comments before searching the source text.✅ Addressed in commit 745d53e
@theantipopau on GitHub · 2026-09-26 01:26 UTC · original
On
CMakeLists.txtline 466 (outdated):Good catch — fixed in 745d53e5.
string(REGEX REPLACE "//[^\n]*" "" ...)now strips line comments from the main body before the per-name lookup, so a test mentioned only in a comment is still counted as dormant.Verified in both directions:
// TestNewShaderRecompilerSopkWaitcntMarkers();comment insidemain()leaves the guard passing (the test correctly stays dormant, matching the list).in the list, but now called from main(): TestNewShaderRecompilerSopkWaitcntMarkers, which is exactly the misclassification you predicted.One note on placement: the stripping call has to sit after the
string(SUBSTRING ...)that defineskyty_shader_cfg_main, since it rewrites that variable in place.@coderabbitai[bot] on GitHub · 2026-09-26 01:30 UTC · original
On
CMakeLists.txtline 466 (outdated):@theantipopau, thanks for fixing the//case. The comment-stripping call is in the right place, afterkyty_shader_cfg_mainis set.The original finding still applies to block comments. For example,
/* TestNewShaderRecompilerSopkWaitcntMarkers(); */remains in the text searched bystring(FIND), so the guard treats it as a call. Please exclude block comments before the per-name lookup too.You are interacting with an AI system.
@theantipopau on GitHub · 2026-09-26 03:21 UTC · original
On
CMakeLists.txtline 466 (outdated):Fixed in 042f012a.
Block comments are now stripped after line comments and before the per-name lookup. The pattern avoids backslash escapes entirely —
"/[*][^*]*[*]+([^/*][^*]*[*]+)*/"keeps*inside character classes and gets its literal/from the surrounding"/""/"literals, so the CMake quoted-argument backslash-stripping trap that the line-comment fix hit can't recur here.Verified with a
cmake -Pharness before building:/* TestNewShaderRecompilerDsFloatMinMaxTranslation(); */(single-line and multi-line, and with surrounding text) is removed;a / bandchar* pcontent does not trigger a false block match;shader_cfg_testsconfigures, builds and runs clean on top of the change.@coderabbitai[bot] on GitHub · 2026-09-26 03:24 UTC · original · edited 2026-09-26 05:15 UTC
On
CMakeLists.txtline 470 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 6923
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 243
🌐 Web query:
official CMake documentation string REGEX REPLACE regex replacement syntax💡 Result:
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 339
Strip block comments before line comments.
If a block comment contains
//before its closing*/on the same line, the current line-comment replacement removes the closing delimiter. The block-comment replacement then cannot match, so the call search can treat a dormant allowlisted test as called and fail configuration.The current shader test source has no such same-line pattern, so this is a narrow trigger.
Suggested fix
✅ Confirmed as addressed by @theantipopau
@coderabbitai[bot] on GitHub · 2026-09-26 03:24 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
a303ca55-9628-4149-beed-e6ff191e243f📥 Commits
Reviewing files that changed from the base of the PR and between 745d53e519d2d81a4f89e802a1965fd9399491ee and 042f012af740607ae113d6cbc73d510e611feac0.
📒 Files selected for processing (1)
CMakeLists.txtIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
@coderabbitai[bot] on GitHub · 2026-09-26 03:25 UTC · original
On
CMakeLists.txtline 466 (outdated):@theantipopau, thanks for the detailed verification.CMakeLists.txtnow strips block comments before the per-name lookup, so a call that appears only in a block comment does not count as active.✅ Review thread resolved.
You are interacting with an AI system.
@theantipopau on GitHub · 2026-09-26 05:10 UTC · original
On
CMakeLists.txtline 470 (outdated):Fixed in 6c56d67c.
The block-comment pass now runs before the line-comment pass, so the closing
*/of a block containing//survives and the block matches. The comment block documents the residual ordering gap this swap creates: a/*inside a line comment paired with a later*/inmaincan now eat live calls — but that direction fails the configure loudly (resurrected-test error) rather than silently hiding a dormant one, which is the safe side to err on.Verified with the
cmake -Pharness extended with your case —/* TestNewShaderRecompilerDsFloatMinMaxTranslation(); // explanation */is now fully removed — plus the earlier cases (live calls adjacent to comments, multi-line blocks, calls between two blocks, line comments,a / b/char*non-matches) and the full real-file pipeline (dormant list still exactly the 43-name allowlist).shader_cfg_testsconfigures, builds and runs clean on top.@coderabbitai[bot] on GitHub · 2026-09-26 05:15 UTC · original
On
CMakeLists.txtline 470 (outdated):@theantipopau, thanks for the detailed verification. The currentCMakeLists.txtremoves block comments before line comments, which addresses the reported case.✅ Review thread resolved.
You are interacting with an AI system.