tests: rename a local that collides with the Windows small macro #1940
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!1940
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1940/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-10-27 17:01 UTC · original
Nawid3333:fix/windows-small-macro→main· +4 −4 · 1 files · 1 commits · closed without mergingSince
9d8c4585("gpu: keep reused smaller image tables resident and drop them a frame after their last draw"), the Windows build ofmainfails intests/ShaderRecompilerComputeTests.cpp: the Windows SDK'srpcndr.hhas#define small char, so the new localconst IR::ImageHeapRequest small{...}does not compile (https://github.com/KytyPS5/KytyPS5/actions/runs/40482692093). Linux and macOS still build, but the last two releases (a5b3673,0685bff) have no Windows build.This renames the local to
half(it asks for half the table), as #1400 did for an earliersmallin the same file. No other change.On Windows 11 (clang-cl, Windows SDK 10.0.26100),
mainfails here with the same errors. With the rename,shader_recompiler_compute_testsbuilds, the 13 test programs CI runs pass, and--indirect-image-only, which runs the renamed check, passes on an AMD Radeon iGPU.Fork CI on this commit builds and passes on Windows, Linux and macOS: https://github.com/Nawid3333/KytyPS5/actions/runs/40540573323
AI use: Claude Code found the cause in the CI log and wrote this change with me; I reviewed the diff and the CI results.
🤖 Generated with Claude Code
@coderabbitai[bot] on GitHub · 2026-10-27 17:03 UTC · original
No actionable comments were generated in the recent review.
63e3c84c-ed3d-46d5-9e8e-f9c4ae9a5eabReviewing files that changed from the base of the PR and between
0685bffb2fand171f4f803d.tests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Walkthrough
The compute test renames its local image-heap request variable from
smalltohalf. The request values, acquisition checks, and assertions are unchanged.Suggested reviewers:
nmzikPriority:
Low
Change: Bug fix
Merge Risk:
Minimal · up to
171f4No actionable merge-blocking risk remains.
Pre-merge checks:
5
Full details: Description check
Explanation
The description explains the Windows build failure caused by the local named small colliding with the rpcndr.h macro, and it states that the local is renamed to half. It also lists the verification steps, so it relates directly to the changeset.
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. 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
Comment
@coderabbitai helpto get the list of available commands.@Nmzik on GitHub · 2026-10-27 20:42 UTC · original
superseeded
Pull request closed