tests: rename a local that collides with the Windows small macro #1400
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!1400
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1400/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?
@HamsterCL on GitHub · 2026-10-11 03:02 UTC · original
HamsterCL:fix/tests-small-macro→main· +2 −2 · 1 files · 1 commits · merged 2026-10-11 07:35 UTCProblem
The Windows build of
shader_recompiler_compute_testsfails to compile, which has kept the Windows job onmainred sinceb7b335ac("gpu: admit block-compressed textures in PS5 R64 tiling"):That commit added a local variable named
small.windows.hpulls inrpcndr.h, which definessmallaschar, so on Windows the line readsconst auto char =and the translation unit does not compile. Linux and macOS are not affected, which is why only the Windows job fails.Change
Rename the local to
small_array(the declaration and its single use). Two lines, no change in behaviour.Testing
Built the Windows (clang-cl, Release) object for this test file locally:
I only compiled the test file; I did not run the test binary, and I did not build Linux or macOS (the change cannot affect them).
AI use
I used AI assistance (Claude Code) to track the error down and to prepare this change; I reproduced the failure and checked the fix by compiling it myself, and I reviewed the diff before submitting this.
@coderabbitai[bot] on GitHub · 2026-10-11 03:04 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
39d3039d-b9a7-4cfd-a829-ec9cbb7c8a73📥 Commits
Reviewing files that changed from the base of the PR and between
730e1a3cf3and6513904b79.📒 Files selected for processing (1)
tests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
📝 Walkthrough
Walkthrough
The R64 BC1 array round-trip test renames its local image fixture from
smalltosmall_array. The fixture setup and round-trip check are unchanged.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
65139This test-only rename preserves the fixture and round-trip check, with no identified merge risk.
Pre-merge checks |
5
✅ Passed checks (5 passed)
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
Comment
@coderabbitai helpto get the list of available commands.