tests: rename the BVH mirror test's near lambda, a Windows macro #2229
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!2229
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2229/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?
@Nawid3333 on GitHub · 2026-11-12 15:23 UTC · original
Nawid3333:tests/bvh-mirror-near-macro→main· +3 −3 · 1 files · 1 commits · merged 2026-11-12 15:49 UTCMain's Windows build fails since
eb3e86d5awithtests/BvhMirrorGpuTests.inc(154,25): error: expected unqualified-id(the Build KytyPS5 (Windows) job, e.g. run 43221430659 one35360fa4). The Windows headers definenear(andfar) as empty macros, soconst auto near = [](u32 value, float wanted) {becomesconst auto = .... This renames the lambda toclose_to; nothing else changes.Checked on Windows with clang-cl:
tests/ShaderRecompilerComputeTests.cppfails to compile on main with that error and compiles with this change. On my fork's CI (run 43229619484) the Windows and Linux jobs build and pass their tests with it.Written with Claude Code (AI): it read the failing CI log, made the change and compiled it on my PC; reviewed by me.
🤖 Generated with Claude Code
nearlambda, a Windows macro 738f7519c9@coderabbitai[bot] on GitHub · 2026-11-12 15:24 UTC · original
No actionable comments were generated in the recent review.
Walkthrough
The BVH mirror GPU test renames its local float-comparison helper from
neartoclose_to. The hit distance and barycentric coordinate checks use the renamed helper. The tolerance and comparison behavior remain unchanged.Suggested reviewers:
nmzikChange: Other
Merge Risk:
Minimal · up to
738f7This is a test-only rename that avoids a Windows macro collision on
near. It does not affect production behavior, and no merge-blocking risk remains.Pre-merge checks:
4
nearlambda, which is a Windows macro. The changeset renamesneartoclose_toin tests/BvhMirrorGpuTests.inc, so the title match…nearmacro in Windows headers. It names the affected file, the rename toclose_to, the test environment, and the…Full details: Title check
Explanation
The title names the actual change: renaming the BVH mirror test's
nearlambda, which is a Windows macro. The changeset renamesneartoclose_toin tests/BvhMirrorGpuTests.inc, so the title matches the main change. It is specific and concise.Full details: Description check
Explanation
The description explains the problem: a Windows build failure on main caused by the
nearmacro in Windows headers. It names the affected file, the rename toclose_to, the test environment, and the CI runs. It is directly related to the changeset.Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
fbfda58d-758e-4fe0-b189-acb03ccb1063Reviewing files that changed from the base of the PR and between
e35360fa41and738f7519c9.tests/BvhMirrorGpuTests.incIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.