Repository navigation
Conversation
|
Thanks for this. I reviewed head
Suggestion:
Nits: Once you've considered the suggestion, it looks ready from our side. 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 flagging the 1D-array case. I refreshed the branch onto
Windows 26300.10075, MSVC 19.52.37029, DXC 1.9.2602.17, Agility 1.620.2. RTX 4070 # Run once for each of the dev and release presets with Agility and WARP configured.
cmake --build --preset <preset> --target compile_dxil d3d12_xs_shim startup_stream_consumer offscreen_check native_compute_manifest_reasons
ctest --preset <preset> --no-tests=error -j 1 -V -R '^(startup_compute_(half_image_uav_.*|half_buffer_uav_.*|dispatch_(texture|two_mips)_(hardware|warp))|native_image_store_exact_width_hardware_.*|native_direct_container|native_compute_manifest_reasons(_requests)?)$'An independent run of the 1D-array refusal and shifted-W control on the refreshed head would be useful. I used Codex to prepare the change and ran the reported checks locally. |
|
This branch conflicts with Resolution: keep this branch's side ( No review is recorded on this PR yet, and the new tests need a re-run on the merged head. |
pigalot
left a comment
There was a problem hiding this comment.
Reviewed 905db2e4 at the head itself, not integrated: it conflicts with main f4e2e5c6, so I am requesting changes for that alone. Everything else below passed here and is non-blocking.
Blocking: conflict with main. git merge-tree --write-tree origin/main 905db2e4 exits 1 with one conflict, in tests/startup_stream_consumer.cpp, at the mode flags at the top of texture_slot67. main added texture-volume-native-sampled there (af6045df, merged with #3154); this branch added the texture-exact-half-* flags in the same lines. The other six files merge cleanly. Please merge main and re-run the new tests; both sides' flags need to stay (sampled || at the start of volume, plus this branch's half*, shifted_w, width and height).
What I traced. The publisher branch in format_compute_runtime_manifest takes half_scalar_uav and half2_texture_uav before the float branches, maps ISA dimensions 0, 1, 2 and 5 explicitly and refuses the rest through view_shape. The binder parses the half table line into narrow_half_texture, checks the view and resource formats with native_half_store_format(...).accepts, queries typed-store support on the typed format and binds the view with that format. For the existing float path store_format is still resource.Format, so that path is unchanged. The two merge commits on the branch are the author's.
Tests at 905db2e4 (targets compile_dxil d3d12_xs_shim startup_stream_consumer offscreen_check native_compute_manifest_reasons, dev and release):
ctest --test-dir out/build/<preset> --no-tests=error -j 1 -V -R '^(startup_compute_(half_image_uav_(controls|warp)|half_buffer_uav_(controls|warp)|dispatch_(texture|two_mips)_warp)|native_direct_container|native_compute_manifest_reasons(_requests)?)$'
ctest --test-dir out/build/<preset> --no-tests=error -j 1 -V -R '^(startup_compute_(half_image_uav|half_buffer_uav|dispatch_texture|dispatch_two_mips)_hardware|native_image_store_exact_width_hardware_.*)$'
- Non-hardware: 7 passed and 2 skipped in each configuration. The two skips are
startup_compute_half_image_uav_warpandstartup_compute_half_buffer_uav_warp: the inbox WARP here reports a 4-lane wave, so the wave32 probe returns 77. I did not run the new fixture on WARP. - Hardware: 11/11 in each configuration, no skips, debug layer enabled with no error message.
startup_compute_half_image_uav_hardwarematched 32 + 1,280 + 512 + 256 + 3,072 + 1,536 = 6,688 halfwords across the six views, the same total you reported. The shifted-W control printed16 differences, first component 256 expected 5100, read 3c00. The 1D-array control printed1D-array D16 store compiled and was refused at manifest publication. git diff --checkagainst the merge base052abe6fis clean.
Mutants (dev build, startup_compute_half_image_uav_controls and _hardware):
Killed (12):
- publisher branch disabled (negative control): both tests fail, no manifest;
- dimension 4 mapped to
tex2dainstead of refused:_controlsfails on the refusal reason; - channels 1 and 2 swapped in the manifest line; dimension 0 as
tex2d; dimension 2 astex2d: both tests fail on the expected line; - binder format check removed: the R32 control's consumer exits non-zero;
store_format = half.typedremoved; kind chosen by swapped channel count;narrow_half_texturenot set by the parser; typed-store query onresource.Format: all fail on a halfword mismatch;acceptswithout the typeless resource; scalar typeless set toR16G16_TYPELESS: the typeless case fails.
Survive (3), none blocking:
acceptswith the view-format comparison removed (resource == typed || resource == typelessonly). The R32 controls change the view and the resource together, so nothing separates the two halves of the check. With this mutant a non-float 16-bit view of anR16_TYPELESSresource would be rebound asR16_FLOAT. AnR16_UNORM(orR16_UINT) view of the typeless texture that expects the D16 refusal and untouched sentinels would pin it.b.array_count == 1relaxed to>= 1in the publisher: no case has a descriptor array of a half kind.- parser accepting
channels 3on ahalf tableline: the publisher never writes it, and no test feeds the runtime a hand-written line.
Equivalent in practice (1): accepts with the resource-format comparison removed. A created R16_FLOAT view implies an R16 family resource, and an uncreated view is refused earlier.
Not run: a mutant that disables the typed-store support check. My pattern for it matched twice, and on this adapter the format supports typed stores, so it could not have been killed here.
Title run: the run of this head gave no verdict (job 32 ended in error without a run result), so this review does not include one.
Environment: Windows 11 25H2 build 26200.9974; MSVC 19.52.37029; Python 3.12.10; NVIDIA GeForce RTX 5090 driver 32.0.16.1088, debug layer enabled; inbox WARP 10.0.26100.9818 (4 lanes, wave32 cases skipped).
CI: Build and test on Windows passed on 905db2e4; as noted earlier in the thread, that job does not run the half_image_uav tests.
This reply was AI-assisted.
|
Thanks for the 1D-array control and the special-value probes. I re-checked
The only thing left is the conflict in Environment: Linux only: git objects and This comment was AI-assisted. |
|
Update to our 11-29 12:06 comment, which named only the mode flags: on
We will review again after the rebase. |
|
Taking this over since there has been no activity for 48 h; will hand back if you resume. Your commits stay as they are and keep your authorship; I will rebase onto current |
|
Continued in #3766 (rebased onto |
Change
Refs #3224 and #2935. Direct Compute already emits D16 image stores for one and two channels. The five source-built programs here emitted DXIL but stopped at
half_scalar_uavorhalf2_texture_uavmanifest publication on the preceding compiler.Publish the existing one- and two-channel bindings as typed half-float texture UAVs. The slot 14 binder checks the view and resource formats with the existing
native_half_store_formatcontract and queries typed-store support on the view format. It uses the recorded mip and slice range for 1D, 2D, 2D-array and 3D textures. This is the published texture path. #3302 covers hardware buffer descriptors, and #3049 covers the separate in-process binding work.Verification
58f3fc4fonbbf4687b, with clean merges checked against current main and #3302. Windows 11 26300.10075, MSVC 19.52.37029, Windows SDK 10.0.26100 DXC 1.9.2602.17, Agility 1.620.2, RTX 4070 driver 32.0.16.2124, and app-local WARP 1.0.22.Evidence and follow-up
The texture data and guest code are generated by the test. The tested view coordinates follow the D3D12 UAV contract. The observed compatibility result is the five source-built programs through the published runtime, including a second view representation for the scalar 2D program. I used Codex to prepare the change and ran verification locally.