Repository navigation
fix(shader): initialize BindingLayout fields with zero defaults - #21018
oneandonlydean merged 1 commit into
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The four zero initializers make default-initialized BindingLayout objects start with defined values, and I found no blocking defect in the reviewed change.
What I ran
Reviewed head 31831f576e0f008efa7382f885122ba28713c555 using repo_read.py reader tools. No build or tests were run by me; the description reports a request_serializer test and convention check, but I did not independently verify them.
repo_read.py cat core/shader/recompiler/Recompiler.hpp 378 410
repo_read.py search BindingLayout
repo_read.py search descriptorSet|firstBinding|pushConstantOffsetBytes|pushConstantSizeBytes
Results
| Check | Result | Note |
|---|---|---|
| Source review | passed | One changed file read |
| Build and tests | not run | Author reports checks; not independently run |
| Negative control | not run | No test change in this patch |
Findings
Blocking
None.
Non-blocking
None.
Sources
The change adds zero defaults to all four BindingLayout members in core/shader/recompiler/Recompiler.hpp:389-392.
Not verified
No files were excluded from the review bundle. The sole changed file, core/shader/recompiler/Recompiler.hpp, was read. Build and test results in the description were not independently verified; console behavior was not tested.
To get this to a good state
Nothing is required.
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
What
Ensure
BindingLayoutstruct members have explicit default zero initializers to prevent uninitialized memory reads.Tested
/tmp/anyps5_build(request_serializer).python3 tools/check_conventions.py --base origin/main.Checklist