tests: build the Vdecsw tests on Windows #2014
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!2014
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2014/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?
@lukanatroshvili67 on GitHub · 2026-10-31 11:34 UTC · original
lukanatroshvili67:fix/vdecsw-tests-windows→main· +8 −2 · 1 files · 1 commits · closed without mergingtests/VdecswTests.cppdoesn't compile with clang-cl on Windows:MSVC's C runtime doesn't provide
std::aligned_alloc, since itsfree()can't release over-aligned blocks. The test has been broken on Windows since it was added ina7a734b5. CI doesn't catch it becausevdecsw_testsisn't in the Windows build target list.This change allocates the guarded buffer with the C++17 aligned
operator new(thenothrowform, so the existing nullCHECKstill applies) and frees it with the matching alignedoperator delete. That works the same on all three platforms. Sizes and alignment are unchanged.Tested on Windows 11, clang-cl 19.1.5:
vdecsw_testsbuilds andctest -R ^vdecsw$passes.@coderabbitai[bot] on GitHub · 2026-10-31 11:37 UTC · original · edited 2026-10-31 11:41 UTC
No actionable comments were generated in the recent review.
57276e64-9621-44dd-b496-0d4cb351672aReviewing files that changed from the base of the PR and between
026189166fand 4cd095bb833f75c7a42da0c8f4401cc4b393b7e7.tests/VdecswTests.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
GuardedMemorynow allocates 256-byte-aligned memory with nothrow alignedoperator newand releases it with matching alignedoperator delete. Allocation-size rounding, failure checking, data offset, and guard-byte initialization remain unchanged.Suggested reviewers:
nmzikChange: Other
Merge Risk:
Minimal · previous review
4cd09No actionable merge-blocking risk is evident in this targeted test portability change.
Pre-merge checks:
5
Full details: Title check
Explanation
The title names the main change: it makes the Vdecsw tests build on Windows. The PR replaces std::aligned_alloc and free() in tests/VdecswTests.cpp with aligned operator new and the matching aligned operator delete, which is the fix that allows the clang-cl build to succeed. The title is specific and matches 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 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 1 files.
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
@Nmzik on GitHub · 2026-11-04 08:05 UTC · original
Duplicate: #1966
Pull request closed