GPU: accept a cached mesh pixel stage with a writable depth-only target #2456
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2464"
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-25T17:24:54Z.
What changed
Accept a cached mesh PSO with a pixel stage and zero color targets when the stream declares a valid writable depth attachment. A stream with color targets still needs a pixel stage. The existing MS-only WARP restriction remains in place.
Verification
On Windows 11 26200.9974 with the D3D12 debug layer enabled, the source-built cached slot 86 fixture obtains the native PSO and calls the normal guest ExecuteIndirect entry point. Its pixel stage writes SV_Depth = 0.25 on the left half and discards the right half. The RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818) both read back four D16 words of 0x4000 and four clear words of 0xffff.
A ready cache with zero color targets and no DSV, or a DSV with depth writes disabled, produces no native PSO and leaves depth clear. The missing-attachment and incomplete-constants controls also leave depth clear. The existing three-target and no-pixel depth controls run alongside them.