Commit Graph

4696 Commits

Author SHA1 Message Date
7f76c690e6 test: d3d12_close_parity, Close of 100 one-call lists against WARP
Records one call (or a short sequence) per case on a fresh allocator and
direct list, closes it, and holds the layer's verdict to WARP's. Today's
23 cases where the layer fails a list WARP closes, and 15 where it closes
a list WARP fails, are marked as known differences; the test checks they
are still there, so a fix that makes one match fails until its mark is
removed. Nothing is executed. A measured WARP column is the reference
when there is no WARP device (Wine).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:12:03 +00:00
1ae9cee10a dxgi: implement Adapter::EnumOutputs and IDXGIOutput6 (D3D-313)
- Upgrade dxgi_com.h to dxgi1_6.h for IDXGIOutput6 / DXGI_OUTPUT_DESC1.
- Enumerate Win32 monitors via EnumDisplayMonitors / EnumDisplaySettingsW with headless 1920x1080@60 fallback.
- Implement Output (IDXGIOutput..IDXGIOutput6) and wire Adapter::EnumOutputs and SwapChain::GetContainingOutput against host dxgi.dll behavior.
- Add D3D-313 unit and host-comparison coverage in dxgi_swapchain_test.cpp (synthetic, no game data).

AI-assisted.
2026-11-22 23:10:03 +01:00
08fc8ec748 file_system: T: keeps creating its parent folders, as merged with RT-218
main's G:/T: drives (4c52ce27) made a T: create build its parent folders and pinned
that in file_system_test. The folder-exists rule of this branch now applies to the
package view (GAME:, G:) only, so that merged behaviour stands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:07:59 +00:00
ec9a5780b6 Merge refreshed sampled indexing into storage indexing follow-up 2026-11-23 08:06:17 +10:00
3af6d905e4 Merge current main into Tier 2 conservative rasterization
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-22 18:06:08 -04:00
d7aa218648 runtime/README: device slots are partly measured; five QueryApiImpl classes
Review follow-up on #3819 (@Vonsek, @shdann), after rebasing onto main
4c52ce27:

- "the Xbox device vtable beyond slots 62, 67 and 76" is unmeasured was
  too broad: docs/d3d12_vulkan.md question 2 records device slots 14, 15,
  16, 18, 19, 27, 38, 62 and 76 confirmed by the FSR DLL's calls, with 67
  a console-only pipeline call. Say that, and point to question 2.
- main now serves XPersistentLocalStorageImpl from QueryApiImpl
  (runtime/shims/xgameruntime.cpp:491), so the list names five classes.

Written with AI assistance (Claude, via OpenBot).
Tested: python -I tests/test_docs_{design_rows,links,list_items,repo_paths}.py,
tests/test_i18n_index.py and tests/test_text_write_line_endings.py pass
(Windows 11, docs only).

Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
2026-11-22 19:06:04 -03:00
300f42965f runtime/README: say what the shims and the Vulkan device cover today
Two passages were out of date or vague.

The d3d12_xs bullet said the Vulkan device covers submission, heaps,
views, committed resources and copies. It also creates root signatures,
graphics and compute pipeline states, and records draws, dispatches and
ExecuteIndirect (shims/d3d12_vulkan_device.cpp, shims/d3d12_com.cpp).

"Current limits" listed what the missing executable blocks without saying
what exists. Now, per item, checked against the code:

- D3D12XboxCreateDevice exists (shims/d3d12_xs.cpp) and wraps the PC or the
  Vulkan device in the proxy; the params/flag layout and the Xbox vtable
  beyond slots 62, 67 and 76 are unmeasured (shims/d3d12_xs_device.h,
  docs/d3d12_vulkan.md);
- the queue and fence proxies forward the public slots and refuse the
  console's PresentX/SuspendX/ResumeX slots, which are unknown; PresentX and
  the frame events are implemented in shims/xbox_present.* and tested
  (xbox_present_test) but not reachable through those slots yet;
- xgameruntime: QueryApiImpl serves XThreadingImpl, XErrorImpl,
  XNetworkingImpl and XSystemImpl and refuses other classes with a log
  (shims/xgameruntime.cpp, xgameruntime_test).

Say that none of this was measured against the real executable.

