Repository navigation
Conversation
…ameters Every translated shader declares Int64 (64-bit addresses) and lists shaderInt64 in its index metadata, but neither the standalone device nor the test device enabled it: vkCreateShaderModule was a validation error and the first translated draw lost the queue. The test device also enables shaderDrawParameters, which the translator's zero-based VS ids (PR 436) will need. Two names in the test device no longer shadow each other after the merge with main. The standalone-device change is PR 291's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vs_m15.asm and ps_m15.asm are hand-written RDNA2 (gfx1013), built by test/shaders/build.py through llvm-mc and tools/rdna2spirv.py. build.py now also writes the synthetic FSSM program a shader's header asks for (fssm-at, fssm-data) to fssm/, so the translator records its fssm_sha256 in index.json. d3d12_translated_draw_test creates a graphics PSO from containers carrying those programs; the layer finds both stages by hash in the translator's own index. It covers a descriptor-table root argument and root constants (s0..s5), vertex fetch through a V# the application wrote into a descriptor slot (s_load, then buffer_load_dwordx4 idxen), the PS reading constants through the code base (s_getpc_b64), and compares a float render target bit for bit. All draws use StartVertexLocation 0, so the result is the same with and without PR 436's zero-based ids; verified both ways. docs/d3d12_vulkan.md records the milestone and the measurement that a V# cannot point at an upload buffer (48-bit base, negative console VA). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… log a missing shaderInt64 PR 436's translated vertex shaders read BaseVertex/BaseInstance, so the production device must enable shaderDrawParameters before 436 lands (same lines as 436, so they merge). A GPU without shaderInt64 cannot load any translated shader (all declare Int64): say so once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ter edge assert, softer 436 and V# docs make_vsharp used OOB_SELECT raw with stride 32, which on hardware checks the byte offset against num_records; the test only passed because the translator ignores OOB_SELECT. It now encodes a gfx10::Buffer with OobSelect::structured. The 32 diagonal pixels must be the clear colour (a right edge under the top-left rule). Docs: 436 is not in the tree (identical result with its translator change applied); the V# failure follows from the upload buffer lying below the arena, which is allocation order, so the rule stays: anything behind a V# is an arena range. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # runtime/CMakeLists.txt # runtime/shims/d3d12_com.h # runtime/shims/d3d12_vulkan_device.cpp
…s in vulkan_replay.h, C4459) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Tested 69b1d11 on Windows 11 with two GPUs on one machine (MSVC 14.51, llvm-mc 23.1.6 with AMDGPU, spirv-tools from conda-forge): M1.5 draws correctly on both
Two notes:
|
Windows + RTX 4070 SUPER (Ada) test of
|
|
Tested
One small build note: No game files used. AI-assisted. |
|
Two small things I hit testing #699's head (b6dfa23) that look like they're still in this PR at 69b1d11. I've only re-checked the code here, not re-run it.
Otherwise the draw itself matched the other runs on RDNA4: RX 9070 XT, driver 32.0.32015.16001, Ninja build, validation on. That gave 4064/4096 exact, the 32 edge pixels at clear colour, 0 validation errors, and ctest 28/28. (AI-assisted run on this machine.) |
|
Verified PS selection between two valid hashes in the same library on
This extends the existing unknown-VS test through actual stage-specific PS selection and repeated binds. All inputs were source-built; no production files changed. AI-assisted. |
Conflicts (both sides kept): runtime/CMakeLists.txt (stub list), d3d12_com.h, d3d12_vulkan_device.cpp (arena buffers with main's ray-tracing buffers and deferred destruction, calibrated timestamps, instance extensions, sampler registration next to the window presenter), command_list.h, vulkan_backend.h, vulkan_replay.h, vk_test_device.h, d3d12_state_map_test.cpp, docs and README. vulkan_present.h takes main's resource and tracker locks. CI (linux-gpu-tests): ps_m15 and vs_m15 belong to d3d12_translated_draw_test. run_gpu_tests.py still assembles and translates them but reports them as skipped (OTHER_HARNESS) instead of "no checker defined". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main moved (c0ac5fd): vulkan_replay.h takes main's checked buffer copies (predicated copies, overlap and overflow refusals). README's Xbox row is rebuilt from both sides (the previous merge commit had committed a zero-filled README.md; this restores it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ItsNotRexed#119 is in main now, so the presenter files come from main (vulkan_present.h, the present tests and their ctest registration). Conflicts (both sides kept): runtime/CMakeLists.txt, d3d12_com.h, d3d12_vulkan_device.cpp (rgb96_ next to the PR's graphics code), docs and README. This PR's tests d3d12_compute_test, d3d12_draw_test and d3d12_translated_draw_test were built but never run by ctest (tests/test_ctest_registration.py). They are registered now, and exit 77 (skipped) when there is no Vulkan 1.3 device, like d3d12_present_test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ameters Every translated shader declares Int64 (64-bit addresses) and lists shaderInt64 in its index metadata, but neither the standalone device nor the test device enabled it: vkCreateShaderModule was a validation error and the first translated draw lost the queue. The test device also enables shaderDrawParameters, which the translator's zero-based VS ids (PR 436) will need. Two names in the test device no longer shadow each other after the merge with main. The standalone-device change is PR 291's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vs_m15.asm and ps_m15.asm are hand-written RDNA2 (gfx1013), built by test/shaders/build.py through llvm-mc and tools/rdna2spirv.py. build.py now also writes the synthetic FSSM program a shader's header asks for (fssm-at, fssm-data) to fssm/, so the translator records its fssm_sha256 in index.json. d3d12_translated_draw_test creates a graphics PSO from containers carrying those programs; the layer finds both stages by hash in the translator's own index. It covers a descriptor-table root argument and root constants (s0..s5), vertex fetch through a V# the application wrote into a descriptor slot (s_load, then buffer_load_dwordx4 idxen), the PS reading constants through the code base (s_getpc_b64), and compares a float render target bit for bit. All draws use StartVertexLocation 0, so the result is the same with and without PR 436's zero-based ids; verified both ways. docs/d3d12_vulkan.md records the milestone and the measurement that a V# cannot point at an upload buffer (48-bit base, negative console VA). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… log a missing shaderInt64 PR 436's translated vertex shaders read BaseVertex/BaseInstance, so the production device must enable shaderDrawParameters before 436 lands (same lines as 436, so they merge). A GPU without shaderInt64 cannot load any translated shader (all declare Int64): say so once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ter edge assert, softer 436 and V# docs make_vsharp used OOB_SELECT raw with stride 32, which on hardware checks the byte offset against num_records; the test only passed because the translator ignores OOB_SELECT. It now encodes a gfx10::Buffer with OobSelect::structured. The 32 diagonal pixels must be the clear colour (a right edge under the top-left rule). Docs: 436 is not in the tree (identical result with its translator change applied); the V# failure follows from the upload buffer lying below the arena, which is allocation order, so the rule stays: anything behind a V# is an arena range. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s in vulkan_replay.h, C4459) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… d3d12_translated_draw with ctest ps_m15 and vs_m15 are still assembled and translated by run_gpu_tests.py but reported as skipped (OTHER_HARNESS) instead of 'no checker defined'. d3d12_translated_draw_test is registered with ctest. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ItsNotRexed#291 landed in main, so this branch is rebuilt on main with only the M1.5 changes; this commit keeps the push a fast-forward. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Retested at the new head
Still open:
No game files used. AI-assisted. |
|
AI-assisted Windows x64 retest of
Windows 11 25H2, MSVC 19.38.33145 x64, uv Python 3.12.13, Vulkan SDK 1.4.363.0 (SPIRV-Tools 2026.4), and WSL LLVM 21.1.8 for AMDGPU assembly. Only the M1.5 target and its dependencies were built. The tracked worktree is clean. |
"PATH=<spirv-tools>;$ENV{PATH}" was split at its semicolons into separate cmake -E env
arguments in the generated .vcxproj, so the custom build stopped with MSB8066; Ninja kept it
whole. The separators are escaped with $<SEMICOLON> on Windows (':' elsewhere). Built
d3d12_translated_draw_test with -G "Visual Studio 17 2022" and with Ninja; both pass on a
Radeon 880M and an RTX 5070. Reported by @whattheflop in ItsNotRexed#907.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…io generator
The M1.5/M2/M3 custom commands passed "PATH=<spirv-tools>;$ENV{PATH}" through cmake -E env.
The Visual Studio generator splits it at the semicolons, and a PATH entry ending in a
backslash escapes the next quote on the generated command line, so the step stops with
"no such file or directory" and MSB8066; Ninja happened to keep it whole. The commands now
set only LEONIDA_SPIRV_TOOLS, and runtime/test/shaders/build.py puts that folder in front of
PATH itself. Reported by @whattheflop in #907.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ulkan_replay.h) The test's global `constexpr UINT extent = 64` is hidden by a local `extent` in runtime/src/vulkan_replay.h, so every MSVC build of the runtime prints `warning C4459: declaration of 'extent' hides global declaration`. It came in with #907, whose earlier fix renamed the global `size` to `extent` for the same reason. The global is now `target_extent`, a name nothing under runtime/ uses; the test is otherwise unchanged. Tested on Windows 11 Pro 25H2, MSVC 14.51 + Ninja (scripts/build_runtime.ps1), RTX 5070 Ti / 621.24: the build has no C4459 (main's 49x C4456 in vulkan_replay.h remain; #1743 handles them). d3d12_translated_draw_test passes with validation off and on: three draws, 4064/4096 exact, 32 edge pixels, 0 VUIDs. Full ctest with validation: 106/107; the one failure is d3d12_draw's bundle-blend check, which fails on main too (#1793). No game files. AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces draft #699. #291 has landed in main, so this branch is rebuilt on main and carries only the M1.5 changes (translated draw test,
build.pyFSSM output, test-deviceshaderDrawParameters).