Skip to content

Runtime: consecutive draws share one rendering scope (D3D-324) - #3346

Open
jsthope wants to merge 5 commits into
ProjectLeonida:mainfrom
jsthope:perf/draw-rendering-scope
Open

jsthope wants to merge 5 commits into
ProjectLeonida:mainfrom
jsthope:perf/draw-rendering-scope

Conversation

@jsthope

@jsthope jsthope commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Item: D3D-324 (claimed in #2516, #2516 (comment))

emit opened a vkCmdBeginRendering/vkCmdEndRendering scope for every draw, with an attachment-to-attachment
barrier per bound attachment in front of it, so the GPU drained between every two draws. Measured below: about
3.7 µs of GPU time per draw on an RTX 3060 Ti for the scope and its barriers alone.

Changes (runtime/src/vulkan_replay.h)

  • Consecutive draws whose attachments are the same views in the same layouts, with the same render area, layer
    count and depth/stencil attachments, share one rendering scope (detail::DrawScope). The attachments move and get
    their barrier once, when the scope opens; rasterization order keeps the draws' attachment writes ordered.
  • Any command other than a draw ends the scope first, so barriers, clears, copies, queries, predication and debug
    markers still run outside one, and the scope ends before conditional rendering does.
  • Inside a scope, pipeline, descriptor set, push constants, viewport, scissor, topology, primitive restart, stencil
    references, blend constants and vertex/index buffers are only set again when they change. Every translated graphics
    pipeline declares the same dynamic states (d3d12_vulkan_device.cpp, pipeline creation), so binding another
    pipeline keeps them; the cache is dropped with the scope.
  • A new scope resets only the small DrawScope::State; pushed constants and vertex slots stay in place behind
    validity fields, and the vectors keep their storage, so a list with no shareable draws costs about the same as
    before.
  • docs/d3d12_vulkan.md: the draw replay and render-pass notes describe the shared scope.

Tests

  • replay_draw_scope_test (new, CPU, mocked Vulkan, in CTest): one scope for matching draws; new scopes for another
    render target or another depth/stencil attachment set; the scope ends before a UAV barrier, a marker and the end of
    conditional rendering; no barrier while a scope is open; state set again only when it changes and in every new
    scope; layout tracker updated.
  • Full runtime build and ctest on top of f847748c: 123/123 passed (gameinput is disabled and the skipped tests
    skip on main too). vk_command_replay_test passes on the RTX 3060 Ti (no draws in it).

Measurements

A standalone bench (not in this PR) replays real draws through prepare/emit on the GPU, built once against
f847748c's vulkan_replay.h and once against this branch: 4000 draws of ~650 px (hand-assembled SPIR-V VS/FS,
additive blending, depth test), 1920×1080 RGBA8 + D32, the pipeline changing every 50 draws and the root constants
every draw. GPU time from timestamps around the list, CPU time for prepare + emit with the driver's vkCmd*
cost; each figure is the median of three runs of the median of 20 submissions.

Scenario GPU before GPU after CPU before CPU after
A: same targets 14.9 ms 0.17 ms 16.8 ms 4.1 ms
B: UAV barrier every 20 draws 15.1 ms 0.67 ms 17.3 ms 5.3 ms
C: target alternates every draw (nothing to share) 15.1 ms 14.9 ms 17.4 ms 17.1 ms
  • Counted calls in A: 4000 scopes and 8006 barriers before, 1 scope and 8 barriers after. In C the call sequence is
    identical before and after.
  • The colour target read back after each scenario has the same hash before and after.
  • With no-op Vulkan calls (measured before the rebase onto f847748c), emit for C costs 1.41 ms before and
    1.62 ms after (about 0.05 µs a draw).

Not tested

  • The GPU draw tests (d3d12_draw_test, d3d12_m2_textured_test, d3d12_m3_frame_test, d3d12_msaa_draw_test):
    they need glslangValidator, not installed here. A run on any GPU would help, AMD and Intel especially.
  • Validation layers: not installed here, so neither the bench nor the tests ran under LEONIDA_VK_VALIDATION=1.
  • Only NVIDIA was measured. The gain in the game depends on how many consecutive draws keep their targets: barriers
    and debug markers between draws end the scope.

Windows 11, MSVC (Visual Studio 18), NVIDIA GeForce RTX 3060 Ti, driver 32.0.15.9186. No game files.

AI-assisted (Claude Code); reviewed and tested as above.

emit opened a vkCmdBeginRendering/vkCmdEndRendering scope for every draw,
with an attachment-to-attachment barrier per bound attachment in front of
it, so the GPU drained between every two draws.

Consecutive draws whose attachments are the same views in the same layouts,
with the same render area, layer count and depth/stencil attachments, now
share one scope (detail::DrawScope): the attachments move and get their
barrier once, when it opens, and rasterization order keeps the draws'
attachment writes ordered. Any command other than a draw ends the scope
first, so barriers, clears, copies, queries, predication and markers still
run outside one, and the scope ends before conditional rendering does.

Inside a scope, pipeline, descriptor set, push constants, viewport,
scissor, topology, primitive restart, stencil references, blend constants
and vertex and index buffers are only set again when they change. Every
translated graphics pipeline declares the same dynamic states, so binding
another one keeps them; the cache is dropped with the scope.

replay_draw_scope_test (CPU, mocked Vulkan) checks one scope for matching
draws, new scopes for other targets or depth/stencil attachments, the
scope ending before barriers, markers and conditional rendering, state set
again only when it changes, and the layout tracker.
DrawScope::reset assigned a fresh DrawScope, about 1.3 KB with the 32
vertex-buffer slots and the pushed constants, and freed the colour
attachment vector, for every scope that closed. When no two consecutive
draws share their attachments (one scope per draw), that cost about 0.2 us
a draw on the CPU.

The small state a scope compares and sets is now DrawScope::State and is
the only thing reset; the pushed constants and the vertex-buffer slots stay
in place and are read only where State says they are valid (push_layout,
vertex_valid). The attachment vectors, including the VkRenderingAttachmentInfo
scratch, keep their storage between scopes.

Measured on an RTX 3060 Ti (driver 32.0.15.9186) with 4000 draws whose
render target alternates every draw, emit with no-op Vulkan calls (median):
1.41 ms without the shared scope, about 2.0 ms with it before this change,
1.62 ms after. With the driver the difference is within noise (18.5 ms
without the shared scope, 17.7 ms now). Draws that share targets keep their
gain (GPU 14.6 ms -> 0.17 ms for 4000 draws).

replay_draw_scope_test also checks that vertex and index buffers are bound
again in every new scope.
@daemosofchaos

Copy link
Copy Markdown
Contributor

Independent Windows 11 build 26300 / MSVC 19.52 / NVIDIA RTX 5070 Ti, driver 621.24 check of d3f25cad, using synthetic inputs only.

Built with the Vulkan SDK's glslangValidator, LLVM 21 and SPIR-V tools. 12/12 CTests passed, with the Khronos validation layer and synchronization validation enabled for the nine GPU tests; no validation errors were reported:

  • d3d12_draw, d3d12_msaa_draw, d3d12_m2_textured, d3d12_m3_frame, d3d12_m3_first_pass, d3d12_compute, d3d12_bundle, d3d12_predicated_copy, d3d12_query_rules.
  • Mocked replay tests: replay_draw_scope, replay_query_predication, replay_query_edges.

The draw test exercises consecutive draws with pipeline, viewport and vertex-binding changes and checks image readback. M2 matched 4,096 pixels; M3 checked six frames, three targets per frame, and occlusion counts. I did not independently benchmark the speedup or test another vendor. No game files were used.

— LocalFirst-AI

@whattheflop

Copy link
Copy Markdown
Contributor

AI-assisted independent review of head d3f25cad7077fb8a8f1bedad7c302806a4237140, its direct parent f79fea399f7f04c1ce1e7ec2b465bef542bb66f7, and PR base f847748cc76bd3777f9c070c4034eb2fc1c04e64. D3D-324 is recorded for @jsthope and #3346 in the D3D12 tracker. Tracker ? Original claim

Replay correctness issue. In one scope, bind a vertex-input PSO, draw with a no-vertex-input full-screen PSO, then return to the original PSO and unchanged vertex bindings. The full-screen PSO provides vertex-input state but omits VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE. Binding it invalidates the dynamic stride. Replay keeps the cached vertex binding across that bind, so it skips the stride-setting vkCmdBindVertexBuffers2 on the final indexed draw. This conflicts with VUID-vkCmdDrawIndexed-pStrides-04913. Pipeline creation ? Replay cache ? Vulkan dynamic state ? Draw requirement

  • A scratch CPU mock of that three-draw sequence emitted one stride-setting bind on head and parent, versus two on the base. The base opens a new scope for each draw. Clearing the cached vertex-binding validity when binding an inputless PSO would let the final draw reissue the stride. The stock replay_draw_scope CTest passed on head and parent. The failing sequence was exercised only through mocked Vulkan callbacks.
  • Native Radeon positive coverage. On Windows 11 build 26200 with MSVC 19.38, AMD Radeon(TM) Graphics iGPU (1002:13c0, driver 32.0.21030.2001, 256-byte push-constant limit), the first four consecutive draws from the stock M1 d3d12_draw fixture matched 4,096/4,096 pixels on each of the three revisions. This scratch subset covered the unbound RTV/DSV pipeline variant, root-argument changes, culling, and an in-scope viewport and vertex-input change. Khronos 1.4.363 core and synchronization validation reported zero errors. The process used a single AMD ICD and an empty implicit-layer path.
  • The two submitted stock GLSL modules passed spirv-val --target-env vulkan1.3. The fragment module's physical-storage-buffer addressing was backed by enabled buffer device address, and the two modules use a 144-byte push-constant ABI. GPU coverage was limited to this headless positive subset, with synthetic inputs. The stock rejection cases, remaining passes, and M3 were outside this run.

@evilclanker9000

Copy link
Copy Markdown
Contributor

Tested d3f25ca on Windows 11, RTX 5080 (driver 616.92) and AMD Radeon iGPU gfx1036 (driver 26.10.1): ctest -R "replay_|command_list" (10 tests including the new replay_draw_scope; MSVC, RelWithDebInfo, LEONIDA_VK_DEVICE set per run, device line confirmed) plus vk_command_replay_test run directly — pass on both, 10/10 each and exit 0.

  • RTX 5080: all 10 ctest tests passed; vk_command_replay_test exit 0.
  • AMD Radeon (gfx1036): all 10 passed; vk_command_replay_test exit 0.
    Not run: the full ctest suite. Note replay_draw_scope is a CPU test with mocked Vulkan, and vk_command_replay_test has no draws per the PR, so no real-GPU draw path with shared rendering scopes was exercised here beyond what d3d12_* draw tests do (not run).

AI-assisted.

@JRamos1993

Copy link
Copy Markdown
Contributor

Tested d3f25ca on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:

  • Full ctest: 142/142.
  • replay_draw_scope: pass 20 of 20 runs, and pass under LEONIDA_VK_VALIDATION=1 with 0 validation messages.
  • Warnings: none new in the files this PR changes.

AI-assisted (Claude Code).

@bielfreedom

Copy link
Copy Markdown

Tested d3f25cad (on its base f847748c) on AMD Radeon RX 9070 XT (RDNA4), AMD driver 32.0.32029.2010 (subgroup 32..64), Windows 11 Pro build 26200, MSVC build of runtime/, with Vulkan validation on (LEONIDA_VK_VALIDATION=1, Vulkan SDK 1.4.363, VK_LOADER_LAYERS_DISABLE=~implicit~): pass.

  • Full ctest including this PR's new and changed tests: 130/130 pass, 0 failures, 0 validation errors.

AI-assisted (Claude Code). No game files.

@traeb0n

traeb0n commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Code review of d3f25ca (read only, no runs): looks correct to me. I'd written nearly the same change before I found this PR (my mistake: D3D-324 was yours first; I've released my claim on #3574), so I went through the rules closely.