Claimed in #3574. Written with AI assistance (Claude, via OpenBot).
Tested: python -I tests/test_docs_{design_rows,links,list_items,repo_paths}.py,
tests/test_i18n_index.py and tests/test_text_write_line_endings.py pass;
git diff --check is clean (Windows 11, docs only; no GPU involved).

Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
2026-11-22 19:05:33 -03:00
7974b89a02 Merge official main into SHADER-605 and record independent GPU results 2026-11-22 23:05:26 +01:00
f46e90310d file_system: a listing directly below a file is ERROR_DIRECTORY, as on the host
collect answered ERROR_PATH_NOT_FOUND for any folder that is not one in the title's
view. The host tells a missing folder (3) from a file in the folder's place (267);
view() already knows which. Reported in review by shdann, with the host table.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:05:06 +00:00
95f023f62b file_system: a folder has to exist in the title's view; same-name moves succeed
Three places where the shim disagreed with the host about GAME: paths:

- write_target created the parent folders before checking anything. A failed
  OPEN_EXISTING left the missing folders behind, and a create succeeded in a
  folder that was never made, below a package file (which then read as a folder)
  and inside a folder the title had removed. The parent now has to be a folder in
  the title's view, as CreateDirectory, MoveFile and CopyFile already require;
  otherwise ERROR_PATH_NOT_FOUND and nothing is created.
- FindFirstFile inside a removed package folder returned "." and "..", and inside
  a folder that never existed reported ERROR_FILE_NOT_FOUND. Both are now
  ERROR_PATH_NOT_FOUND.
- MoveFile onto the same name, or to the same name in another case, failed with
  ERROR_ALREADY_EXISTS. The first now succeeds and changes nothing; the second
  renames the overlay entry (a package file gets an overlay copy under the new
  spelling; a package folder is refused like any other move of one).

Two existing checks encoded the old answers and are changed: the test that made
GAME:\save\slot1.bin without making GAME:\save first, and the one that expected
ERROR_FILE_NOT_FOUND for a listing inside a missing folder.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:05:06 +00:00
73bee00a64 Merge upstream/main into rt-shader-real-bvh
Keep both heap loaders: main's VKC_HEAP_INIT (VA 0) and this branch's VKC_HEAP_FILE (offset, auto-sized).
2026-11-22 19:04:22 -03:00
cbdbafa941 spirv_stores: input attachments are read-only; NonWritable through a decoration group counts
An OpTypeImage with Sampled 2 and Dim SubpassData is a subpassInput, not a
storage image, so a pixel shader reading an input attachment no longer
needs fragmentStoresAndAtomics. NonWritable applied through
OpDecorationGroup / OpGroupDecorate / OpGroupMemberDecorate is resolved like
a direct decoration. spirv_stores_test covers both. Found in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:04:06 +00:00
07032412c8 spirv_stores: bound the walk through array types; the GPU test honours LEONIDA_VK_VALIDATION=0
A malformed module whose array type names itself made the element walk spin
inside CreateGraphicsPipelineState; it now stops after 16 levels, with a case in
spirv_stores_test. d3d12_stores_atomics_test turns the validation layer on for
itself only when the variable is unset. The docs say how the 1,018 of 1,038
figure is counted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:04:06 +00:00
a36506022f d3d12: the runtime's own Vulkan device enables fragmentStoresAndAtomics; a PSO that needs it elsewhere is refused
create_vulkan_device_standalone never enabled fragmentStoresAndAtomics or
vertexPipelineStoresAndAtomics, so a pixel shader with a writable storage
image (an image atomic: 1,018 corpus pixel shaders) broke
VUID-RuntimeSpirv-NonWritable-06340 while CreateGraphicsPipelineState
answered S_OK.

The device enables both where the GPU has them. A graphics PSO whose stage
declares writable storage (src/spirv_stores.h reads the declarations) on a
device without the feature is refused with E_NOTIMPL and a log line.

spirv_stores_test checks the rule on hand-built SPIR-V; d3d12_stores_atomics_test
checks the refusal and the standalone device under the validation layer.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:04:06 +00:00
8fe1256fd9 Merge pull request #3819 from iurysf
# Conflicts:
#	runtime/README.md
2026-11-22 17:04:03 -05:00
79b865b8b1 Merge pull request #3799 from cixotdev 2026-11-22 17:03:52 -05:00
0a9b3ff37f Merge pull request #3797 from JustDown 2026-11-22 17:03:51 -05:00
5816b2404d Merge pull request #3786 from DanielDeGiorgio 2026-11-22 17:03:47 -05:00
b639243833 Merge pull request #3776 from undeadhuman37
# Conflicts:
#	docs/d3d12_vulkan.md
2026-11-22 17:03:43 -05:00
93e543d18e Merge pull request #3774 from MeNoSkills 2026-11-22 17:03:42 -05:00
59aa22ff0c gameinput: drive a constant force from gameinput_probe (RT-160)
`--force-feedback` creates a constant effect at magnitude 1.0 on motor 0 and
holds it for a second, so the wheel owner the RT-160 finding asks for can feel
the magnitude and the axis instead of only reading `forcefeedback=`; a pad with
no force-feedback motor is skipped with the reason printed. Docs and the probe
comment name the flag.

