diff options
| author | yyc160 <yyc160@users.noreply.github.com> | 2026-11-24 09:12:03 +0800 |
|---|---|---|
| committer | yyc160 <yyc160@users.noreply.github.com> | 2026-11-24 09:15:32 +0800 |
| commit | 37246f11d1622e6959c19874000ddc020fa2bf79 (patch) | |
| tree | 96f97ab46277618da2eafa345e2fbfb798e01db6 /runtime/src/pe_loader.cpp | |
| parent | 2e471574666f6d3c4e26bd91c7b54ee91b899fe3 (diff) | |
d3d12_xs: only take the console slot-14 layout when the descriptor size agrees
proxy_create_descriptor_heap treated a readable, non-zero word after the PC
description as a console address. A normal 16-byte D3D12_DESCRIPTOR_HEAP_DESC
is almost always followed by readable, non-zero memory, so every ordinary heap
from a proxy device entered the console path and reported garbage as its CPU
handle; the first Create*View then wrote through it.
The console layout also carries a size, and that size is 32 bytes per
descriptor. Requiring it makes the two layouts distinguishable without guessing
at the address: a PC desc's trailing word is whatever the caller happens to
hold next, and it does not encode NumDescriptors * 32.
Measured on Windows 11, MSVC 14.44.35207, RTX 5070 Ti: ctest 278/300 -> 296/300,
22 failed -> 4 failed. d3d12_descriptor exits 139 before and 0 after; the four
remaining failures (root_sig, d3d12_com, d3d12_vulkan_device, d3d12_depth_resolve)
are unrelated shim behaviour and fail either way.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions