Repository navigation
Conversation
Leyukaka
left a comment
There was a problem hiding this comment.
The profile key and stored-descriptor comparison both discard bytes even when the descriptor layout is unrecognized. Consider two 0x300-byte descriptors with an unrecognized marker at +0x11c. They differ only at +0x1b8 (0x40 versus 0x80), with the same shaders and state blocks. Both select the same profile and pass its descriptor check. Please preserve the unclassified bytes or reject that layout, and add a negative test showing that a profile generated for one cannot authorize the other.
The shared-base fixture in #3730 shifts the values at +0x188, +0x1c8 and +0x2e8 together. Those bytes still participate verbatim in this profile key, so that relocation can prevent lookup of a matching profile. Please reconcile the two changes and test both a common shift (same profile key) and a change to the spacing (different key).
|
Thanks. Both points are addressed in Layout gate and unclassified bytes. #3730 second base. The 32-bit values at The two survey captures Tests:
|
The slot 57 profile name was derived from the descriptor produced by
normalize_mesh57_descriptor, which keeps the relative section and shaderrecord offsets because the stream key uses them. Those offsets change with the
process allocation, so a profile authored from one run never matched the next
one: the 180 s run reported
profile_absent 10 726andready 0, and twocaptured variants with identical state blocks still produced different names.
This adds
stable_mesh57_profile_descriptor, which clears the pointer andrelocation words of the 0x300-byte descriptor while keeping sizes, formats and
scalar state. The stable form names and finds
<variant>.mesh57-state, andthe stored descriptor is compared after the same normalization; the stream-key
normalization and its test are unchanged. The Python authoring tools write and
validate the stable name, and
mesh57_pixel_entry.pycompares the descriptorin the stable form.
Validation (Windows, Release; AMD Radeon RX 9060 XT for the hardware run):
ctest --preset release --no-tests=error -R '^(native_fixed_mesh57(_mrt)?_warp|startup_indirect_mesh_create_result_warp)$'— 3/3 pass; the fixture prints
mesh57 profile key: relocations collapse, metadata/scalar differ, idempotent.4d90315b3d7500e2andb92ce68218bb5610now both derive9482ea4411e1e03f; the profile is 15 344 bytes and passesmesh57_profile.py --check.X2W_NATIVE_SHADERSnow opens the profile and reacheslowering_reached 1; the remaining refusal is the separatemesh heap descriptor addressform at+0x614.mesh57_profile_draft_check.py,startup_mesh57_depth_only_check.py,docs_links_check.pyandstartup_tools_lint_check.py tools/startuppass.Refs #3497
Refs #3724