Repository navigation
GPU: expand indirect rectangle-list draws on the GPU - #346
BastienRodz wants to merge 7 commits into
Conversation
Native RDNA2 validation and scratch alignment fixTested this PR on physical AMD RX 6700 XT hardware using native Windows D3D12. I found an issue in I implemented a local correction that calculates the actual alignment padding while preserving the production 8 MiB scratch limit. The same synthetic rendering fixture was tested before and after the correction:
The corrected ExecuteIndirect output produced an RGBA8 image identical by SHA-256 to the CPU-expanded reference. Validation:
Four additional comparisons were internally skipped because the console compiler was unavailable. The D3D12 debug layer was also unavailable. Indexed rectangles and SV_VertexID remapping remain outside the scope of this correction. The fix and regression test are available in my local commit b34ae5c. I can share the patch if you would like to incorporate it into this PR. No commercial game data was used. AI use: OpenAI Codex assisted with implementation, testing and analysis on physical hardware. |
…st case scratch_layout took 16 bytes of alignment slack per extra slot off the capacity before counting vertices, so a layout that fits exactly (two slots of 8 and 12 bytes in 120, no padding needed) was refused, and in 8 MiB a few rectangles of room were lost. It now starts from the unpadded vertex count and steps down a rectangle at a time until the padded regions fit. Reported by DarX-Oren on Marvisak#346. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for running it on a real RX 6700 XT, and for the exact-fit case. You're right: Fixed in cee702e. It now starts from the unpadded vertex count and steps down one rectangle at a time until the padded regions fit. I wrote it myself rather than taking your patch, to keep the history in one piece.
Before the fix both return Re-run (cross-built, Wine + vkd3d-proton 3.1 on lavapipe): If you can, a rerun of your pixel fixture on this head would be welcome, and so would a world run on a No game data used. AI-assisted (Claude Code). |
|
Native D3D12 results for The additional fixture copies synthetic vertices into a vertex buffer on the same command list, then records the PR's expansion and barriers followed by an actual The fixture uses a small test graphics pipeline and synthetic inputs throughout. Game rendering, the caller's pipeline routing, and count-buffer behavior are outside its coverage. |
|
First test of this PR against the retail title (the PR is synthetic-only today), on the GPU where the dropped rect draws matter most. Setup: RTX 3080 Ti 12 GB, driver 610.60 ( Result — the counter says the fix is live:
Two observations that may be useful:
I did not reach the world in these runs (menu input is scripted here), so I cannot yet say what the expand passes do to world content — happy to run it again with whatever key/timing recipe you want, or to try a patch build that logs per-draw counts. AI-assisted (Claude Code CLI via a model proxy; logs and offsets only, no game data). |
|
Thanks for running it against the title. A caveat on the counter: per #255 the rectangle drops are in world frames, and the menus and intro may issue no indirect rectangle draws at all. So On the 9.4 fps dip: this path has no readback. Everything it adds runs on the GPU. The CPU side only zeroes a 4 KiB counter chunk at submission and copies the element table (a few bytes) into upload memory, once per indirect rectangle draw. With the GPU at 2.3 ms the time went elsewhere on the CPU, and the expand passes can only have run if indirect rectangle draws were issued, which brings us back to the point above. Running What would settle the PR is a world run,
For scripted input, AI-assisted (Claude Code). |
|
Quick control result so nobody attributes this to the change: on the same machine/package main (
The site is a buffer-capacity check: So it is a request for more than a buffer's remaining capacity — streaming/upload sizing, not rect drawing. I don't have a world run to compare yet because this gate stops the title on our box before the world loads (both builds). If that assert is on your side too, the main-vs-head comparison you asked for needs it out of the way first; if it is not, tell me what differs in your environment and I will re-run. For completeness, the machine: RTX 3080 Ti 12 GB, driver 610.60, Windows 11 Pro 26300, i7-12700KF, complete 1.0.2.1 package (111/111 SHA-256 verified). AI-assisted (Claude Code CLI via a model proxy; logs and offsets only, no game data). |
|
Thanks for the control run. That settles it: the assert at Two things for the next comparison:
AI-assisted (Claude Code). |
|
Game confirmation on the original #348 machine (as requested on #282): the rectangle draws run and the loading screen renders – but world entry still hangs the GPU, for a separate reason (wave64 compute refusals, #71). Setup: Windows 10 21H2 19044.7846, RTX 3080 10 GB (driver 32.0.15.9649), Ryzen 9 7900X, 32 GB RAM. This PR's head
The hang is not this PR's: 100 compute pipelines are refused on this NVIDIA card ( One integration note for when this and #334 both land: they conflict in Logs kept locally ( AI use: Qwen Code (underlying model name not disclosed by the tool) built the merged stack, ran the title, extracted the counts and drafted this comment at the user's request; the user confirmed the visible loading screen. |
|
Thank you, that's the confirmation this PR needed: the loading screen renders, and every draw and dispatch up to world entry runs. I've added it to the description. Agreed that the hang after the title card is the wave64 refusals (#71), not this change. On #334: thanks for working out the merge. Whichever of the two lands second should take your resolution:
If #334 merges first, I'll rebase this on it that way. AI-assisted (Claude Code). |
|
Reviewed Rebasing onto #242. The rewrite and expand passes read the title's own argument records after Half floats. Questions:
The GPU test drives both shaders with hand-written constants and does not go through Not covered: the title (no game data here). |
The rewrite pass read the title's records after the clamp and relied on the clamp having written its bounds back in place. It now applies the same bounds itself (2^24 vertices, 2^26 vertex instances), so a clamp that writes elsewhere (Marvisak#242) cannot bring back unbounded counts. f32_to_half in the expand shader or-ed the rounded mantissa into the exponent, losing a rounding carry when the exponent is odd (1.99995 became 1.0); it now adds it, as Marvisak#260 does for primitive.rs. The module notes also say that, with vertex inputs, the vertex id is the expanded one, from an allocated start whose order between records may change from run to run. Reported by marquezinii on Marvisak#346. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the careful review and the unaligned-stride run. Changes in
On the questions:
Re-run on AI-assisted (Claude Code). |
|
I ran a synthetic check through
This covers the rectangle path from I also verified the direct rectangle path's normal FP16 midpoint rounding with a separate synthetic input. At The indirect HLSL helper at |
|
Thanks, |
Conflicts: indirect.rs (our clamp is built by our own emitter: kept its register constants in #346's clamp_uav/bound split), host.rs (our staging arena and #346's rectangle scratch, both kept; #346's default_buffer was already ours). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y stage Conflicts: draw.rs (indirect rectangles: pipelines with our geometry stage run with the title's records; the others take #346's GPU expansion), pipeline/host.rs (our blend tests and #1020's stage, both kept). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Closing: |
…) onto Marvisak#334 + integ/next Taken instead of Marvisak#282 (same draws, Marvisak#255; only one can land): Marvisak#346 expands on the GPU after the clamp, so vertex data the GPU wrote earlier in the submission is seen, and its record grouping starts at each record's first vertex. It has the stronger title evidence: the loading screen renders (justlovett0, RTX 3080), the `prepare failed`/topology-17 drops go from 256 per frame to 0 with no device removal (neonbyte1, RTX 5090/Wine; Exorion1er, RX 9070 XT/Proton; iurysf, RTX 4070), and every defect reported on it was fixed by a later commit (scratch layout cee702e, record bounds 0aebe86, count buffer 7ff1184, Wine compiler c256f83). Marvisak#282 expands on the CPU (does not see GPU-written vertices, copies bound buffers whole, three times per draw after 4d3d003) and its last head was only checked in short runs. Conflicts: 1. crates/victory-gpu/src/indirect.rs, module doc: the stack's (Wine-safe clamp in structured buffers, root signature made beside it) kept, with Marvisak#346's sentence on the rectangle expansion added. 2. indirect.rs, `bound`: Marvisak#346 splits it into `clamp_uav` (clamp + UAV barrier) and `bound` (then a fixed UAV -> INDIRECT_ARGUMENT transition); Marvisak#334 (merged just before) replaced the fixed transitions with its buffer states (`bound` asks for BUFFER_WRITE, `execute` for BUFFER_READ). Kept Marvisak#346's split with Marvisak#334's tracking, the resolution justlovett0 and the author agreed on (Marvisak#346 comments 7121242441, 7121274527): `clamp_uav` takes the buffer, starts a command and asks for BUFFER_WRITE; `bound` is `clamp_uav` (the read state comes from `execute`), no fixed transition. 3. crates/victory-gpu/src/host.rs: the stack's `PooledUpload` and Marvisak#346's `RectScratch` added at the same place; both kept. Non-textual fixes: - rectangles.rs calls `clamp_uav(list, &args.buffer, ..)` (new parameter). - rectangles.rs: the rewrite and expand passes bind the count's and the vertex buffers' host copies as root UAVs. With Marvisak#334 those copies' states are tracked, so they now ask for BUFFER_WRITE in the clamp's command (otherwise a copy a draw had moved to GENERIC_READ would be bound as a UAV in a read state). The draw's own `prepare` then asks for the read state as before. The list-owned scratch keeps Marvisak#346's own barriers. - primitive.rs: Marvisak#346's half-float rounding commit (8c7ac43) is already here through Marvisak#1220 (in Marvisak#1418), so `half_midpoints_round_to_even` is not added twice: the PR adds 8 tests, 7 are new here.
…y unchanged pages current) onto Marvisak#346 + Marvisak#334 + integ/next Taken instead of Marvisak#693 (shadow buffers in DEFAULT VRAM with staging readback): both rewrite how shaders' writes reach title memory, on incompatible models (Marvisak#1024 stores from the CPU-mapped host copy; Marvisak#693 has no CPU mapping and merges from readback snapshots), so only one can land. Marvisak#693 has unfixed in-title regressions on its last head's predecessor and no title run since: about 2x slower frames and 5-7x GPU time on an RX 6700 XT (Marvisak#693 (comment)), GPU page faults inside freed `shadow readback/upload staging` on RX 6950 XT and RX 6700 XT (Marvisak#693 (comment)), and a changes-requested review (mercuryVM). Its last commit (1c94839) fixes the review's failure paths but not the performance loss, and was not run in the title. Marvisak#1024 has no negative report; its tests pass on RTX 4090/Wine, RTX 5070 Ti, RX 7700 XT, RTX 5090/Wine, and a title run with it (and Marvisak#472, Marvisak#322) had shorter frames and less copy-back time (AgneyaK). Conflicts, crates/victory-gpu/src/shadow.rs: 1. `Shadow::copy_back`: the stack (Marvisak#124, TG0000) skips pages already found unchanged against this submission's snapshot (`UnchangedPages`) and allocates the title buffer lazily, by PAGE; Marvisak#1024 writes back only the runs of bytes the GPU changed (`write_runs`) and marks a synced page current only if title memory still equals the copy after the final write-watch query. Independent: both kept. The loop keeps the stack's `unchanged.differs` guard and lazy buffer, with Marvisak#1024's run collection and `write_runs` inside; the final check takes the (by then allocated) lazy buffer for its page re-reads. 2. Tests: the stack's `mod tests` and Marvisak#1024's `mod copy_back_tests` at the same place. The shared text holds the closing `);`, `}` and `}`, so the stack's module is closed in the hunk and Marvisak#1024's module follows as its own `#[cfg(test)]` item (not nested). No other non-textual fix needed (cargo check --all-targets --all-features).
…us) onto Marvisak#1024 + Marvisak#346 + Marvisak#334 + integ/next One conflict, crates/victory-gpu/src/host.rs tests: the stack adds `adapter_filter_parses_index_and_name` and the capability tests, Marvisak#211 adds `present_compositor_builds_both_pipeline_states`, at the same place. The shared text holds the `#[test]` before and the closing brace after, so the stack's last test is closed in the hunk and Marvisak#211's follows as its own test (not nested). `Host::present` (single plane fast path, compositor for 2+) and `queue::present` merged without conflict; the stack does not change either. No non-textual fix needed (cargo check --all-targets --all-features). No negative report on Marvisak#211: the Series S menus render on RTX 2070 SUPER, RTX 4070 SUPER, RTX 3060 Laptop, RTX 4080, RX 7600 and WARP, and the device removals seen later in the world also happen in Series X mode without it.
…6B16A16_FLOAT) onto Marvisak#211 + Marvisak#1024 + Marvisak#346 + Marvisak#334 + integ/next Conflicts, both in tests: 1. crates/victory-gpu/src/descriptor/host.rs: the stack's tests (`raw_views_start_on_16_bytes` and the raw/structured view tests after it, from Marvisak#1426/Marvisak#704) and Marvisak#492's four `rgb9e5_srv_*` tests at the same place; git interleaved them over shared lines (a resource description's `SampleDesc`, a closing brace), so the two hunks are not separable texts. Resolved by keeping the stack's tests exactly as they were and adding Marvisak#492's four tests whole, as Marvisak#492 has them, before `dynamic_slots_are_held_until_released` (where Marvisak#492 put them). The resulting diff of the file against the previous head equals Marvisak#492's own (+235/-5 against main). 2. crates/victory-gpu/src/resource.rs: the stack's `get_desc_reports_the_allocated_mip_chain` and Marvisak#492's `r9g9b9e5_target_format_substitutes_rgba16f` / `r9g9b9e5_render_target_and_uav_textures_create_on_host` at the end of the module. The shared text holds the `#[test]` before and the closing braces after: the stack's test is closed in the hunk and Marvisak#492's follow as separate tests (not nested). The non-test changes (`target_format`, `fits` taking a resource description, `fits_texture_srv`, RTV and pipeline formats) merged without conflict. `fits` has no other caller in the stack. Uploads from title memory still skip render-target/UAV textures (`texture::title_written`), so no 4-byte RGB9E5 rows are detiled into a substituted 8-byte texture. Known open point from the review, not fixed by Marvisak#492: a copy between a substituted target and a sampled-only RGB9E5 texture would mismatch formats on the host; no report shows the title doing that. No non-textual fix needed (cargo check --all-targets --all-features).
…sak#98, Marvisak#334 to Marvisak#492, validation) The line rebuilt on the bundles' current heads (Marvisak#1402 119b763, Marvisak#1492 5bbc098 without Marvisak#98, Marvisak#1504 1d41891, Marvisak#1511 ca601f0) with every merge replayed, and the merges after this file's first version (Marvisak#334, Marvisak#346, Marvisak#1024, Marvisak#211, Marvisak#492): merge order, the runner's numbers on 967d3ae (RTX 571, WARP 570 + the known Marvisak#1084 failure, all features 580; Marvisak#98's one test leaves), what is not included (Marvisak#98, Marvisak#282 for Marvisak#346, Marvisak#693 for Marvisak#1024, Marvisak#306's latest commit), and the open pull requests whose head is contained here (109, from the 18:24 collection). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…st case scratch_layout took 16 bytes of alignment slack per extra slot off the capacity before counting vertices, so a layout that fits exactly (two slots of 8 and 12 bytes in 120, no padding needed) was refused, and in 8 MiB a few rectangles of room were lost. It now starts from the unpadded vertex count and steps down a rectangle at a time until the padded regions fit. Reported by DarX-Oren on Marvisak#346.
The rewrite pass read the title's records after the clamp and relied on the clamp having written its bounds back in place. It now applies the same bounds itself (2^24 vertices, 2^26 vertex instances), so a clamp that writes elsewhere (Marvisak#242) cannot bring back unbounded counts. f32_to_half in the expand shader or-ed the rounded mantissa into the exponent, losing a rounding carry when the exponent is odd (1.99995 became 1.0); it now adds it, as Marvisak#260 does for primitive.rs. The module notes also say that, with vertex inputs, the vertex id is the expanded one, from an allocated start whose order between records may change from run to run. Reported by marquezinii on Marvisak#346.
… of title memory by address Ideas from a review by Claude Fable, after fork PR Marvisak#346. All off unless set. - Touch marks (shader, always on): the fault note's store of an access through a copy now goes to that copy's dword at MEMORY_TOUCHED instead of the sink, so it costs no store of its own. The faults buffer grows to MEMORY_NOTES dwords (notes, marks, touches). The card test checks it. - VICTORY_MEMORY_REFRESH=touched: a list's first dispatch refreshes only the copies touched lately, the named, the new and those about to be declared written, and every copy at least once in 8 frames (shortcut: an untouched copy may read bytes up to 8 frames old at its next first touch). - VICTORY_MEMORY_NAMED_WRITES=0: a copy named only by a dispatch (a root view or a constant that looks like an address) and never marked by a store stops being declared written after 3 frames. - VICTORY_REFRESH_STAMP=1: a refresh of a range the journal answered alone is skipped under the same asking (no write can be noted there meanwhile). - Diagnostics: one line a frame of refreshes, skipped refreshes and copies declared written by reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A4bpLmErkufJL3LGgfR561
…ritten A shader that reads title memory by address declared every numbered copy written whenever its code could store anywhere. The programs that walk the ray-tracing structures only load by address and store their results through their views: they declared up to 1,023 copies (4.3 GB in the source's runs) for a compare after each submission, and a walker in the same list as a quarantined builder stage carried what the builder wrote back to the title. Translated::stores_by_address says whether a program has a scalar-memory, flat or global store or atomic (or code that is not all known); only then are the numbered copies declared. Its views' ranges are declared as before. VICTORY_WRITE_SKIP=0 still declares everything. Sources: fxceless/victory-fork PR Marvisak#294 part 2 (ALFREDOHDEZ, RTX 4070: the quarantine stopped leaking, a 400 s builder run) and PR Marvisak#916, AllStars101-sudo/victory-lap aca8308ab3, ka1qux/BRVIctory-ka1qux 4c9dff93d (writes_guest_memory). The shader-side dirty marks of PR Marvisak#346 are not taken (they change translated shaders). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #255 for non-indexed draws.
What
Indirect draws with the console's rectangle-list topology (17) now run on the host instead of being dropped.
State::execute_indirectrefused them because rectangles are expanded on the CPU (primitive::expand_rects), and an indirect draw's vertex count is only known on the GPU. #255 counts about 250 of these drops per world frame, and the title draws its full-screen passes as rectangles.How
For kind 0 (
DRAW) withRECTANGLES, after the existing argument clamp, two compute passes of ours run beforeExecuteIndirect(new modulecrates/victory-gpu/src/rectangles.rs). Both are HLSL compiled at run time by the system'sD3DCompile(cs_5_1): Microsoft's, or Wine's vkd3d-shader under Wine/Proton. For the latter they read buffers as 32-bit words ((RW)StructuredBuffer<uint>), and their root signatures are serialized in code (sincec256f83; checked with vkd3d-compiler 2.1, the version GE-Proton11-12 ships).rect_rewrite(one thread per record):start .. start + 3 * rectslies inside every bound per-vertex vertex buffer.rects * 6vertices from a per-list scratch with an atomic counter.rects * 6vertices, the same instances, the allocated start, the same start instance.rect_expand(one group per record, one pass per per-vertex slot):(v0, v1, v2, v0, v2, v3)per rectangle.v3 = v0 + v2 - v1the wayexpand_rectsdoes: same formats (primitive::components), same half-float and UNORM conversions and rounding. Unknown formats and components past the stride keep v0's bytes.ExecuteIndirectthen reads only list-owned buffers: the rewritten arguments, in which records at or past the title's count are empty draws, so no count buffer is passed (since7ff1184). The expanded slots are bound withIASetVertexBuffers. Transitions around the draw put the scratch back in unordered access, so the next indirect rectangle draw of the list reuses it.Half floats, on both paths (
primitive.rsand the shader's copy):4090d29): fuzeofficlal's fix for the direct path (comment, theirc256b97), carried here since PR creation is limited to collaborators;1278485).The CPU and GPU paths therefore still agree byte for byte.
List-owned memory (
host.rs):indirect::boundis split so thatclamp_uav(clamp, then a UAV barrier) can be followed by the rewrite pass.bounditself behaves as before.Fallbacks: if a pass is unavailable or the arguments are unaligned, the draw is dropped as before, each case with its own diagnostics
why(...)reason. Records that do not fit the scratch, or that reach past their buffers, draw nothing.The rectangle path changes the state of no title buffer: the arguments and the count are only read, by the rewrite pass.
Limitations, written as
shortcut:notes in the module:primitive.6 * rectsvertices from 0, the same as a direct rectangle draw today. The vertex-ID remap suggested in World: ~250 indirect rectangle-list draws per frame are dropped (topology 17), and the world stays black behind the cutscene #255 is not part of this PR.Tested
Native Windows: the upstream CI's checks (clippy
-D warningswith and without--all-features, thencargo test --workspace --locked) pass on GitHub'swindows-latestat this head: https://github.com/BastienRodz/VIctory/actions/runs/45381063747Latest, on
8ef6bferebased ontomainffe310e(clean):cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-featuresas the CI runs it, is clean.victory-gpu: 58 passed under plain Wine (61 withdiagnostics). On vkd3d-proton: 60 passed and 1 failed,a_rejected_blob_gives_an_empty_library, an environment failuremainhas there too. Policy: 155 files ok. The details below are from earlier heads.Mine: Linux x86_64, cross-built with
cargo xwinforx86_64-pc-windows-msvc, tests run under Wine 11 with Xvfb.GPU tests: vkd3d-proton 3.1 on Mesa lavapipe (software Vulkan;
VKD3D_FEATURE_LEVEL=12_0), as the host D3D12 device.HLSL: compiled by Microsoft's
d3dcompiler_47.dll, installed with winetricks.cargo xwin test -p victory-gpu: 48 passed, 2 failed, 1 ignored.main(d2a4bae) in the same setup: 41 passed, the same 2 failed. The two failures are the known vkd3d-proton environment failures,a_rejected_blob_gives_an_empty_libraryandbuffer_data_reaches_the_host_texture.Without a host device (plain Wine, so host tests skip): 50 passed. With
--features diagnostics: 52 passed.New tests:
slot_elements_filters_and_clips_to_stride,scratch_layout_handles_multi_slot_and_alignment,max_source_vertices_takes_minimum_across_slots,dispatch_grid_respects_d3d12_limit.hlsl_compiles(both shaders throughD3DCompile),rectangle_expander_builds(the host accepts both pipelines).gpu_expansion_matches_cpu_expand_rects: runs both passes on synthetic vertices and compares the GPU output byte for byte withexpand_rects. The vertices cover F32x2, F16x2, UNORM16x2, UNORM8x4, an unknown format and an element past the stride. The records cover two rectangles, a rectangle with instances and a start instance, an out-of-bounds record, a zero-instance record and a record past the count.Mutation check: with the shader's fourth corner changed to
a + f + b,gpu_expansion_matches_cpu_expand_rectsfails, so the comparison catches it.cargo xwin clippy -p victory-gpu --all-targets, with and withoutdiagnostics: one warning, the same one as onmain(a missing safety comment in a test outside this diff).rustfmt --checkis clean onrectangles.rs. The touched files have the same rustfmt diffs as onmain, none new.cargo xtask policy:asset policy: 152 files ok.Tested by others (thanks)
cee702e. With the fix, theExecuteIndirectoutput matched the CPU-expanded reference image (SHA-256).cee702e(comment): the rectangle tests pass with no D3D12 debug-layer errors. An end-to-end fixture (vertex copy, the PR's expansion and barriers, then a realExecuteIndirectdraw starting at vertex 1) matched the expected image on both adapters.cee702e+ Windows 10: load the D3D12 Agility SDK runtime for shader model 6.6 #175 (comment): the loading screen now renders (black without this PR). By frame 2048, 11,351 of 11,351 draws and 2,144 of 2,144 dispatches ran. World entry still hangs that NVIDIA GPU, because of wave64 compute pipelines the host refuses (NVIDIA RTX 5070 Ti: world hang (DEVICE_HUNG) on 97c78d1 is not one program, not loops, not barriers; 77 compute pipelines refused #71); that hang is not from this PR.0aebe86(comment): the whole path, fromState::execute_indirectthroughexpand()to a native draw and readback. The count is written by a compute dispatch on the same list into a separate buffer: count 0 draws nothing, count 1 draws exactly the expected region. No debug-layer errors on either adapter. Ond2a4bae, the same calls are rejected.cee702e(review):victory-gpu50 passed. The review led to0aebe86: the rewrite pass bounds records itself (for GPU: make ExecuteIndirect clamping countBuffer-aware and non-destructive #242), and half-float rounding carries. Re-run at0aebe86(comment): 49 passed. The only failure is a timing test inframe.rsthat fails under load, passes alone, and is not touched here. The count-buffer state and the UAV-bound copies are agreed as GPU: transition host copies of title memory between shader writes and reads #334 follow-ups.4090d29(comment):victory-gpu57 passed, 0 failed, includinghalf_midpoints_round_to_evenandgpu_expansion_matches_cpu_expand_rects. With only the shader's old rounding put back, the byte-for-byte test fails on that GPU (0x01where the CPU has0x00).d3dcompiler_47) + vkd3d-proton 3.2.0, atc256f83+ GPU: build the indirect-argument clamp with our own writer (no shader compiler at run time) #190 (comment): noE5005, no root signature error, and 0rectangle expander shader unavailabledrops (256/frame before). The only rectangle drop left isindexed rectangles not supported(~0.1/frame). The run later ended in the same texture-read page fault plainmaingives on that card (Linux (Proton + vkd3d-proton, Strix Halo RADV): GPU page fault (texture read) 1.5–4 min in, DRED never reports because the title's own hang check exits first #714), which is not from this PR. They also ported both passes to the shader crate's DXIL writer (branch, stacked on GPU: build the indirect-argument clamp with our own writer (no shader compiler at run time) #190), should no run-time compiler be wanted.c256f83onmain8e79c80in a 13-PR stack (comment): clean merge.victory-gpu64 passed, 0 failed (all 7rectangles::tests::*); withdiagnostics67 passed; full workspace 329 passed, 0 failed.prepareafter the expansion, mostly on dynamic descriptor slot exhaustion (GPU: take back the dynamic descriptor slots of lists that ran when a heap runs short #688).Not run
No game data used: every test input is synthetic.
AI-assisted: implemented with Gemini 4 Neon, then reviewed, corrected (docs, count-buffer state) and tested with Claude Code. Every command above was really run.
🤖 Generated with Claude Code