diff options
| author | thibaut <thibaut-leaux-angeli@live.fr> | 2026-11-23 17:49:03 +0100 |
|---|---|---|
| committer | thibaut <thibaut-leaux-angeli@live.fr> | 2026-11-23 17:49:03 +0100 |
| commit | 310773a01cae69f733b9fb9c27b634942a32ff79 (patch) | |
| tree | 30994b17357b9d6206c4ed397348f92852dcb705 /runtime/src/pe_loader.cpp | |
| parent | 5e260436f97cb9c49099f7488848fdeb0f7dda04 (diff) | |
d3d12: slot 133 review fixes: no write-combined import, committed-range check, immediate free, proxy test
- A write-combined (or uncached) page in the range is not imported: an RTX 5090 imported such a range
and read wrong bytes back (found in review). It takes the ordinary-buffer fallback.
- The whole range must be committed, walked with VirtualQuery across allocations (the retail buffer
spans three mapped windows); otherwise E_INVALIDARG instead of undefined behaviour in Vulkan.
- The imported memory is freed as soon as the submitted work has retired (wait_retire_ticket), not
after the next submission: VK_EXT_external_memory_host needs the caller's pages to outlive it, and a
title may free them right after releasing the resource.
- The PC flag mask is 0x5ff: 0x200, which the host refuses, is dropped. Slot 133 is listed in
device_slot_overridden.
- xs_proxy_mock_test registers a handler and checks slot 133's argument positions, the flag mask
(0x20204 -> 0x4), the ROW_MAJOR rewrite and the iid; d3d12_existing_heap_test checks the
write-combined fallback and the partly committed refusal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions