Commit Graph

2833 Commits

Author SHA1 Message Date
7c7b5c73e7 Merge main into integrate-mirrors 2026-11-23 20:14:27 -05:00
f266d1735b tests: add the ds_append compute fixtures test_ds_append reads 2026-11-23 19:46:26 -05:00
bb71bb4b4c fixup: #6942 tests need fcntl/io and an explicit empty-mask refusal
(cherry picked from commit 6680cd1afce95352e428f2bf7f5772a1ab3cf936)
2026-11-23 19:43:04 -05:00
f35d19cb86 fix: SetThreadGroupAffinity answers a GROUP_AFFINITY of absent cores or groups with the thread's own affinity, served under kernel32, kernelbase and every processtopology API set (retail exe imports it; reported by dadsmallbuk1 on #6942)
(cherry picked from commit fc4de7d2272a43dcdb0cc8eed83d6821c36f117e)
(cherry picked from commit bbee83abfc1afe5b44ef9bc56c52ea517f6afa86)
2026-11-23 19:43:03 -05:00
e7f17716f1 fix(runtime): validate TiledKind and D3D12 bounds in resource_tiling
(cherry picked from commit b07c4747f16af7cebd50d9d8a93f952fde560784)
2026-11-23 19:42:49 -05:00
6dece92317 Merge TreXito's unmerged PRs: translator fixes, fuzzers, CPU emulation, xapu/chad shims
Merged from the TreXito/mangrove copy of the original repository, which carried
contributor pull requests that were never merged here.

Kept: rdna2spirv fixes (ds_append/ds_consume, v_ldexp_f16 under MODE.FP_ROUND,
thread-group SGPR, fma exact), the differential fuzzers (dot, vint, wint, vrel, cvt,
f16misc, salu, mode) with their tests, the exe/import fail-fast and int3 cause tools,
Zen 2 instruction emulation (cpu_emulation.h) and the xapu.dll/chad.dll shims.

