Translator: failures are not cached (re-run on every start); array-slice LOD query on the rx9070xt branch #218
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 Belobug/VIctory-Belobug-AMD. Originally posted by j-fuxa on 2026-11-26T01:41:38Z.
Two small, separate items.
1. Translation failures are not stored
shader_cache::cachedreturns the translator's error without writing anything, and a unit test pins it ("Failures are not stored",main380,rx9070xt413). A program that does not translate is therefore translated, and fails, again on every start (and in everyvictory shadersrun, sinceprecompilereturns the error unstored). In our runs about 114 programs re-failed each start, roughly 100 s of worker time. On your side #48 lists 35 compute programs that do not translate every run ("an address in an SGPR that is no root parameter"), and #121 has a table of refusal reasons.Suggested: store a small failure record with the reason text under the same key (translator hash, the switches in
shader_cache::build, host settings) and return it as an error without translating. That key already says when the record would be stale. Keep out of it errors that are not deterministic refusals (I/O, timeouts).2.
calculateLODon a texture array (rx9070xtonly)On
rx9070xt@81ebb7b,image_get_lod(op 81,emit/lower.rs11096-11111) passescs[0..3]tocalculateLOD. For a 2D array texturecs[2]is the array slice, but the validator wants coordinates beyond the size's dimensions to be undef ("out of bound coord must be undef").mainhas the fix: commitfec4d026,lod_dims(12941-12951) used at 10933-10946, with a test at 13072. In our translator the unfixed form failed validation for three G-buffer alpha-clip pixel programs.We have not run the
rx9070xtbuild.victory translate --validate --listshould show whether such programs fail there.