What I checked:

  • Every way out of a scope: any non-draw command calls close_scope() before anything else runs for it, including emit_query, predication and markers. The scope also ends before end_conditional_rendering at the end of the list. The scope's draws never meet a barrier, a clear or a query inside it.
  • same_scope compares everything that decides whether a pipeline fits the scope: views (which carry the pipeline's formats), layouts, area, layers, colour count, and depth/stencil presence. Two draws that pass it would build an identical VkRenderingInfo, so a pipeline valid for one is valid for the other.
  • Dynamic state across pipeline binds: every graphics pipeline declares the same dynamic list (d3d12_vulkan_device.cpp, the VK_DYNAMIC_STATE_* array), so values set for one stay valid after binding the next. The descriptor set is re-bound when the layout changes. Push constants are re-pushed when the layout or stages change (push_layout/push_stages), and a binding a pipeline doesn't disturb them otherwise.
  • vertex_valid as a bitmask over 32 slots fits D3D12's 32 input slots, and slot < size guards the shift.
  • Skipped to_attachment for later draws: the first draw of the scope already moved the attachments and zero-filled them, and nothing outside a draw can run before the next draw in the same scope.

Two small things, neither blocking:

  1. The local DrawScope allocates on every list with draws. VulkanQueue::execute doesn't pass draw_scope, so each emit makes a fresh one, and colors.resize/infos.assign allocate on its first scope. D3D12 caps render targets at 8, so std::array<…, 8> plus a count would make it allocation-free. Runtime: a draw's prepared data lives beside the per-command entries (Depends on #901) #2123 adds detail::max_render_targets for the same reason.
  2. Optional: keep the dynamic state across a new scope. Command-buffer state isn't reset by vkCmdEndRendering/vkCmdBeginRendering, so viewport, scissor, topology and the bound pipeline stay valid when only the attachments change between two draws. That's the shadow-cascade or G-buffer-then-lighting pattern. Resetting is simpler and safe as it is.

On merge order: this conflicts with my #2123, which moves a draw's prepared data into detail::PreparedDraw (p.colors → d.colors, p.graphics → *d.graphics). It's a mechanical rename either way. Whichever lands second, I'm happy to do the rebase, including on this branch if you'd rather.

AI-assisted (Claude Code).

@traeb0n

traeb0n commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

One addition to my review, from reading #3167 (D3D-353, with #2676 under it). That PR binds index buffers with their view's size (vkCmdBindIndexBuffer2KHR with Prepared::index_size) on devices with robustBufferAccess2. DrawScope compares buffer, offset and type before skipping the bind. If #3167 lands first, index_size needs to join that comparison here, or two draws on the same index buffer and offset with different SizeInBytes keep the first bound size. If this lands first, #3167 needs to add it. I've left the same note there.

AI-assisted (Claude Code).

A pipeline whose input layout has no elements leaves
VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE out of its dynamic states
(d3d12_vulkan_device.cpp, pipeline creation), so binding it invalidates
the strides set before. In one scope, a draw with vertex input, then a
full-screen draw, then the first pipeline again with the same vertex
buffers skipped vkCmdBindVertexBuffers2 on the third draw, which then ran
with no stride set (VUID-vkCmdDrawIndexed-pStrides-04913). Found by
whattheflop in the review of ProjectLeonida#3346.

Binding a pipeline with no vertex slots now clears the scope's vertex
binding cache. replay_draw_scope_test checks that sequence: it fails
without the change and passes with it.
@jsthope

jsthope commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

@traeb0n thanks for the careful review, and for releasing your claim on #3574. It helps a lot to have it checked by someone who wrote the same change.

I think point 3 (every graphics pipeline declares the same dynamic states) doesn't hold, and that's the bug @whattheflop reported above. The list is the same array, but its length isn't: a pipeline with no vertex bindings drops the last entry, VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE (d3d12_vulkan_device.cpp, dynamicStateCount = size - (r.bindings.empty() ? 1 : 0)). That's on purpose: a full-screen pass that builds its vertices from SV_VertexID never calls vkCmdBindVertexBuffers2, so a dynamic stride would never be set (VUID-vkCmdDraw-pStrides-04913).

When a pipeline without a state as dynamic is bound, the dynamic value set before is invalidated (dynamic state). So within one scope: a draw with vertex input → a full-screen draw → the first pipeline again with the same vertex buffers. The cache says slot 0 is still bound and skips vkCmdBindVertexBuffers2, so the third draw runs with no stride set. The other dynamic states are in every pipeline's list, so your reasoning holds for viewport, scissor, topology, restart, stencil reference and blend constants. Only the stride is the exception.

Fixed in 73698b9: binding a pipeline with no vertex slots clears vertex_valid, so the next pipeline that reads vertex buffers binds them again. replay_draw_scope_test has a new case for that three-draw sequence. It fails on d3f25ca and passes now. Full runtime ctest: 123/123 (MSVC, Windows 11, gameinput disabled as on main; Vulkan headers fetched, no GPU run for this commit).

On the two other points:

  1. std::array<…, 8> for the scope's attachments: agreed. It's one allocation per list rather than per draw, but there's no reason to keep it. I'd rather take detail::max_render_targets from Runtime: a draw's prepared data lives beside the per-command entries (Depends on #901) #2123 than define a second constant, so it fits best in whichever rebase comes second.
  2. Keeping dynamic state across scopes: I'd leave it for a follow-up. This bug shows how easy it is to get the cache wrong across pipelines, so I'd want a GPU test with the shadow-cascade pattern before relying on it.

Merge order: fine with me either way. If #2123 lands first I'll do the PreparedDraw rename here; if this lands first, thanks for offering to take it.

AI-assisted (Claude Code).

…#2123)

ProjectLeonida#2123 moved a draw's prepared data into detail::PreparedDraw (p.colors ->
d.colors, p.graphics -> *d.graphics) and binds d.pipeline, the pipeline or
its variant for unbound slots. The scope now caches d.pipeline, so a
variant is bound when it differs. to_attachment takes a const attachment,
so the const_cast is gone.

DrawScope keeps its colour attachments and the vkCmdBeginRendering scratch
in std::array<..., max_render_targets> with a count instead of vectors
(prepare refuses more than eight), so a scope never allocates, as traeb0n
suggested in the review of ProjectLeonida#3346. Its comment no longer says every
pipeline declares the same dynamic states: the vertex strides are the
exception.
@jsthope

jsthope commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

@traeb0n #2123 landed first, so I've done the rebase onto PreparedDraw myself (merge commit 0a8e369). No need for you to take it.

  • The scope uses d.colors, d.depth, d.area, d.layers and the vertex/index fields, and const GraphicsPipeline& graphics = *d.graphics for the rest.
  • The cache now compares and binds d.pipeline rather than graphics.pipeline, so when a draw needs the variant for its unbound slots, the variant is what gets bound and cached.
  • to_attachment takes a const attachment on main, so the const_cast is gone.
  • Your first suggestion is in: DrawScope keeps its colour attachments in std::array<Attachment, detail::max_render_targets> with a count, and the VkRenderingAttachmentInfo scratch is a local std::array as on main (prepare already refuses more than eight). A scope no longer allocates.
  • The stride fix (73698b9) is kept, and the DrawScope comment now says the vertex strides are the one dynamic state not every pipeline declares.

Tested on 0a8e369: full runtime build and ctest, 134/134 passed (gameinput disabled as on main), including replay_draw_scope. Windows 11, MSVC (Visual Studio 18), Vulkan headers from -DLEONIDA_VULKAN_HEADERS_FETCH=ON, CPU only: no GPU run on this commit.

The index_size note for #3167 still applies: whichever of the two lands second adds it to the index-buffer comparison.

AI-assisted (Claude Code).

@oVolkra

oVolkra commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 0a8e369 (merged onto main aa2988c) on RTX 3060 (Ampere), driver 617.14, Windows 11, MSVC 14.44, RelWithDebInfo: pass

  • ctest: 154/154 pass, also with LEONIDA_VK_VALIDATION=1 (154/154). The PR adds one ctest test, so one more than main.
  • scripts/run_gpu_tests.py: native 164/210 (46 skipped), with LEONIDA_W64_EMULATE=1 195/210 (15 skipped). Same as main at aa2988c.
  • Eight *_test.exe programs that ctest does not register (d3d12_clear, tiny_game_exit_code, vk_bindless, vk_compute, vk_sampler, vk_store, vk_texture, vk_xdxr_build) were run by hand, with and without validation: same results as on main.
  • No game files used.

AI-assisted: this check was run and written with Claude Code (Anthropic) on my machine; the numbers above are its unedited output.

@ddm-j

ddm-j commented Nov 23, 2026

Copy link
Copy Markdown

Build break on current main: this PR merges without a textual conflict, but main 0db7fed + 0a8e369d doesn't compile (Windows runtime cross-built with clang-cl + xwin; it would fail the same way with any compiler):

runtime/test/replay_draw_scope_test.cpp(222,11): error: no member named 'render_targets' in 'leonida::Draw'

Cause: main's f506039 (D3D-391, "move a draw's views out of the command variant") moved render_targets and vertex_buffers out of Draw into a shared DrawViews block (Draw::views, a shared_ptr<const DrawViews>, runtime/src/command_list.h). This branch is based on 4c52ce2, from before that change, so the new test's make_draw still sets them on Draw.

Fix in replay_draw_scope_test.cpp:

@@ -219,9 +219,11 @@ int main() {
         Draw d{};
         d.pipeline = pso;
         d.user_data[0] = seed;
-        d.render_targets = {TargetView{target, 0, 0, 1}};
         d.depth = TargetView{depth_id, 0, 0, 1};
-        d.vertex_buffers = {VertexBufferView{0x10000, 1024, 16}};
+        DrawViews views;
+        views.render_targets = {TargetView{target, 0, 0, 1}};
+        views.vertex_buffers = {VertexBufferView{0x10000, 1024, 16}};
+        d.views = std::make_shared<const DrawViews>(views);
         d.index = IndexBufferView{0x20000, 1024, 57};
         d.topology = 4;  // triangle list
         d.viewport = {0, 0, 64, 64, 0, 1};

With it, on main 0db7fed + this PR: it builds, and replay_draw_scope passes under Wine 11.21 (Fedora 45) on an RDNA2 iGPU (RADV Mesa 26.2.6) and an RTX 4070 Ti (615.78.08). I built and ran only that test target, not the full suite, so a rebase onto main with the full build is still worth doing.

AI-assisted (Claude Code).

…d D3D-391's DrawViews

D3D-314 (e8a23c1) binds set 0 from the device's current bindless
generation, vk.bindless_set, and falls back to the pipeline's own set. The
scope now caches the set it actually bound. That set stays the same for
the whole list, so pipelines made before and after a flush (different
markers, same layout) share one bind instead of rebinding at every
pipeline change.

D3D-391 (f506039) moved a draw's render targets and vertex buffers into
the shared DrawViews block (Draw::views). replay_draw_scope_test's
make_draw fills a DrawViews, as ddm-j suggested in the review of ProjectLeonida#3346.
render_target_count keeps its default of 8, as on the old Draw.

replay_draw_scope_test case 9 covers both sources of set 0: each
pipeline's own set without a current generation, and the device's set
bound once for both pipelines with one. docs/d3d12_vulkan.md says which
set the scope compares.
@jsthope

jsthope commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

@ddm-j thanks, your DrawViews fix is in 22775ac2. That commit merges current main (561b65a8), so the PR is mergeable again.

  • D3D-391: make_draw in replay_draw_scope_test fills a DrawViews, as you suggested. render_target_count stays at its default of 8, as on the old Draw. The PR's runtime code never read the moved fields (the d.vertex_buffers the scope reads belongs to PreparedDraw), so the test was the only change needed.
  • D3D-314 (e8a23c1a), the one textual conflict: a draw now binds set 0 from the device's current bindless generation (vk.bindless_set) and falls back to the pipeline's own set. The scope now caches the set it actually bound, not graphics.bindless_set. vk does not change during an emit, so that set is the same for the whole list, and pipelines made before and after a flush (different set handles, same layout) share one bind.
  • New case 9 in replay_draw_scope_test: two pipelines with different set handles. Without a current generation, each pipeline binds its own set (two binds). With one, the device's set is bound once for both. Taking either side of the conflict as-is fails this case.
  • docs/d3d12_vulkan.md: one sentence on which set the scope compares.

Tested on an RTX 3060 Ti, driver 591.86, Windows 11, MSVC 14.41 (VS 2022), RelWithDebInfo with -DLEONIDA_D3D12_SHIM_TESTS=ON:

  • Full build: 530/530 targets, no warnings from the touched files.
  • ctest: 215/215 pass, including replay_draw_scope; 13 more are skipped or disabled on this machine.
  • tests/test_docs_*.py: 11/11 OK.

Not run: scripts/run_gpu_tests.py and LEONIDA_VK_VALIDATION=1, because this machine has no Vulkan SDK. glslang is not installed either, so the tests that need it (d3d12_draw_test, d3d12_compute_test, d3d12_set0_compute_test, d3d12_subgroup_test) were not built.

AI-assisted (Claude Code).

@devnull34 devnull34 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested at head 22775ac on Windows 11 with MSVC 19.44 (VS 2022) on AMD Radeon RX 7900 GRE:

  • Build: Built target
    eplay_draw_scope_test cleanly with 0 warnings/errors.
  • Test execution:

eplay_draw_scope_test.exe: PASS (draws share a rendering scope while their attachments match; other commands end it first).

  • CTest
    eplay_draw_scope: 5/5 passed (--repeat until-fail:5). Confirms that case 9 properly validates shared set binding across pipelines with current device generations vs distinct bindings, as well as preserving attachments matching across consecutive draws.
  • Python tests est_docs_cli_flags.py (3/3 OK) and est_text_write_line_endings.py (3/3 OK) pass cleanly.
  • Diff & formatting: git diff --check origin/main..HEAD is clean with no trailing whitespace or leftover merge conflicts.

No retail game files or keys used.

AI-assisted verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants