Skip to content

compute: publish packed_d16_x_uav runtime manifest (Part of #3224) - #20

Closed
SimSalabimse wants to merge 624 commits into
mainfrom
compute-packed-d16-x-uav-manifest
Closed

SimSalabimse wants to merge 624 commits into
mainfrom
compute-packed-d16-x-uav-manifest

Conversation

@SimSalabimse

@SimSalabimse SimSalabimse commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Change

Name packed_d16_x_uav and indexed_raw_srv in view_kind_name. Publish uav <register> bufd16x table <parameter> <byte> bytes 2 only when the binding kind is packed_d16_x_uav, the binding is one register, and the payload is two bytes. The dispatch reader accepts that line next to bufhalf and still checks the view with native_buffer_store_view.

A one-component buffer_store_format with the D16 bit stays half_buffer_uav. It publishes uav <register> bufhalf table <parameter> <byte> bytes 2, the line the half-buffer fixture already requires. It does not publish bufd16x.

Why

23 shaders / 86,436 untranslated dispatches = 5.7% in a 900 s start-up run of a retail title on the Windows test PC, measured on main aec2e08. Those dispatches compiled and then refused with unsupported startup runtime manifest bindings: UAV kind unknown. The first cut published bufd16x for every one-component D16 store, which replaced the existing bufhalf line. That store is the half-buffer UAV, so the half line stays.

Verification

Linux, venv from requirements-dev.txt. Each command below exited 0 except the half-buffer script invoked with no arguments, which has no host-side mode and raises IndexError on a missing argument. Its compile and dispatch modes need Windows.

./out/pe-env/bin/python -B tests/startup_compute_packed_d16_x_uav_check.py
./out/pe-env/bin/python -B tests/startup_compute_packed_d16_x_uav_check.py reference
./out/pe-env/bin/python -B tests/docs_links_check.py
./out/pe-env/bin/python -B tests/startup_compute_store_d16_x_check.py
  • reference mode: reference: 13 halfwords at byte 8, guards intact, three negative descriptors differ
  • docs_links_check.py: Checked 157 Markdown files and 678 links.
  • startup_compute_store_d16_x_check.py: buffer_store_format_d16_x unit, format, bounds, CAS, provenance and refusal checks pass

The Run Python checks step of the python-linux job, run as ./out/pe-env/bin/python -B tools/run_checks_parallel.py --from-dir tests/checks/python-linux plus that step's script list: all 258 checks passed.

On the Windows test PC, for 33657fa9, ctest -j 1 --preset dev reported the new startup_compute_packed_d16_x_uav_* tests passing (hardware pass, warp skip 77) and startup_compute_store_d16_x_* passing, and startup_compute_half_buffer_uav_controls plus startup_compute_half_buffer_uav_hardware failing because the manifest was bufd16x. This correction is 82984b07. Re-run:

ctest --preset dev --no-tests=error -R '^startup_compute_(packed_d16_x_uav_|half_buffer_uav_|store_d16_x_)' -V

Windows results for 82984b07 will follow in a comment.

Part of R0Y00#3224

AI-assisted (Cursor)

Open in Web Open in Cursor 

RonLogic and others added 30 commits November 27, 2026 21:14
Add a source-built slot 67 dispatch fixture with two UAV views into separate mips of one texture. Check all half words after the fence and verify missing-translation and swapped-view controls on WARP and hardware.

Refs R0Y00#2490.
Validate the TOML schema, supported memory patch shapes and spans, and the target file hash before returning any patch plan. Cover malformed manifests, the 32-bit boundary and a wrong synthetic input hash.

Refs R0Y00#3037 (schema, loader and hash gate).
Use bounded binary32 integer arithmetic for ties-to-even U8 conversion and preserve the other destination bytes. Check literal and lane-derived inputs, DXIL opcodes, and guarded wave32 readback.

Refs R0Y00#3052.
Add an opt-in to skip the slot-44 upload-ring copy when no mapping is available and translated draws read the original address. Verify both switch modes with an exact post-bind draw and copy counters.

Fixes R0Y00#3027.
Refs R0Y00#2948 and R0Y00#2949.
Support single-mip uncompressed volumes in the console 4 KiB standard layout. Copy each depth layer to its own rows and hold layouts that exceed the reported footprint. Exercise thin-layout and oversize negative controls.
Lower the signed and unsigned packed byte dots, preserving wrapping and saturating the final accumulation when clamped.

Refs R0Y00#2935.
)

