tests: fix Vdecsw aligned allocation on Windows #1527
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!1527
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1527/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?
@TahaHydra on GitHub · 2026-10-15 14:44 UTC · original
TahaHydra:fix/vdecsw-msvc-aligned-allocation→main· +16 −1 · 1 files · 1 commits · closed without merging### Summary
Fixes a Windows MSVC compilation failure in VdecswTests.cpp caused by the unsupported std::aligned_alloc.
Use _aligned_malloc and _aligned_free on Windows.
Preserve std::aligned_alloc and std::free on other platforms.
Keep the existing memory alignment and guard-buffer checks unchanged.
### Testing
Reproduced the original MSVC compilation failure.
Windows Vdecsw test suite builds and passes with the fix.
Validated 256-byte alignment and guard-buffer integrity on MSVC and Linux.
macOS implementation remains unchanged (not tested natively).
AI assistance
AI tools were used for assistance; the fix was validated through Windows and Linux testing.
@coderabbitai[bot] on GitHub · 2026-10-15 14:46 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
213d4340-89f5-4db2-8c80-52d52dfd94e7📥 Commits
Reviewing files that changed from the base of the PR and between
9e41d8320aand4a53f6fb1e.📒 Files selected for processing: 1
tests/VdecswTests.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
GuardedMemorynow uses_aligned_mallocand_aligned_freeon Windows. Other platforms continue to usestd::aligned_allocandstd::free. The test conditionally includes<malloc.h>on Windows. Allocation sizing and guard checks remain unchanged.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
4a53fThis change is confined to test allocation and preserves the existing alignment and guard checks, with no unresolved product behavior risk indicated.
Pre-merge checks:
4 ·
1
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-16 01:16 UTC · original
@TahaHydra Visual Studio 2022 CI is fine? I'll reopen but very strange...
Pull request closed