Repository navigation
Conversation
R0Y00
left a comment
There was a problem hiding this comment.
I checked 3117f8b. The strict SCC compares and the revision-31 graphics and compute keys agree across the runtime, translator and offline manifest tooling. The exact head passed the independent Windows Python checks startup_gfx2hlsl_compute_check.py, startup_gfx2hlsl_scalar_null_check.py, startup_shader_cache_key_check.py and startup_compute_request_offline_check.py (4/4), including refusal of stale or mismatched keys. Please keep the revision ordering with #3382 in the landing branch and coordinate with @nanyoudegege on whether to continue in #3435 or here.
R0Y00
left a comment
There was a problem hiding this comment.
I also ran ctest --preset dev --no-tests=error -j 1 -V -R '^startup_gfx2hlsl_compute_(s-min-inclusive_)?(warp|hardware)$' on 3117f8b. All four cases passed on Windows 11 build 26300, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656 with debug layers enabled. The equal-operand control catches the inclusive SCC predicate on both adapters. The original-PR coordination is still pending.
|
Slot 57 translations use the same SCC lowering, but this PR leaves their cache key at
Probe (local script, not proposed for the branch): the source-built
No wrong output observed, and I did not compile the probe to DXIL. Only pairs published after #3531 are affected. Could you either bump the mesh key with the other two, or add to Known limits that slot 57 pairs published between #3531 and this change stay in use under |
R0Y00
left a comment
There was a problem hiding this comment.
I independently confirmed the Mesh57 stale-cache case raised above, including pixel readback. On 3117f8ba trial-merged onto 8a2f84d1, I used the source-built startup_mesh57_skeleton_check.py fixture. Insert 83a88181 852980f2 immediately after the initial bfa00003 (s_min_u32 s40, 1, 1; s_cselect_b32 s41, 1.0, 0), and use vertex_red("7e0e0229") to make the selected float reach the red output.
The old and new translators both produce Mesh57 key 84361cba95c62e55, but compile different .ms57.cso bytes. With the old full pair in the cache, the new pending_keys says there is nothing to translate. Directly drawing the published binaries with the existing offscreen fixture on WARP and RTX 4060 Laptop showed the visible difference: the old output matches the red=1 reference, the fresh output matches red=0, and drawing the old binary against the fresh reference differs in 259 of 1,024 pixels on each adapter. Windows build 26300, SDK DXC, WARP 10.0.26100.9818, RTX driver 32.0.16.1656, D3D12 debug layer enabled, no skips. This measures published bytecode and cache scheduling with source-built inputs.
Please cover the opt-in published Mesh57 path in the revision change. Bump its shared request revision and keep a regression showing that a previously completed pair does not suppress work on the new key. Coordinate the graphics/compute revision with #3382 separately.
… fix Translations cached under revision 29 still set SCC when s_min/s_max see equal operands, and pending_keys skips their completed results. Move the graphics and compute revisions from 29/29cs to 31/31cs in gfx2hlsl.py, d3d12_draw.inl and shader_compute_request.cpp, with the tests and docs that carry the string. Revision 30 stays with R0Y00#3382, which bumps 29 to 30 for FORMAT 47, so the two changes cannot share a revision. Revision-28 archives are still read; the slot 57 mesh key is unchanged. The pinned keys in shader_compute_request_check.cpp, startup_shader_cache_key_check.py and startup_compute_request_offline_check.py are recomputed at 31/31cs.
Slot 57 mesh translations use the same scalar min/max SCC lowering as graphics and compute, but their request key stayed at x2w-startup-mesh-57-4. pending_keys treats a request as done once <key>.ms57.txt and complete .ms57.cso/.ps57.cso exist, so pairs translated before the fix were reused. Move the mesh key to x2w-startup-mesh-57-5 in gfx2hlsl.py, shader_compute_request.cpp, d3d12_draw.inl and native_mesh57.inl, with the tests and docs that carry the string. The pinned mesh keys in shader_compute_request_check.cpp are recomputed at revision 5. startup_gfx2hlsl_watch_check.py now checks that a pair completed under revision 4 leaves the revision 5 request pending, with the same pair under the new key as the done control. startup_mesh57_skeleton_check.py adds a mesh that feeds s_min_u32 s40, 1, 1 into s_cselect_b32 s41, 1.0, 0 and draws s41 as red, which must stay 0.
The fixed-state variant key extends the slot 57 request key, so the revision 5 bump also renames every req_<variant>.s57 archive and <variant>.mesh57-state profile. Neither rekey tool carries them over, and the archive stores the request key in its header. Document the manual step: capture again with X2W_MESH57_CAPTURE_STATE=1, then run mesh57_profile.py on each new archive with its reviewed JSON.
|
Thank you both. The slot 57 key is bumped in Slot 57 revision. Regression for the stale pair. SCC tie fixture. @R0Y00, your reproduction is in Known limitation: fixed-state archives and profiles. @Makto94, as you noted, the bump also renames every #3382. The graphics/compute revision ordering with #3382 is unchanged by these commits (still 31/31cs here) and remains to be settled there. Tests. Windows, MSVC, WARP and a hardware adapter: 46/46 passed. This covers |
R0Y00
left a comment
There was a problem hiding this comment.
Re-reviewed f723cbb. The Mesh57 revision-5 bump and its stale-pair regression address my previous change request. Independent Windows checks passed: the watch and Mesh57 skeleton controls, shader-cache-key and offline request checks, the MSVC C++ request fixture (10/10), and both Mesh57 skeleton draws on WARP and RTX 4060 Laptop, including the SCC tie. The revision-4 fixed-state profiles still require recapture as documented. The technical review is clear on this head. The required CI and coordination with the original PR #3435 remain before landing; whichever of this and #3382 lands second must use a fresh graphics/compute revision.
Carries #3435 by @nanyoudegege with their commits. Refs #3434.
#3435 has two open requests for a cache revision bump and no update since 11-29. The author's commit is kept unchanged (
d1ac43d4a, a clean cherry-pick of710fb44d); one commit on top adds the bump. @nanyoudegege, if you would rather continue in #3435, say so and I will close this PR.Change
From #3435 (see its description for the ISA reference and the Linux validation):
tools/startup/gfx2hlsl.py:s_min_{i,u}32ands_max_{i,u}32set SCC with a strict compare, so equal operands clear it, as the direct compute path already does.s-min-inclusivecontrol follow the strict rule.Added here, in
3117f8ba8:x2w-startup-shader-29/29csto31/31csintools/startup/gfx2hlsl.py,src/startup_stubs/d3d12_draw.inl,src/shader_compute_request.cppandtools/patch_manifest.py, with the tests and docs that carry the string. Without it, translations cached under revision 29 keep setting SCC on ties.tests/shader_compute_request_check.cpp,tests/startup_shader_cache_key_check.pyandtests/startup_compute_request_offline_check.pyare recomputed at 31/31cs. The revision-28 values are kept.docs/startup-runtime.mdgains a "Revision 31" paragraph.Validation
Windows, MSVC, dev preset, full build, head
3117f8ba8.Result: all selected tests passed.
This filter includes
startup_gfx2hlsl_compute_warpandstartup_gfx2hlsl_compute_s-min-inclusive_warp, which theprpreset filter does not select.Known limits
X2W_NATIVE_SHADERS_ONLY=1, gfx2hlsl compute manifests are not loaded, so the fix changes translated runs only (JohnConnorNPC's note on shader: clear gfx2hlsl scalar min/max SCC on ties #3435).pending_keys.