Lower signed and unsigned packed halfword dots. Track both carries and the signed high word so saturation happens after the full accumulation.

Refs R0Y00#2935.
Document single-run pass shares and DXIL sizes with GVN disabled. Record limited sampler-oracle results on WARP and RTX 4090 and distinguish the blocked run and unmeasured shader body.
Scale binary32 using integer operations, including subnormal normalization and nearest-even output rounding. Cover source modifiers, clamp, refusals and bit-exact wave32 readback.

Fixes R0Y00#3013.
Lower logical and arithmetic 64-bit scalar shifts, including overlapping sources and destinations, literal extensions and two-word SCC. Invalidate overwritten symbolic pairs and verify exact wave32 results.

Fixes R0Y00#3062.
Add a source-built two-mip view differential for integer derivative-selected LOD. Compare all four taps with a CPU reference and a fixed-mip control.

Refs R0Y00#1802.
Lower fixed-table image_gather4_l with the validated clamp sampler, view-relative mip bounds and four ordered typed loads. Verify exact Pixel and Compute readback and the wrong-mip control.

Fixes R0Y00#3066.
Refs R0Y00#1802.
Persist opt-in translated graphics PSO state and replay matching recipes. Keep writer and reader bounds aligned, serialize appends with exclusive file access, and preserve the draw fallback on contention or a malformed cache.
Lower signed and unsigned scalar bitfield extraction and two-word bit reverse. Preserve SCC semantics and invalidate symbolic descriptor pairs as needed.

Fixes R0Y00#3086.
Convert the sign-extended low nibble with an exact 1/16 scale. Preserve VOP3A output modifiers and verify rejected operands, clamp and sparse EXEC.

Fixes R0Y00#3098.
Refs R0Y00#2935.
Lower the low signed and high signed/unsigned 24-bit products. Compute the high word using exact bounded 32-bit partial products and retain the existing MAD behavior.

Fixes R0Y00#3101.
Refs R0Y00#2935.
…#3092)

Lower packed multiply and signed or unsigned multiply-add with independent half selection. Apply saturation after accumulation and check guarded wave32 readback.

Fixes R0Y00#3090.
Refs R0Y00#2935.
lukaslw-lab and others added 28 commits November 28, 2026 11:02
R0Y00#1408 holds every other thread while the debugger steps one over a hooked
function. In a long title run that is tens of thousands of windows with about
100 threads alive, and it slows the load after the first-run pages 3-4x.
debug_launch.py already has --suspend-others 0; the launchers now pass it
(run.ps1 -SuspendOthers 0, run.sh --suspend-others 0, default 1 = hold).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep the shared graphics/compute request key helpers and pixel-input reader, including the .ps57in sidecar. Keep the BCNT64 compute block alongside the shared scalar-mask combiner. Accept main's raw-store cache-policy naming. Keep both --rekey and --prepare-compute-pack in the usage text.
)

* startup: lower v_dot2_i32_i16 and v_dot2_u32_u16 in gfx2hlsl

* tests: add zero-product signed-clamp lanes for v_dot2_i32_i16

---------

Co-authored-by: R0D4X <R0D4X@users.noreply.github.com>
Co-authored-by: lewisalex86 <pigalot@gmail.com>
…3314)

transfer() records the symbol of EXEC in s[126]/s[127], for example a
constant after s_mov_b64 exec, <literal>. The wave32 saveexec/wrexec
branch clears s[126], but the 64-bit *_saveexec_b64 and *_wrexec_b64
fell into the generic SOP1 branch, which clears only the destination
pair. The analysis then kept the old EXEC constant, and a later
s_mov_b32 sN, exec_lo copied it, so the constant-sampler path could
fold a value the program no longer had. These ops now clear the
destination pair and both EXEC words.

New test native_exec_symbol_b64_controls: a sampler word taken from
exec_lo compiles while EXEC is a known constant, and is refused with
"nonconstant sampler" after s_and_saveexec_b64 or s_andn2_wrexec_b64
with an unknown source.