Not taken, because they conflict with different implementations already on main:
the D3D12 Xbox-ABI layer, xmem, acphal, loader TLS, f64_diff, DirectStorage (needs the
typed-error zlib inflate), and the copy's own MANGROVE.md and README changes.
2026-11-23 19:42:33 -05:00
f9c68577e3 d3d12: slot 133 textures answer GetGPUVirtualAddress with the title address
A retail title places a 256x256 R32_FLOAT texture through Xbox device slot 133
and then clears it through the value GetGPUVirtualAddress returns, used as a CPU
pointer. The layer answers 0 for a texture, as D3D12 does, so the title wrote
256 KB at address 0. XCL measured the same clear and returns the address the
title placed the resource at (its PR #168).

A slot-133 placed texture still gets its committed fallback image, but records
the title address and reports it from GetGPUVirtualAddress. Ordinary textures
still answer 0 and buffers are unchanged. The pixels do not alias the title's
pages yet, so a write through the address is not uploaded; that is the
page-mapper work and is called out in docs/d3d12_vulkan.md.

Tests: d3d12_existing_heap_test checks that the RENDER_TARGET layout and the
COMMON retry both answer the title address; it exits 0, and gta6rt links.

AI-assisted: DeepSeek V4.1 Flash 1017 (Alibaba Token Plan); coordinated by Qwen4 Max Preview.
2026-11-24 01:29:22 +01:00
a7ffc53c15 d3d12_xs: route console slot-14 heap creation through a registered handler
3630610ca made the Xbox device proxy call
rt::d3d12::create_console_descriptor_heap directly, but d3d12_xs_device.cpp does
not include d3d12_com.h, so the tree does not compile: C3083 ('d3d12' is not
a namespace) and C2039 at d3d12_xs_device.cpp:1606. Including the header would
pull Vulkan types into xs_proxy_mock_test, which compiles the proxy standalone
and does not link the layer.

The proxy now has set_console_descriptor_heap_handler, the same shape as slot
133's placed-at-VA handler: a ConsoleDescriptorHeapHandler typedef and an atomic
in d3d12_xs_device.h/.cpp, registered by every Vulkan device in its constructor.
Heap creation moves into a Device member so the free helper only unwraps the
device and delegates. The new test gets its own reference from
create_device_proxy, reads the PC heap's CPU start through heap_proxy_real_heap()
instead of the Xbox-ABI proxy, and Ref gains operator->.

Tests: xs_proxy_mock_test and d3d12_console_descriptor_heap_test build and exit
0; gta6rt links.

AI-assisted: DeepSeek V4.1 Flash 1017 (Alibaba Token Plan); coordinated by Qwen4 Max Preview.
2026-11-24 01:29:22 +01:00
e56d97950f Merge pull request #2498 from iasmitionsalvatore/pr/footprint-base-offset
d3d12: GetCopyableFootprints aligns from BaseOffset
2026-11-23 23:47:26 +01:00
0b3caaeeb6 Merge remote-tracking branch 'origin/pr/8956'
# Conflicts:
#	runtime/CMakeLists.txt
2026-11-23 17:46:20 -05:00
1e029d6df2 Merge remote-tracking branch 'origin/pr/8959'
# Conflicts:
#	runtime/shims/d3d12_xs_rootsig.cpp
#	runtime/test/root_sig_test.cpp
2026-11-23 17:46:00 -05:00
be4a51f5d4 Merge remote-tracking branch 'origin/pr/8964'
# Conflicts:
#	runtime/shims/d3d12_vulkan_device.cpp
2026-11-23 17:43:36 -05:00
a9b505f98e Merge remote-tracking branch 'origin/pr/8991'
# Conflicts:
#	runtime/CMakeLists.txt
#	runtime/shims/d3d12_vulkan_device.cpp
2026-11-23 17:42:19 -05:00
8b63b583ae Merge remote-tracking branch 'origin/pr/8995'
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
2026-11-23 17:41:48 -05:00
abde8f1cba Merge remote-tracking branch 'origin/pr/8952' 2026-11-23 17:41:05 -05:00
bacf6f4e2a Merge remote-tracking branch 'origin/pr/8953' 2026-11-23 17:41:05 -05:00
8dbdf6380f Merge remote-tracking branch 'origin/pr/8955' 2026-11-23 17:41:04 -05:00
6691d95f9b Merge remote-tracking branch 'origin/pr/8966' 2026-11-23 17:41:02 -05:00
0fdb6c375f Merge remote-tracking branch 'origin/pr/8968' 2026-11-23 17:41:01 -05:00
b05999eb74 Merge remote-tracking branch 'origin/pr/8969' 2026-11-23 17:41:01 -05:00
f942545cf6 Merge remote-tracking branch 'origin/pr/8978' 2026-11-23 17:40:58 -05:00
120dea0054 Merge remote-tracking branch 'origin/pr/8997' 2026-11-23 17:40:54 -05:00
7734b05623 Merge remote-tracking branch 'origin/pr/9002' 2026-11-23 17:40:53 -05:00
f48adad761 Merge remote-tracking branch 'origin/pr/9523'
# Conflicts:
#	runtime/CMakeLists.txt
#	scripts/build_runtime.ps1
2026-11-23 17:38:03 -05:00
ff8ff4dd96 Merge remote-tracking branch 'origin/pr/9516'
# Conflicts:
#	scripts/build_runtime.ps1
2026-11-23 17:37:15 -05:00
c925ac7f79 Merge remote-tracking branch 'origin/pr/9494'
# Conflicts:
#	docs/design.md
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
2026-11-23 17:36:51 -05:00
671a1a8001 Merge remote-tracking branch 'origin/pr/9492' 2026-11-23 17:32:54 -05:00
bea01df57a Merge remote-tracking branch 'origin/pr/9487' 2026-11-23 17:32:50 -05:00
a60e5eab5c Merge remote-tracking branch 'origin/pr/9734'
# Conflicts:
#	runtime/test/check_d3d12_trace.py
#	tests/test_check_d3d12_trace.py
2026-11-23 17:30:48 -05:00
76a03f293f test(bcrypt_rng): exercise fail-closed STATUS_UNSUCCESSFUL path when host CSPRNG unavailable 2026-11-24 05:30:36 +07:00
21714399e8 Merge remote-tracking branch 'origin/pr/9761'
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
2026-11-23 17:30:03 -05:00
f7b3afcda9 Merge remote-tracking branch 'origin/pr/9754'
# Conflicts:
#	scripts/build_runtime.ps1
2026-11-23 17:29:12 -05:00
527fc199f8 Merge remote-tracking branch 'origin/pr/9767' 2026-11-23 17:24:53 -05:00
5f855fb695 Merge remote-tracking branch 'origin/pr/9766' 2026-11-23 17:24:53 -05:00
2f6aa6fb5b Merge remote-tracking branch 'origin/pr/9765' 2026-11-23 17:24:53 -05:00
8b878766bc Merge remote-tracking branch 'origin/pr/9762' 2026-11-23 17:24:52 -05:00
60f8eb9785 Merge remote-tracking branch 'origin/pr/9757' 2026-11-23 17:24:51 -05:00
25845b1c5a Merge remote-tracking branch 'origin/pr/9752' 2026-11-23 17:24:50 -05:00
868002b0d8 Merge remote-tracking branch 'origin/pr/9745' 2026-11-23 17:24:48 -05:00
d0707969f0 Merge remote-tracking branch 'origin/pr/9742' 2026-11-23 17:24:47 -05:00
a3e45fc751 Merge remote-tracking branch 'origin/pr/9740' 2026-11-23 17:24:46 -05:00
d5f2b24806 Merge remote-tracking branch 'origin/pr/9728' 2026-11-23 17:24:44 -05:00
8a09abe967 Merge remote-tracking branch 'origin/pr/9719' 2026-11-23 17:24:41 -05:00
368228b604 Merge remote-tracking branch 'origin/pr/9716' 2026-11-23 17:24:40 -05:00
0e707f9383 Merge remote-tracking branch 'origin/pr/9715' 2026-11-23 17:24:40 -05:00
5efd38ed8c Merge remote-tracking branch 'origin/pr/9714' 2026-11-23 17:24:39 -05:00
f6a1a114a1 Merge remote-tracking branch 'origin/pr/9706' 2026-11-23 17:24:37 -05:00
c48a663a82 d3d12/spirv_f16_halves: fix linker fast-path, Private decorations, and device location budget
Fixes four bugs in --f16-interp-fallback per-pipeline linking:
1. link_f16_halves() no longer skips patching on its fast path when static
   VS/PS half locations exceed top_location or when an unused VS static half
   collides with a raw PS input location.
2. Demoting an unused VS static half Output variable to Private now strips
   all interface-only decorations (NoPerspective, Flat, Patch, Centroid,
   Sample, Invariant, Location, Component), avoiding invalid SPIR-V.
3. keep_ps_locs now preserves raw PS input locations (ps_raw_locs) when
   picking relocation slots.
4. CreateGraphicsPipelineState now runs link_f16_halves() when only VS
   declares f16_halves and derives top_location from the physical device's
   min(maxVertexOutputComponents, maxFragmentInputComponents) instead of
   hardcoding 29.

Adds regression tests (cases 6-10) and interface-only decoration validation
in runtime/test/spirv_f16_halves_test.cpp.

AI-assisted (Antigravity).
2026-11-23 23:18:39 +01:00
0c5c0b40ad Keep the ground builder callable for collision regressions 2026-11-23 16:17:36 -06:00
2f48417d49 fix: refuse a mesh PSO whose workgroup memory is over maxMeshSharedMemorySize 2026-11-23 23:16:12 +01:00