gpu: ignore padding in mesh slot86 cache keys #2473
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2481"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T18:02:04Z.
The cached mesh request already clears root and shader pointers and some subobject alignment bytes. It now also clears the padding after each blend target's write mask and between the depth-stencil masks and face descriptors. SampleMask and all existing pipeline state fields stay in the cache key. Previously captured requests with nonzero padding will get a new key and need one new publication.
The source-built fixture publishes a baseline request and replays it with different padding through slot 86 and ExecuteIndirect. Both adapters reuse the cached PSO and read back the expected pixels on all three attachments. Changing one SampleMask bit instead publishes a separate request and leaves the attachments clear. With the previous runtime, the padding-only replay generated a new key and left the first pixel black rather than red.
Windows build 26200, D3D12 debug layer enabled. RTX 4060 Laptop GPU driver 32.0.16.1656 and WARP driver 10.0.26100.9818. All 8 tests passed with no capability skips.