Repository navigation
shader: compile native mesh interfaces and prewarm compute requests - #3091
Conversation
|
The trial merge of For GPU review, please cover the new RTV specialization against main, including the cache key change and RTV mismatch or missing-sidecar refusals; check that old and revised cache identities cannot reuse incompatible DXIL; and exercise the offline C++ request path through |
R0Y00
left a comment
There was a problem hiding this comment.
The current integration with main ca659396 (tree 3e49c5cfe4eef1784fcce70ef00ccf5a7d46ab10) retains both _i64 and wave64 QuadCompare pair invalidation. Debug and Release /O2 each passed nine compiler-only tests, including native_rtv_variant_controls and native_salu_shift64_controls. The RTV suite produced byte-identical cold and warm outputs for the base and four variants, and its 13 refusals preserved the expected failure markers.
One watcher behavior still needs a control. I used the source-built stream request in native_startup_request_cache_check.py, published it with compile_dxil --watch ... --once, then added a contradictory .ps57in with an older preserved timestamp. A second --watch --once kept the old .txt byte-identical and did not refuse the conflict. Giving the identical .ps57in a newer timestamp caused the watcher to withdraw the manifest and report conflicting stream and slot-57 pixel entry records. The cached-manifest fast path currently checks only the latest sidecar mtime. Please check the sidecar shape or identity before it accepts a cached graphics result, and cover the preserved-timestamp case.
|
An updated trial merge of |
|
Updated conflict diagnosis for Built |
|
Cross-reference: an independent Windows receipt of the stacked compiler+runtime branch at |
|
Independent compiler-side receipt for this branch at its head
|
|
I independently tested the masked resource-selection path for #3210 on I found one acceptance boundary in the implicit sample proof. When Source-built reproWrite these little-endian dwords to Change I tested a small follow-up in the image-coordinate decoder. For a projected implicit sample, refuse when a decoded spatial coordinate VGPR overlaps |
|
Integrated current compiler and graphics changes at 247530b. Debug and Release /O2 each passed all 12 selected source-built tests on Windows 11 26200.9974, including WARP 10.0.26100.9818 and RTX 4060 Laptop driver 32.0.16.1656 for the graphics sampler case. The new watcher control copies a conflicting slot-57 record with an older timestamp and verifies that the published manifest is withdrawn. The integration also preserves main's compute sampler fixture as a separate test. cmake --build --preset dev --target compile_dxil native_compute_pack_check native_frozen_request_check native_pixel_ir_dump offscreen_check native_store_replay
ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^(native_direct_(container|mesh)|native_frozen_request|native_compute_pack|native_graphics_(interface_library|wqm_ir|sampler_heap_.*)|native_startup_request_cache_controls|native_compile_dxil_watch|native_salu_shift64_controls|native_rtv_variant_controls)$'Repeat with the release preset. Please recheck the current head, in particular the merged compute operand and sampler paths. |
Extract read_pixel_input_description() so watch/request paths share exact .psin/.ps57in parsing and conflict detection, compare canonical pixel-input descriptions against <key>.psdep, remove stale .psdep in batch compile_job when pixel inputs are empty, and verify stale preserved-mtime base/RTV sidecars and 0-byte .psdep retranslation in native_compile_dxil_watch_check.py. Refs #3133 AI-assisted.
|
Independent check on the exact head cmake --build --preset dev --target compile_dxil native_compute_pack_check native_frozen_request_check native_pixel_ir_dump offscreen_check native_store_replay
ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^(native_direct_(container|mesh)|native_frozen_request|native_compute_pack|native_graphics_(interface_library|wqm_ir|sampler_heap_.*)|native_startup_request_cache_controls|native_compile_dxil_watch|native_salu_shift64_controls|native_rtv_variant_controls)$'Repeated with
Environment: Windows 11 build 26300, MSVC 19.44.35228.0, Windows SDK/DXC 10.0.26100.0, WARP 10.0.26100.10068, AMD Radeon RX 9060 XT driver 32.0.32029.2010. The D3D12 debug layer was unavailable ( |
Bring main 57e9466 into #3091's 247530b head. Resolve the five overlapping areas by retaining both features: - keep compute request shape validation and derive wave32 from the packed state; - serialize both sampler_heap and stride_srvs in the compute frontend cache; - keep the current wave-size selection plus the packed-state virtual-wave path; - prepare descriptor strides once and keep a single initialize call; - keep the sidecar dependency retry and the native compute manifest revision check.
|
Opened #3241 to refresh this branch onto current The merge keeps both sides in the five overlapping areas (compute request shape + wave32, sampler_heap + stride_srvs cache fields, wave-size selection + packed-state virtual waves, descriptor stride preparation once, sidecar retry + native compute manifest revision check). Validation at AI was used. |
read_compute_request indexed state block A for the wave-size bit before validate_compute_request_shape enforced its 28-byte length. Build the request with the default wave32 value, run the shape check, and only then decode the bit. Add a source-built request with a correctly keyed 24-byte state A to native_compute_clear and require the existing shape diagnostic.
Keep both the exact-width texture cases and the compiler stack's test registrations. In gfx1013_compute_native.h keep main's float/float2/float3 kinds, append packed_d16_x_uav and indexed_raw_srv, and keep both exact_texture_uav_channels and accepts_cbv_window. Use indexed_raw_srv as the decode upper bound. In gfx1013_direct_compute.inl keep exact_store and indexed, with the exact_store exception in the store gate and the indexed exception in the descriptor gate.
|
I refreshed the #3241 trial locally against main ctest --test-dir out/build/release --no-tests=error --output-on-failure -j 1 -R '^(native_direct_(container|mesh)|native_frozen_request|native_compute_pack|native_graphics_(interface_library|wqm_ir)|native_startup_request_cache_controls|native_salu_shift64_controls|native_image_cache_flags_(controls|ps_hardware|cs_hardware)|native_wave64_exec_salu_hardware)$'Windows 11 26200.9974, RTX 4060 Laptop driver 32.0.16.1656 and SDK/DXC 10.0.26100.0. Main subsequently advanced to |
Keep both shapes in the compute output: virtual waves finish as 64x1x1, flat compute-derivative quads as x*y*z, and the original dimensions otherwise; complete_compute_quads is set before the lane setup. Keep main's heap offset analysis and the branch's graphics/sampler descriptor branches, and take main's WREXEC validation and EXEC update path.
Absorb #3262's scalar64 source validation for s_cselect_b64 and s_not_b64, including VCC and EXEC sources, while keeping the branch's direct-compute paths.
A packed slot-67 group with more than one guest wave64 enters the virtual-wave scheduler only when it also has a conditional branch and a synchronizing instruction. Implicit derivatives have no packed-scheduler readback, so refuse them at the image opcode instead of compiling a shader whose guest quads cannot be reconstructed. Add native_wave_virtual_derivative_controls: source-built packed slot-67 requests where explicit LOD with a branch and barrier and ordinary implicit both compile, and the combination is refused.
…sidecar-content-invalidation shader: invalidate watch manifests when sidecar content changes with an older mtime
R0Y00
left a comment
There was a problem hiding this comment.
Independent Release retest on the published 0b505c1c after #3138 landed. I built compile_dxil native_compute_pack_check native_frozen_request_check native_pixel_ir_dump and ran ctest --preset release --no-tests=error --output-on-failure -j 1 -R '^(native_compile_dxil_watch|native_direct_(container|mesh)|native_compute_pack|native_frozen_request|native_graphics_(interface_library|wqm_ir)|native_startup_request_cache_controls|native_rtv_variant_controls)$'. All nine passed with no skips on Windows 11 build 26200 and SDK/DXC 10.0.26100. That includes changed older-mtime sidecar invalidation and the unchanged sidecar cache control.
Against main at 6a1968a1, the merge still has conflicts in CMake, the direct compiler/cache and shader request/CLI files. A read-only three-way merge with the current #3094 head did not show textual conflicts for the #3138 delta. The next compiler head still needs to incorporate newer main changes and rerun hosted Windows CI. #3014 now targets main and overlaps the request helpers and compile_dxil.cpp; please preserve the watcher content comparison when integrating it.
|
Thanks for this. I reviewed head
Also still open from the earlier reviews: the #3255 virtual-wave/derivative control from the 03:16 comment, and RonLogic's guard for a VDATA range that overlaps the coordinates ( Non-blocking:
Environment: Linux, static review only (merge-tree, greps, Python decode model). I did no build, WARP or GPU run. This comment was AI-assisted. |
Keep #3138's sidecar_changed invalidation and the branch's compute dependency_changed/lost checks in the watch request gate.
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.
# Conflicts: # src/gfx1013_compute_native.cpp
Integrate native compilation of the supported fixed mesh/pixel interfaces, descriptor waterfalls and reviewed resource layouts. The C++ frontend also accepts tagged compute state and scalar buffer windows, and can publish and validate a versioned compute frontend pack. Cache identity includes the new lowering sources. The compiler watcher invalidates entries when the slot-57 pixel input sidecar changes.
This is the compiler prerequisite for a separate runtime integration. Refs #2907 and #2981. All new fixture inputs are source-built.
Verified at a48d39d in a clean x64 Windows Release worktree, MSVC 19.51, Windows SDK 10.0.26100.0.
8 passed, 0 failed, 0 skipped. These controls check desktop bytecode generation, mesh input rejection, WQM IR, immutable request identity and cache publication. Runtime bindings and submitted GPU results are covered by the dependent runtime change.