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>
d3d12_compute and the other tests that write a translator-style shader library under
the temp directory (d3d12_draw, d3d12_set0_compute, d3d12_msaa_draw, d3d12_fspx_compute,
d3d12_pipeline_library, d3d12_subgroup, d3d12_bundle, d3d12_typeless_families,
shader_library) used one fixed folder name. Two copies running at once (ctest -j, or two
suites in one Wine prefix or TMPDIR) shared it, and one copy's remove_all deleted the
modules the other was loading: on an Apple M3 Max under Wine with MoltenVK 1.4.3, four
copies of d3d12_compute at once failed 6 of 40 runs (PSO creation at lines 245/357, or
exit 3 from an uncaught filesystem_error in copy_file), while 125 runs one at a time all
passed.
test_temp_dir.h names the folder <temp>/<name>_<pid>, removes it on scope exit (early
returns included), and copies the compiled-in LEONIDA_TEST_*_SPV files with an error
code, so a missing file is reported by name instead of ending the test with abort().
docs/testing.md lists both symptoms.
The graphics stage infos chain structs that variants built at draw time still read. d3d12_subgroup_test builds its V# with OOB_SELECT 3. check.py and run_gpu_tests.py skip the wave64 pixel fixture where the fragment stage could not be required 64-wide (vk_harness says so). d3d12_subgroup is registered with ctest and exits 77 without a Vulkan device.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
d3d12_subgroup_test now draws ps_w64x_readlane.asm (a wave64 pixel shader with
v_readlane of lanes 40, 5, 33 and 63) over 64x64 pixels through a D3D12 graphics
PSO into a float target: every pixel must carry the derived words where the PSO
required 64 (4096 of 4096 on the Radeon 880M). Probe shaders (compute and
fragment) store gl_SubgroupSize, so the size the driver ran them with is
observed and must equal what the PSO required; a wave32 compute shader's control
run is asserted to differ on a device whose default is not 32, and the pixel
probe shows the wave32 request changing 64-wide to 32-wide on the 880M. The
wave64 pixel control is asserted to differ only where the default pixel
subgroup is not 64.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Dispatches cs_w64x_readlane translated natively and with --wave64-emulate, and
the wave32 cs_wqm_w32, through compute PSOs of the Vulkan device and compares
the words they store. The PSO's request must match the decision function; the
native wave64 shader must be exact where the device can give 64 and is only
reported where it cannot, the emulated one must be exact everywhere. A control
run with nothing requested is printed. The shaders are translated at build time
with test/shaders/build.py when llvm-mc is available.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>