diff options
| author | undeadhuman37 <undeadhuman37@gmail.com> | 2026-11-23 18:58:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-23 09:58:30 -0600 |
| commit | 35b4a8e00d6ce1e1d02e18a2fd8c57fe8e4fbefc (patch) | |
| tree | ad2876bff7edc01c46eaa81d66eb70a77660435e /runtime/shims/d3d12_xs.cpp | |
| parent | 9e996e4c32f726ec64ec84ad89a6f3bd96ef9fa4 (diff) | |
d3d12_xs: D3D12ConfigureVirtualMemoryX returns S_OK (RT-5 first call) (#6792)
Squash-merged after diff review of PR #6792 - d3d12_xs: D3D12ConfigureVirtualMemoryX shim (first unimplemented call of the title)
Diffstat (limited to 'runtime/shims/d3d12_xs.cpp')
| -rw-r--r-- | runtime/shims/d3d12_xs.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/shims/d3d12_xs.cpp b/runtime/shims/d3d12_xs.cpp index cf3cdfaf8..8e54c3fd5 100644 --- a/runtime/shims/d3d12_xs.cpp +++ b/runtime/shims/d3d12_xs.cpp | |||
| @@ -217,6 +217,11 @@ static_assert(std::is_same_v<decltype(&serialize_root_signature), SerializeFn>); | |||
| 217 | static_assert(std::is_same_v<decltype(&create_root_signature_deserializer), DeserializerFn>); | 217 | static_assert(std::is_same_v<decltype(&create_root_signature_deserializer), DeserializerFn>); |
| 218 | static_assert(std::is_same_v<decltype(&serialize_root_signature_legacy), LegacySerializeFn>); | 218 | static_assert(std::is_same_v<decltype(&serialize_root_signature_legacy), LegacySerializeFn>); |
| 219 | 219 | ||
| 220 | // Measured call (RT-5, 1.0.2.1): the title calls it once at startup with one pointer to a zeroed 32-byte block whose | ||
| 221 | // dword at +4 it sets (a count), and only checks the result for failure. The PC/Vulkan side owns virtual memory, | ||
| 222 | // so the policy is accepted and ignored. | ||
| 223 | HRESULT WINAPI configure_virtual_memory(void* /*desc*/) { return S_OK; } | ||
| 224 | |||
| 220 | } // namespace | 225 | } // namespace |
| 221 | 226 | ||
| 222 | SHIM_TABLE(d3d12_xs, | 227 | SHIM_TABLE(d3d12_xs, |
| @@ -225,4 +230,5 @@ SHIM_TABLE(d3d12_xs, | |||
| 225 | {"d3d12_xs.dll", "D3D12CreateRootSignatureDeserializer", | 230 | {"d3d12_xs.dll", "D3D12CreateRootSignatureDeserializer", |
| 226 | reinterpret_cast<void*>(&create_root_signature_deserializer)}, | 231 | reinterpret_cast<void*>(&create_root_signature_deserializer)}, |
| 227 | {"d3d12_xs.dll", "D3D12XboxCreateDevice", reinterpret_cast<void*>(&D3D12XboxCreateDevice)}, | 232 | {"d3d12_xs.dll", "D3D12XboxCreateDevice", reinterpret_cast<void*>(&D3D12XboxCreateDevice)}, |
| 233 | {"d3d12_xs.dll", "D3D12ConfigureVirtualMemoryX", reinterpret_cast<void*>(&configure_virtual_memory)}, | ||
| 228 | ); | 234 | ); |