RequestSerializer: two incompatible version-21 layouts after #3988 #5132
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-13T12:20:20Z.
Failure
Audited main
a2a3a3a94de17a8ce72240ee9f22b33d87e87b1cretains two incompatible request-version-21 layouts after #3988. The original main075 writer emitted 21 without an F16 tail. The audited writer/reader still writes/max-accepts 21, but appendstarget.float16DenormPreserveand requires it atversion >= 21. The rebase comment describes that allocation.Independent CPU probes using copied public sources on Windows with MinGW-w64 GCC 15.2:
RequestSerializer: truncated data; all 24 current version-21 false/true requests round-trip.Main a2 has the identical serializer source; the probe counts above were measured on pinned main140, not rerun on a2. The standalone minimal reproduction below was independently compiled from original a2 public sources and produced the same exact exception/exit1.
Minimal reproduction
This 374-byte synthetic request was emitted independently by the unmodified main075 serializer. No game data is included.
Compile from the repository root:
Current result:
RequestSerializer: truncated data(exit 1). The historical valid request should deserialize with the absent F16 flag remaining false. Current version-21 requests contain one additional final bool; future layout versioning alone must not silently discard it.Scope and coordination
This is capture/replay compatibility using synthetic public-source requests. No title startup/rendering failure, GPU result, or full-build validation is claimed. The F16 shader semantics from #3988 are unchanged by the experiment. #4011 is its stacked comparison optimization; #5097 separately allocates 22 for
pixel.layerExported.Proposed solution
Focused fork commit 26a6cfd keeps writer21 and accepts exactly the two emitted version-21 tails after
vertexSubgroups: zero bytes means historical F16=false; one byte, 0 or 1, preserves the flag. Other lengths/values throw. Later versions retain a mandatory F16 tail. No competing version22 is allocated.The added regression covers four independently emitted original compute/pixel/vertex/mesh contexts, their eight false/true continuations, twelve malformed cases, canonical round-trips and cache identity. The exact focused CPU test fails on unmodified main a2 with
RequestSerializer: truncated dataand passes with the reader change. The commit is rebased on main0f. PR #5137 now implements this compatibility repair; we will validate and review that work instead of submitting a duplicate. Our full-build campaign was stopped when the overlapping PR appeared and is not claimed complete. The fork commit remains a CPU-validated proposal, with no game-impact claim.Both historical layouts have the same version, so a missing F16 byte necessarily denotes the original layout; there is no discriminator that could distinguish it from removal of a current request's final flag.
AI-assisted: yes.
Current-main coordination (2026-10-13)
Main
e152ba8includes #4114 and now writes/max-accepts version22 withTessellationConfiguration.patchesPerGroup. The historical version21 compatibility finding above remains scoped to its original pins. #5097's proposed layer22 allocation now overlaps canonical main22; the maintained coordination reply requests reassignment before our alpha rebase. The maintained #5137 validation reply now includes full-build and repeated synthetic/native evidence for the adapted, corrected stack on earlier main5aaa. No e152 runtime result is claimed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T12:34:35Z.
I opened PR #5137 for the compatibility fix. It accepts the original version-21 layout with no F16 tail as
float16DenormPreserve = false, preserves the one-byte version-21 form, and continues to round-trip the version-22 flag. The registeredrequest_serializertest covers the historical fixture and current false/true serialization. The PR depends on #5097 and preserves TideOPL’s implementation commit authorship.