docs(debt): measure image_get_resinfo level component on 2D MSAA T#s #18467
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18467"
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 brumskysb on 2026-11-11T17:12:49Z.
What
Measures two gap clauses of the
image_get_resinfothrough DIM 1D on a cube, 2D-array or 3D T# entry ofdocs/dev/debt/shader.md. The first commit (d76f600d4c) closes "the level component for 2, 4 or 8 fragments is not measured". The second commit (7dbd46e5c1) closes the clause the first one left, "wave64 on a 2D MSAA-array T# is not measured", and adds DIM 1D and DIM 2D through a 2D MSAA-array T#, which the entry did not claim either way. The hardware oracle builds the T# by hand andimage_get_resinfonever reads the surface, so a multi-fragment TYPE 14/15 descriptor can be queried even though the Vulkan path in #7550 could not bind one.Measured on gfx1036 (driver 31.0.22044.1) with the hardware oracle. Format 20 (
32_UINT), 1024x64 and 256x32, BASE_LEVEL 0. The fragment count is encoded the way the project decodes it: LAST_LEVEL = MAX_MIP = log2(fragments), fromGuestTextureResource.cpp(samples = 1u << lastLevel, MAX_MIP in dword5 7:4). Every case ran twice, each time in a fresh process. The rig-side output was deleted and verified absent before every dispatch. Type, LAST_LEVEL, MAX_MIP, DEPTH, BASE_ARRAY, DIM and size were decoded again from the body text stored in each dump.v_mov_b32 v10, 0x2areturned 0x2a on 64/64 lanes. This entry's published gfx1036 rule (#16554) reproduces: a 1D-array T# 1,024 wide with 4 slices gives (1024, 0, 0, 1) under DIM 1D and (1024, 4, 0, 1) under DIM 1D_ARRAY. Same rig and driver as #16554, so this is a re-run, not an independent reproduction. A one-fragment TYPE 14 returns (1024, 64, 0, 1) under DIM 2D_MSAA, 2D and 1D. That is the family-level counterpart of thuanquang's one-fragment gfx1031 result, not a reproduction of his numbers.0x9003_0facvs0xe003_0fac). So a fourth component of 1 is not a dead field.v_mbcntlane id proves the wave64 legs ran as one 64-lane wave.This is an observable, not a mechanism claim: the run does not establish why the hardware reports one level.
Code reading, kept as "it throws" (not a measurement): at
f57c971559,ResourceMaterializer.cppinvalidImageReasonreturnsPoisonReason::Multisampledfor TYPE 14/15. The table path poisons a Dim2DMsaa/Dim2DMsaaArray mode, andTryRuntimeImageModerejects it as Multisampled, whichRuntimeImageModethrows. The one TYPE 14 -> Dim2D rewrite needsmultisamplePlaneRead(a sampled DIM 2D read), so a DIM 1D query is not rewritten. The new sentence therefore opens "separate from the implementation".No code changes in this PR.
Evidence (runners, fixture, all dumps, a SHA-256 ledger in
README.md, and both claims worksheets; the second commit's files are prefixedw64-): https://gist.github.com/brumskysb/a60b17dc3640f790aa3e00280661affb. The revision-pinned raw-URL SHA-256 of everyw64-file and ofREADME.mdequal the local files, for examplew64-step2_dump.json(928843ade58dbed7…),w64-step3_dump.json(dc8a360da0ef2252…) andw64-step4_windows.jsonl(a41c78f9e32a3139…).Tested
gfx1036, driver 31.0.22044.1, Windows 11. Harness: stocktools/hw-oraclerunner, 64 rows, 4,096-B extra blob as the T# base.w64-step5_coverage.pyfor TYPE 15): 0 cases with lanes disagreeing or passes differing.f57c971559.git merge-treeof the head withmain145e689adais clean, changes only this entry's line, and the merged entry is byte-identical to the head's.mainhas not touched this entry since the branch was cut.The replaced region of the whole PR against its base
f57c971559, copied fromcheck_entry_edit.py's REPLACED REGION:CHANGE SUMMARY of the whole PR (from the gate):
The second commit alone, against
d76f600d4c:before (base
f57c971559):... On a 2D MSAA or 2D MSAA-array T# it throws: gfx1031 was measured only with one fragment, which the driver cannot bind, and the level component for 2, 4 or 8 fragments is not measured.after:
... On a 2D MSAA or 2D MSAA-array T# it throws: gfx1031 was measured only with one fragment, which the driver cannot bind. Measured on RDNA2 (gfx1036, driver 31.0.22044.1) with the hardware oracle, separate from the implementation, the level component is 1: a 2D MSAA T# with 2, 4, 8 or 16 fragments returns (width, height, 0, 1) under DIM 1D, 2D and 2D_MSAA at wave32 and wave64, and a 2D MSAA-array T# with 1 to 16 fragments and 1 or 4 slices returns (width, height, slices, 1) under DIM 2D_MSAA_ARRAY and (width, height, 0, 1) under DIM 1D, 2D and 2D_MSAA at wave32 and wave64; a BASE_ARRAY other than 0 is not measured.Removed phrases declared to the gate for the whole PR:
bind, and,forandor 8 fragments; for the second commit:wave32; wave64 onand2D MSAA-array T#. "2, 4", "8 fragments", "wave32", "wave64", "2D MSAA-array T#" and "is not measured" are re-added inside the new sentence, and "is not measured" now names a BASE_ARRAY other than 0, which every TYPE 15 body in both commits leaves at 0. "It throws", thuanquang's gfx1031 record, "not the PS5's gfx1013" and the 1D-array sentence are untouched.Notes
debt-length: the entry grows from 922 to 1,358 characters, over the 1,000 guideline. Nothing measured was trimmed to fit; a compression is its own PR.shader.md(0 API errors).Checklist
main; no other open PR implements the same functions (basef57c971559; the merge with currentmainis clean and changes only this entry, see Tested)NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attached to this PR)