Repository navigation
d3d12: preserve PC descriptor validation in slot 25 - #2
Merged
tedin7 merged 1 commit intoNov 23, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the Leonida coordination issue.
Depends on ItsNotRexed/Leonida#7110. This PR targets its branch so the diff contains only the follow-up.
Summary
The original normalization made ordinary invalid PC descriptors appear valid by replacing their layout and dropping unknown flags. The mock now checks that an invalid PC buffer layout and flags reach the host unchanged. The existing WARP oracle also asserts that the normalized Xbox buffer gets a valid size.
Evidence
aeb253754and on the d3d12_xs: committed resources lease their size through the title's XMem hooks, so the first render targets pass the budget check (retail boot chain stop 17) ItsNotRexed/Leonida#7240 boot stack,d3d12_vulkan_devicestopped atallocation_mismatches <= 0on both GPUs. The new mock failed on the overwritten layout and, after restoring the layout, on the discarded flags.d7451f9d9, the WARP proxy tests, all mock variants andd3d12_m2_formatspass. The broader Vulkan device test clears allocation parity and reaches the existing slot-78 assertion tracked in #7125.ae322dafcwith this runtime change and the separate d3d12_vulkan_device: check PC CreateReservedResource2 behind the Xbox proxy, not through slot 78 ItsNotRexed/Leonida#7125 patch, 10/10 focused CTests pass on each GPU with Vulkan validation enabled.Windows 11 Pro 26200, MSVC 19.44, Vulkan SDK 1.4.363.0, RTX 5090 (616.92) and Ryzen 7 9800X3D Radeon iGPU (AMD 25.10.30). Synthetic fixtures only. AI-assisted.
Merge Danger
The change is reversible and limited to slot-25 descriptor handling and its tests. Allocation sizing and resource leasing are unchanged.