Commit Graph

6 Commits

Author SHA1 Message Date
57c175391d Revert #2490: its console-ABI list proxy breaks run_tiny_frame (please rebase and split)
With it, d3d12_xs reads list slot 48 as the console's IASetVertexBuffers, so the PC-shaped fixture list's
ClearRenderTargetView never runs and Close fails. The branch also changes runtime/src/pe_loader.cpp and carried
committed conflict markers in docs/fssm_crosscheck.md. Its docs rows go with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:42:53 -05:00
8d6d586d22 Merge pull request #4249 from Imran AKKI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:46 -05:00
7cc353106f d3d12_xs: PC-shaped lists for PC callers, atomic queue layout, S_OK queue tail
Review findings from shdann's Windows run of the new console queue/list
work:

- d3d12_debug_markers (and every GPU harness compiled against the PC
  headers) drove lists through the console-shaped proxy, so PC slots past
  26 — including the PIX markers at 56-58, which have no console
  counterpart — reached unrelated console methods or were dropped.
  create_device_proxy gains console_lists: false hands the real
  (PC-shaped) list back from CreateCommandList. The GPU tests pass false;
  the title path keeps the console default.
- queue_proxy asserted E_NOTIMPL for the queue's console tail, but those
  slots deliberately answer S_OK now — frame pacing flows through them.
  The test's contract is updated; the fence tail stays refused.
- ChildProxy::queue_layout was a plain unsigned char read and written
  from many threads; it is atomic like the device-wide detection it
  caches.

xs_proxy_mock_test and loader_test pass under Wine; the modified test
objects compile clean under clang-cl. The GPU harnesses need a real
adapter — covered by shdann's Windows run.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-22 18:41:23 -07:00
39edabb2ea d3d12_buffer_uav: excuse only the measured Intel R11G11B10_FLOAT clamp
The layer and model() share uav_clear::encode, so "the layer matches
uav_clear.h" proved nothing and the previous loop excused any mismatch on
any adapter. Report a host quirk only for an Intel adapter (vendorID
0x8086), R11G11B10_FLOAT, host bytes equal to the clear clamped to [0, 1],
and layer bytes equal to model(); everything else is compared with the
host as before. The message names the first differing byte.

AI-assisted (Claude Code).
2026-11-22 19:33:59 -05:00
7ef3295f7a d3d12_buffer_uav: report a host typed-clear quirk when the layer matches uav_clear.h
Intel's D3D12 on Xe-LP (32.0.101.7092) writes the R11G11B10_FLOAT clear
(1.0, 2.0, 0.5) as 0x701e03c0 (G = 1.0, as if clamped to [0, 1]); the
layer, uav_clear.h and NVIDIA's D3D12 give 0x702003c0. Check each supported
case against model() too: when the host differs from it and the layer
matches it, report a host quirk and don't count the case, as
d3d12_depth24_compare.h does. A layer that differs from uav_clear.h still
fails.

AI-assisted (Claude Code).
2026-11-22 19:15:07 -05:00
f209d86b8f D3D12 layer: typed buffer UAVs and UAV counters (V# FORMAT, counter V# in the slot), d3d12_buffer_uav_test
CreateUnorderedAccessView on a buffer with a typed Format writes a typed V# (GFX10_FORMAT code, element size as
stride, element count, OOB_SELECT structured, the format's own DST_SEL), and a structured view with pCounterResource +
CounterOffsetInBytes writes a second raw 4-byte V# in the upper 16 bytes of the slot (a hypothesis for the console
contract, documented in section 3.4). The combinations D3D12 documents as invalid leave a null slot.

d3d12_buffer_uav_test runs two hand-written RDNA2 compute shaders through the translator (typed store/load/atomic on
five formats with NUM_RECORDS as the bound; append by 256 lanes and consume by 128 on a counter at offset 4096, read
back with CopyBufferRegion) against a CPU reference, then compares typed-buffer and counter clears with the host D3D12
runtime on the same adapter (LUID).

Depends on: #1791

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:33:50 +01:00