Repository navigation
Conversation
R0Y00
left a comment
There was a problem hiding this comment.
I independently reproduced this at 6fb2316 merged over main 86beae9 (tree 93bdcd0f1f75b9a201b16f9d6bc1fdf4673773e5). Debug and Release /O2 each gave three passes (MTBUF, direct container, RTX 4060 Laptop heap replay) and one inbox WARP wave32 capability skip (77). Windows 11 26200.9974, NVIDIA driver 32.0.16.1656, WARP 10.0.26100.9818.
The remaining gap is the ordinary table manifest route. The new lowering accepts an MTBUF byte window without proving its DST_SEL, emits a generic srv buf table line for it, and the runtime reads and bounds that view without checking the identity contract described by the new documentation. The replay inputs all use identity. Please make the boundary explicit in code. Either keep this carry on the explicit offline replay route, or check the required identity before the runtime uses the generated table manifest and add a source-built table dispatch with a non-identity refusal/control. The existing byte-count and cross-slot controls should stay.
ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^(native_mtbuf_hardware|native_global_srv_heap_replay_(hardware|warp)|native_direct_container)$'|
The data-path distinction in shadPS4 #5753 would make a good extra reference test for this port: use two SRV views selected by opposite branches, one raw and one formatted, and check the same underlying dword across the selection. That separates typed conversion from byte-window selection without requiring either implementation to use the other's code. |
formatted_byte_load asked resource() for raw_vector_srv even when the descriptor was the byte-address rewrite (stride cleared in word 1), so a tbuffer_load_format_* through such a window was refused with "non-contiguous resource descriptor", for a table descriptor and for a GPU-selected heap descriptor under the raw_buffer contract. It now picks byte_window_srv by the same rule as the raw MUBUF load. Conversion, the getDimensions element bound and the raw loads are unchanged. Tests: - native_global_srv_heap_replay_check.py: a 32_UINT tbuffer load through the heap window is recorded, compiled and replayed for selections 0 and 1, with the cross-slot mismatch control; the loop guard refuses it; an 8_8_8_8_UNORM load through the window compiles. - native_mtbuf_check.py: the 11-format value check also runs through a byte window of its table SRV (native_store_replay accepts the window binding as the same raw view). - native_direct_container_check.py: compute table windows with both formats compile; without the byte-count product they are refused. Refs R0Y00#3023 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit e67f101)
6fb2316 to
587fc6d
Compare
|
Rebased to I rebuilt |
R0Y00
left a comment
There was a problem hiding this comment.
I checked the rebased diff at 587fc6d2. It still lowers a zero-stride MTBUF source as byte_window_srv, and the published srv buf table route reaches indirect_table_buffer, which sizes the range from words 0–2 without checking DST_SEL in word 3. No runtime binding or manifest discriminator was added in the rebase. The prior request about the ordinary table route still applies. The offline and identity-fixture results are useful and can be retained in either approach.
|
Addressed the published table-route finding in I reproduced the original issue at cmake --build <build> --target offscreen_check compile_dxil native_store_replay native_global_srv_heap_replay startup_stream_consumer d3d12_xs_shim
ctest --test-dir <build> --no-tests=error -R '^(startup_compute_(mtbuf_window|dispatch_(entry|input))_(warp|hardware)|native_(mtbuf_hardware|direct_container|global_srv_heap_replay_(warp|hardware)|heap_offset_add))$' -j 2 -VStock Debug and Release each had nine passes and two in-box WARP wave32 capability skips. Agility 1.620.2 with app-local WARP 1.0.22 passed 11/11. The original 54-word, byte-count and cross-slot controls are included. |
|
Thanks for the quick follow-up. I did a static review of
SHOULD
NIT This comment was AI-assisted. |
|
Thanks for the work here. This branch no longer merges with current Could you merge or rebase current This comment was AI-assisted. |
|
Thanks for pointing out the two gaps in the test coverage. Both controls are now in
The original identity, swapped X/Y, byte-count and selected-heap cases still pass. Debug and Release each passed 12/12 with Agility 1.620.2 and app-local WARP 1.0.22 on Windows 26300.10075. The RTX 4070 used driver 32.0.16.2124. The refreshed branch merges cleanly with cmake --build <build> --target offscreen_check compile_dxil native_store_replay native_global_srv_heap_replay startup_stream_consumer d3d12_xs_shim
ctest --test-dir <build> --no-tests=error -j 1 -V -R '^(startup_compute_(mtbuf_window_(controls|warp|hardware)|dispatch_(entry|input)_(warp|hardware))|native_(mtbuf_hardware|direct_container|global_srv_heap_replay_(warp|hardware)|heap_offset_add))$'@R0Y00 the published route now has controls for both additional cases and is ready for another review. I used Codex to prepare the tests and ran the verification locally. |
Change
Carries JB2WIN’s merged #3034 from
cpp-migrationtomain, preserving the original author and commit reference. Refs #3023 and #3063.The direct Compute frontend uses the byte-window SRV for an MTBUF load through a rewritten buffer descriptor. The current
mainheap replay generator runs the existing raw cases and the new formatted-load cases. This is the first prerequisite for the typed-heap carry from #3042.Verification
Tested
6fb2316cover7fcde81fon Windows 11 build 26300.10075, DXC 1.9.2602.17, RTX 4070 driver 32.0.16.2124 and WARP.non-contiguous resource descriptoron clean main at7fcde81f. On this branch the complete window compiles and the missing byte-count control still refuses.b1e92256, native: bind a single directly indexed heap flag as a descriptor table #3221 and Compute descriptor stride SCC from bound buffer metadata #3227. The docs link check passed.Evidence
The MIT-licensed, source-built fixtures and their limitations are documented in the heap replay experiment. The changes cover compiler and replay behavior. The live heap contract is tracked in #3023.
I used Codex to prepare the carry and ran verification locally.