AI-assisted
2026-11-22 23:03:41 +01:00
c6fe50f76d Merge pull request #3717 from Oguzhan Ozdemir 2026-11-22 17:03:32 -05:00
aec744e39d Tests: account for KosmicKrisp NaN readback (TEST-783) 2026-11-23 01:03:29 +03:00
2ce8378268 Merge pull request #3693 from Ayinaki 2026-11-22 17:03:26 -05:00
221b8922d6 Merge pull request #3686 from kotorvr 2026-11-22 17:03:25 -05:00
793e35af55 Merge pull request #3685 from ICUMADETHIS 2026-11-22 17:03:25 -05:00
dcdc1100f3 Merge pull request #3682 from shdann 2026-11-22 17:03:24 -05:00
833a541005 Merge pull request #3680 from Sc4ros 2026-11-22 17:03:23 -05:00
8bbb3ba6ce Merge pull request #3667 from kotorvr 2026-11-22 17:03:18 -05:00
85cc694efb Merge pull request #3655 from Claude 2026-11-22 17:03:13 -05:00
fe5b522fa9 Merge pull request #3653 from Claude 2026-11-22 17:03:12 -05:00
1f96ec3c5f Merge pull request #3652 from pmilewsskiedu-gif 2026-11-22 17:03:12 -05:00
39c6b725d5 Merge pull request #3643 from iurysf 2026-11-22 17:03:10 -05:00
86be100f3a gta6rt: offline WinHttpSendRequest with context 0 keeps the option's context
WinHttpSendRequest assigned its dwContext to the request unconditionally, so a client that set the context with
WINHTTP_OPTION_CONTEXT_VALUE and sent with 0 got 0 back from WinHttpQueryOption and in its REQUEST_ERROR and
HANDLE_CLOSING callbacks. The host's winhttp.dll (Windows 11, asynchronous session, loopback) keeps the option's
value in all three. A nonzero dwContext still replaces it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:03:06 +00:00
edbaf7c585 Merge pull request #3602 from kotorvr 2026-11-22 17:02:56 -05:00
50d4f46fcf Merge pull request #3597 from Kam471
# Conflicts:
#	docs/d3d12_vulkan.md
2026-11-22 17:02:56 -05:00
718f105097 Merge pull request #3594 from admin 2026-11-22 17:02:54 -05:00
27be996d4f Merge pull request #3578 from Emma 2026-11-22 17:02:48 -05:00
c45e650eab Merge pull request #3576 from Felix Croasdale 2026-11-22 17:02:48 -05:00
f56396ce21 Merge upstream pipeline checker updates 2026-11-22 23:02:46 +01:00
528cd40a5f Merge pull request #3567 from controldebils 2026-11-22 17:02:45 -05:00
4affe0d629 Merge pull request #3562 from FIocker
# Conflicts:
#	docs/embedded_shaders.md
2026-11-22 17:02:43 -05:00
1dbc0a2674 Merge pull request #3557 from stocksock 2026-11-22 17:02:41 -05:00
865e6e9201 Merge pull request #3551 from pmilewsskiedu-gif 2026-11-22 17:02:39 -05:00
d3f4bb0b56 Merge pull request #3547 from FIocker 2026-11-22 17:02:38 -05:00
be7e72ce8d Merge pull request #3542 from itsRevela 2026-11-22 17:02:36 -05:00
b816cec7f7 Merge pull request #3538 from kotorvr 2026-11-22 17:02:36 -05:00
78183db304 Merge pull request #3531 from Ewann 2026-11-22 17:02:34 -05:00
ba8652685f Merge pull request #3530 from Joao vitor alves
# Conflicts:
#	docs/README.md
2026-11-22 17:02:33 -05:00
438ac7c82b Merge pull request #3522 from Felix Croasdale 2026-11-22 17:02:29 -05:00