Repository navigation
Shaders: a descriptor read only as data takes the kind of its entry's… - #1130
felicienradio wants to merge 1 commit into
Conversation
… use
The console compiler reads sizes from a descriptor's bits (a texture's
height and base level, say) in a loop of its own, apart from the loop
that samples through the same heap entry. That load's dwords were never
used as a resource, so its kind was unknown and the program was refused
("a descriptor read only as data"). Another load of the same entry (the
same parameter and offset, and the same computed term or the first lane
of the same VGPR in a waterfall pass) that is used as a resource now
gives the kind, and the fields are rebuilt from the host view as for any
descriptor read as data.
Translation census over the title's 26,503 containers, on Marvisak#439's tree:
22,656 translated instead of 21,909 (747 more, none lost); the refusal
falls from 819 programs to 53, and 19 of the others reach a later one.
Of the shaders a run on an RTX 3060 refused, 172 more translate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SDn5GupcrERtCYPyoztdtG
|
Independent check on Linux (RX 9070 XT, RADV/Mesa 26.3.1, dxil-spirv master, spirv-val 1.3). Your head 98f073d applied alone onto origin/main ffe310e, then the offline four-stage check over the 751-program world dump plus the 52-program BVH capture (768 programs after 35 duplicate containers are skipped):
All 4 clear and no other class grows except one: a pixel program that main refused with "a descriptor read only as data" now reaches "a scalar memory read as data" (pixel 3 -> 4), so net +3 here. The 10 spirv-val failures are the same pre-existing ones; the RADV pipeline stage adds nothing. For comparison, my own attempt at the same 4 (raw buffer view, commit 61085ee in our tree, not pushed) also clears them, with one landing on "a descriptor's address or format read as data" (669 translated, like yours). Yours and #1067 are the better fixes; I did not open a competing PR. Not tested: the full archive (only these dumps), in-game, native Windows. |
|
#1067 and #1130 both remove the refusal "a descriptor read only as data", in different ways, and neither mentions the other:
Tested on Windows 11, Rust 1.98.1 MSVC, AMD Radeon RX 6900 XT, both on
They conflict in That order would also keep #1067's 2D guess for heap entries that #1130 can't name, instead of using it first. |
|
Reviewed
Matching |
Conflicts kept both sides: the split execute/submit (breadcrumbs cleared at the start of submit), the debug pixel shader and the breadcrumb stage notes, the view-heap-cap and wave keys of the shader cache with the breadcrumb key, and the single-exit block with the breadcrumb loops. Tests added by Marvisak#1084/Marvisak#1130/Marvisak#1269 initialise Parts with crumbs: None. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
In-game data for Base tree:
I haven't run a tree with @fuzeofficlal's offset correction for No game data attached. AI-assisted (Claude Code). |
Offline measurement on a retail dump, and the shader tests on AdaResult: +240 programs over Offline. I merged head 98f073d onto
All 240 are among the programs that #1402 gains (its "a descriptor read only as data" part comes from #1067). Note: 72 more programs that fail with "a descriptor read only as data" on Tests: with the same merge, No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
#1067 vs #1130 head-to-head, full archive, bare
AI-assisted (Claude); counts only, no game data. |
Stacked on #1402: no change, and the validator errors are goneResult: 0 gained, 0 lost, and no failure reason changes on top of #1402. On The 72 validator errors I reported on The merge conflicts in 4 hunks of Method: |
|
Automated triage for the maintainers. Closing because this change is already in A descriptor read only as data takes its kind from another load of the same entry: exactly what main's descriptor_data does (75677cb, same parameter/offset/first-lane rule). If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
… use
The console compiler reads sizes from a descriptor's bits (a texture's height and base level, say) in a loop of its own, apart from the loop that samples through the same heap entry. That load's dwords were never used as a resource, so its kind was unknown and the program was refused ("a descriptor read only as data"). Another load of the same entry (the same parameter and offset, and the same computed term or the first lane of the same VGPR in a waterfall pass) that is used as a resource now gives the kind, and the fields are rebuilt from the host view as for any descriptor read as data.
Translation census over the title's 26,503 containers, on #439's tree: 22,656 translated instead of 21,909 (747 more, none lost); the refusal falls from 819 programs to 53, and 19 of the others reach a later one. Of the shaders a run on an RTX 3060 refused, 172 more translate.