AI-assisted.

Co-authored-by: tedin7 <110300616+tedin7@users.noreply.github.com>
In a guest wave32 direct compute program s107 (vcc_hi) is an ordinary
numeric scalar register. It is now accepted as a carry-out destination,
as the v_cndmask_b32 mask source and as a carry-in source. A guest wave64
request that runs on the wave32 model, where 107 would be an odd pair,
and graphics stages keep the existing refusals.

Co-authored-by: tedin7 <110300616+tedin7@users.noreply.github.com>
…ne_f16 (R0Y00#3322)

* shader: map inline binary16 float constants in v_floor/ceil/trunc/rndne_f16

* shader: keep graphics-stage lowering for v_floor/ceil/trunc/rndne_f16

---------

Co-authored-by: R0D4X <R0D4X@users.noreply.github.com>
Co-authored-by: tedin7 <110300616+tedin7@users.noreply.github.com>
* tooling: audit GDK export coverage

* ci: retry the Windows smoke test

* tooling: harden GDK export coverage checks

Read .def ordinals from the @n token without cutting decorated names. Key inventory modules by their module field and strip .lib/.dll so LIB and DLL captures merge. Mark absent, empty and partially parsed modules as unmeasured, report them in the matrix, and fail --fail-on-missing on them. Add LIB+DLL, ordinal, decorated-name and unmeasured fixtures. Document that the dumpbin SHA-256 identifies the captured text.

* tooling: make the GDK inventory SDK explicit

Add --sdk to parse-dumpbin and scan-pe instead of hardcoding 261000 in three places, and assert the value in the inventory fixture.

* tooling: include GameInput in the default shim matrix

Add GameInput (1/1 covered) to DEFAULT_DEFS. Document why xgameruntime is excluded: its .def is fixture-only and its thunk exports are generated, so a name comparison would report every GDK runtime export as missing.
)

A guest wave64 request of at most 32 threads runs on the wave32 model,
where EXEC_HI starts at zero. s_andn2_wrexec_b64 is now lowered there as
in full wave64: D = S0 & ~EXEC and EXEC = D on both words. A V_CMPX that
writes EXEC also writes 0 to EXEC_HI in that model, since the guest has
no upper lanes.

Co-authored-by: tedin7 <110300616+tedin7@users.noreply.github.com>
…ADOX (R0Y00#2890)

* cpu: add dedicated cpu_adx_aot lifter for 32-bit and 64-bit ADCX and ADOX

AI-assisted.

* tests: pin 32-bit zero-extension with mov rax, rcx and document cpu_aot_adx_dedicated
# Conflicts:
#	src/gfx1013_compute_native.cpp
# Conflicts:
#	CMakeLists.txt
#	src/startup_stubs/d3d12_compute_dispatch.inl
#	src/startup_stubs/d3d12_draw.inl
#	src/startup_stubs/d3d12_xs_device.cpp
#	src/startup_stubs/translated_sampler_bindings.h
#	tests/startup_native_graphics_draw_check.py
#	tests/startup_stream_consumer.cpp
shader: compile native mesh interfaces and prewarm compute requests
…irement

runtime: retire translated sampler heaps with their allocator
# Conflicts:
#	src/startup_stubs/d3d12_xs_device.cpp
…ation

runtime: bind native shader requests and submit fixed mesh pipelines
…-descriptors

gpu: normalize relocations in extended Mesh57 descriptors
…hers

startup: let run.ps1 and run.sh turn off the hook thread holding
startup: lower v_dot4_i32_i8 and v_dot4_u32_u8 in gfx2hlsl
A one-component D16 buffer_store_format compiles as packed_d16_x_uav but
the published route had no manifest line, so dispatch refused the kind as
unknown. Emit bufd16x, name the kind, and keep the view on
native_buffer_store_view, refusing an element that is not one R16_UINT
halfword.

Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
A one-component buffer_store_format was classified as packed_d16_x_uav, so
publishing bufd16x replaced the existing bufhalf line. That store stays a
half_buffer_uav. bufd16x is emitted only for a packed_d16_x_uav binding.

Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
@SimSalabimse

Copy link
Copy Markdown
Owner Author

Superseded by R0Y00#3389 (opened against the fork's main by mistake).

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.