Repository navigation
compute: publish packed_d16_x_uav runtime manifest (Part of #3224) - #20
Closed
SimSalabimse wants to merge 624 commits into
Closed
SimSalabimse wants to merge 624 commits into
SimSalabimse wants to merge 624 commits into
Conversation
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.
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.
…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>
Owner
Author
|
Superseded by R0Y00#3389 (opened against the fork's main by mistake). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Name
packed_d16_x_uavandindexed_raw_srvinview_kind_name. Publishuav <register> bufd16x table <parameter> <byte> bytes 2only when the binding kind ispacked_d16_x_uav, the binding is one register, and the payload is two bytes. The dispatch reader accepts that line next tobufhalfand still checks the view withnative_buffer_store_view.A one-component
buffer_store_formatwith the D16 bit stayshalf_buffer_uav. It publishesuav <register> bufhalf table <parameter> <byte> bytes 2, the line the half-buffer fixture already requires. It does not publishbufd16x.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 publishedbufd16xfor every one-component D16 store, which replaced the existingbufhalfline. 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 raisesIndexErroron a missing argument. Its compile and dispatch modes need Windows.reference: 13 halfwords at byte 8, guards intact, three negative descriptors differdocs_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 passThe
Run Python checksstep of thepython-linuxjob, run as./out/pe-env/bin/python -B tools/run_checks_parallel.py --from-dir tests/checks/python-linuxplus that step's script list:all 258 checks passed.On the Windows test PC, for
33657fa9,ctest -j 1 --preset devreported the newstartup_compute_packed_d16_x_uav_*tests passing (hardware pass, warp skip 77) andstartup_compute_store_d16_x_*passing, andstartup_compute_half_buffer_uav_controlsplusstartup_compute_half_buffer_uav_hardwarefailing because the manifest wasbufd16x. This correction is82984b07. Re-run:Windows results for
82984b07will follow in a comment.Part of R0Y00#3224
AI-assisted (Cursor)