Fix Windows macro collision in the HDR video-out test #2010
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!2010
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2010/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?
@Xx-LiDAF-xX on GitHub · 2026-10-31 05:37 UTC · original
Xx-LiDAF-xX:fix/windows-hdr-test→main· +5 −5 · 1 files · 1 commits · merged 2026-10-31 22:45 UTCThe Windows SDK defines
nearas an empty macro. In the HDR10-to-SDR test added by #2003, that macro removes the name of the pixel comparison lambda and prevents the Windows test target from compiling. Rename the helper topixelsMatchin its declaration and both assertions.The affected test target built with clang-cl and the
video_out_hdr10_to_sdrtest passed locally. All three platform jobs passed in the fork workflow.@coderabbitai[bot] on GitHub · 2026-10-31 05:39 UTC · original
No actionable comments were generated in the recent review.
86749373-8389-42f2-b29e-ed397176df5fReviewing files that changed from the base of the PR and between
026189166fand9754c7fdef.tests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Walkthrough
The compute tests rename the local pixel-comparison lambda from
neartopixelsMatch. The PQ and linear-nit assertions use the new name. The lambda body, render inputs, and expected pixel values remain unchanged.Suggested reviewers:
nmzikChange: Bug fix
Merge Risk:
Minimal · up to
9754cNo actionable merge-blocking risk remains.
Pre-merge checks:
5
nearmacro collision, thepixelsMatchrename, and the reported validation results.Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 too large.)
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
@lukanatroshvili67 on GitHub · 2026-10-31 09:58 UTC · original
Reproduced the Windows build failure locally on
main(02618916): Windows 11, VS 2022 Build Tools, clang-cl 19.1.5. Sameexpected unqualified-iderrors inShaderRecompilerComputeTests.cppas the failing CI job, from<windows.h>definingnearas an empty macro.With the same rename applied, everything builds, the CI ctest set passes (14/14), and the HDR10 test also passes on real hardware, which CI doesn't run:
GPU: NVIDIA GeForce RTX 3060.
@Xx-LiDAF-xX on GitHub · 2026-10-31 10:13 UTC · original
Thanks @lukanatroshvili67 for reproducing the failure and running the HDR test on your RTX 3060. The
pixelsMatchrename you verified is in9754c7fd. I reranvideo_out_hdr10_to_sdrlocally and it passed. The upstream Windows, Linux, and macOS builds also passed.