Device methods 0x1c8 / 0x218: what their descriptions hold (pipelines from bare code blocks + metadata) #1151

Open
opened 2026-11-26 03:58:28 +00:00 by github-bot · 2 comments
Owner

@⁠Dathinel on GitHub · 2026-11-25 21:45 UTC · original

What. Device methods 0x1c8 and 0x218 (unknown_pipeline in crates/victory-gpu/src/device.rs) are logged as "what the descriptions hold is not known". I dumped what each address-like word of the description points at for the first four calls of each, on one boot. This is what they look like. Layout only; no title data is attached.

Machine / tree. RTX 3050 Laptop 4 GB, Ryzen 7 7435HS, --console series-s; main 9c184b3 + #1081 + #798 + a 10-line logging change (below). Release build.

Counts. In a 345 s run to the first gameplay scene: 0x1c8 passes 16,384 calls and 0x218 passes 2,048, almost all within about 1.3 s, a few seconds after start. All fail (E_NOTIMPL, out null), as today.

0x1c8: 13 words used (104 bytes), the rest zero

word observed
0 a layer object (its first word is one of our vtables; its fields look like a root signature's)
1, 2 address + size (0x17c, 0x184, 0x18c, once 0x200): a fixed-layout state block
3, 4 address + size (0x50, 0x78, 0x98, 0xbc): holds ASCII semantic names (POSITION, COLOR), so the input layout
5, 6 address + size (0x140 to 0x4a40, multiples of 0x40, in a 0x9_48xx_xxxx range aligned to 0x100; 0/0 in one call): console GPU machine code, not a container: after a short prefix (about nine dwords, which I have not decoded) the dwords have the look of GFX10 instructions (0xBFA0xxxx, 0xBE8xxxxx, 0xF4xxxxxx, 0xFAxxxxxx); I did not run them through the decoder
7, 8 address + size (0x70 to 0x5b0): a table of small records for that code (resource/slot records by the look of it)
9, 10 second code block, same form (0/0 in one call)
11, 12 its record table

So it reads as "graphics pipeline from two stages given as bare code + metadata, plus state and input layout". Which stage is which I have not determined.

0x218: 12 words (96 bytes)

word observed
0 the same kind of layer object, or 0
1, 2 address + size, always 0x1c
3, 4 address + size, always 0x14
5, 6 one code block, same form as above (0x180 to 0x1f9c0)
7, 8 its record table (0x118 to 0x1798)
9, 10 two addresses of records of this same shape (each starts with two more such addresses and a 64-bit word): tree or list links, so the description sits inside a keyed container
11 a 64-bit word that looks like a hash

One stage only, so possibly compute, or one stage of a pipeline keyed by hash. Not determined.

Not known / not tested.

  • Whether the title makes these pipelines again through the ordinary creation methods after the failure, or really draws without them. The burst right after start looks like a precompiled set being loaded, but I have no evidence either way.
  • The meaning of the fields inside the state blocks and the record tables.
  • Whether the code blocks' prefix matches the header the translator already reads from containers. If it does, the existing translator could take these with a small adapter; I have not tried.
  • One boot, one machine, Series S profile.

The logging change (inside the existing if calls <= 4 || calls.is_power_of_two() block, reusing its words closure):

let parts: Vec<(usize, Vec<u64>)> = description
    .iter()
    .filter(|_| calls <= 4)
    .flat_map(|w| w.iter().copied().enumerate().skip(1).take(11))
    .filter(|&(_, at)| at > 0x1_0000)
    .filter_map(|(i, at)| Some((i, words(at as usize)?)))
    .collect();
// ... and `parts = format_args!("{parts:x?}")` in the warn!

I can send it as a PR if it is useful, or dump further fields (the record tables in full, the prefix of the code blocks) if you say which would help.

AI-assisted (Claude Code); run and read on the machine above.

**@⁠Dathinel** on GitHub · 2026-11-25 21:45 UTC · [original](https://github.com/fxceless/victory-fork/issues/1151) **What.** Device methods `0x1c8` and `0x218` (`unknown_pipeline` in `crates/victory-gpu/src/device.rs`) are logged as "what the descriptions hold is not known". I dumped what each address-like word of the description points at for the first four calls of each, on one boot. This is what they look like. Layout only; no title data is attached. **Machine / tree.** RTX 3050 Laptop 4 GB, Ryzen 7 7435HS, `--console series-s`; `main` 9c184b3 + #1081 + #798 + a 10-line logging change (below). Release build. **Counts.** In a 345 s run to the first gameplay scene: `0x1c8` passes 16,384 calls and `0x218` passes 2,048, almost all within about 1.3 s, a few seconds after start. All fail (`E_NOTIMPL`, `out` null), as today. **`0x1c8`: 13 words used (104 bytes), the rest zero** | word | observed | |---|---| | 0 | a layer object (its first word is one of our vtables; its fields look like a root signature's) | | 1, 2 | address + size (0x17c, 0x184, 0x18c, once 0x200): a fixed-layout state block | | 3, 4 | address + size (0x50, 0x78, 0x98, 0xbc): holds ASCII semantic names (`POSITION`, `COLOR`), so the input layout | | 5, 6 | address + size (0x140 to 0x4a40, multiples of 0x40, in a 0x9_48xx_xxxx range aligned to 0x100; 0/0 in one call): **console GPU machine code**, not a container: after a short prefix (about nine dwords, which I have not decoded) the dwords have the look of GFX10 instructions (`0xBFA0xxxx`, `0xBE8xxxxx`, `0xF4xxxxxx`, `0xFAxxxxxx`); I did not run them through the decoder | | 7, 8 | address + size (0x70 to 0x5b0): a table of small records for that code (resource/slot records by the look of it) | | 9, 10 | second code block, same form (0/0 in one call) | | 11, 12 | its record table | So it reads as "graphics pipeline from two stages given as bare code + metadata, plus state and input layout". Which stage is which I have not determined. **`0x218`: 12 words (96 bytes)** | word | observed | |---|---| | 0 | the same kind of layer object, or 0 | | 1, 2 | address + size, always 0x1c | | 3, 4 | address + size, always 0x14 | | 5, 6 | one code block, same form as above (0x180 to 0x1f9c0) | | 7, 8 | its record table (0x118 to 0x1798) | | 9, 10 | two addresses of records of this same shape (each starts with two more such addresses and a 64-bit word): tree or list links, so the description sits inside a keyed container | | 11 | a 64-bit word that looks like a hash | One stage only, so possibly compute, or one stage of a pipeline keyed by hash. Not determined. **Not known / not tested.** - Whether the title makes these pipelines again through the ordinary creation methods after the failure, or really draws without them. The burst right after start looks like a precompiled set being loaded, but I have no evidence either way. - The meaning of the fields inside the state blocks and the record tables. - Whether the code blocks' prefix matches the header the translator already reads from containers. If it does, the existing translator could take these with a small adapter; I have not tried. - One boot, one machine, Series S profile. **The logging change** (inside the existing `if calls <= 4 || calls.is_power_of_two()` block, reusing its `words` closure): ```rust let parts: Vec<(usize, Vec<u64>)> = description .iter() .filter(|_| calls <= 4) .flat_map(|w| w.iter().copied().enumerate().skip(1).take(11)) .filter(|&(_, at)| at > 0x1_0000) .filter_map(|(i, at)| Some((i, words(at as usize)?))) .collect(); // ... and `parts = format_args!("{parts:x?}")` in the warn! ``` I can send it as a PR if it is useful, or dump further fields (the record tables in full, the prefix of the code blocks) if you say which would help. AI-assisted (Claude Code); run and read on the machine above.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:28 +00:00
Author
Owner

@⁠tippythetaidum on GitHub · 2026-11-25 21:51 UTC · original

A second machine and the other profile give the same picture. RTX 5080 16 GB, Series X profile, a release build of a tree on 0b0074e with the existing log line unchanged (it reads 16 words of each description):

  • Counts: the highest calls= logged are 16,384 for 0x1c8 and 2,048 for 0x218, the same as yours. All of them fall within 0.7 s (21:32:01.76 to 21:32:02.48), about 1 s after the log's first line, before the first frame.
  • 0x1c8: 13 non-zero words in each of the first four descriptions, matching your 104 bytes.
  • 0x218: the first description reads [obj, A, 0x1c, A+0x1c, 0x14, B, 0x180, A+0x30, 0x118, C, D, d7e7b1a22f0c3802, …]. Those are your words 0-11, with words 1/3/7 inside one small block (0x1c and 0x14 apart). Since our log reads 16 words, it also shows words 12-15 beginning another record of the same shape: obj, A, 0x1c, A+0x148, with the same layer object and the same 0x1c block. So the 96-byte descriptions sit back to back in memory, which fits your "inside a keyed container" reading.

So the burst is profile-independent and happens once, at the same moment, on both machines. I can't say from this alone whether the title then makes the same pipelines the ordinary way. #113's corrected title says it falls back, and I haven't seen anything missing that I could tie to these.

AI-assisted (Claude Code, Claude Opus 5.5): log reading and this text; values are addresses and sizes only.

**@⁠tippythetaidum** on GitHub · 2026-11-25 21:51 UTC · [original](https://github.com/fxceless/victory-fork/issues/1151#issuecomment-7175619175) A second machine and the other profile give the same picture. RTX 5080 16 GB, **Series X** profile, a release build of a tree on `0b0074e` with the existing log line unchanged (it reads 16 words of each description): - **Counts:** the highest `calls=` logged are 16,384 for `0x1c8` and 2,048 for `0x218`, the same as yours. All of them fall within 0.7 s (21:32:01.76 to 21:32:02.48), about 1 s after the log's first line, before the first frame. - **`0x1c8`:** 13 non-zero words in each of the first four descriptions, matching your 104 bytes. - **`0x218`:** the first description reads `[obj, A, 0x1c, A+0x1c, 0x14, B, 0x180, A+0x30, 0x118, C, D, d7e7b1a22f0c3802, …]`. Those are your words 0-11, with words 1/3/7 inside one small block (0x1c and 0x14 apart). Since our log reads 16 words, it also shows **words 12-15 beginning another record of the same shape**: `obj, A, 0x1c, A+0x148`, with the same layer object and the same 0x1c block. So the 96-byte descriptions sit back to back in memory, which fits your "inside a keyed container" reading. So the burst is profile-independent and happens once, at the same moment, on both machines. I can't say from this alone whether the title then makes the same pipelines the ordinary way. #113's corrected title says it falls back, and I haven't seen anything missing that I could tie to these. AI-assisted (Claude Code, Claude Opus 5.5): log reading and this text; values are addresses and sizes only.
Author
Owner

@⁠Dathinel on GitHub · 2026-11-25 22:00 UTC · original

For the open compute-fallback question, the measured follow-up in #113 goes further than the corrected title: on that RTX 5080 run, 2,689 failed 0x218 calls matched 2,689 ordinary compute creations by count across the same 26 root signatures. This is aggregate evidence, not a per-code identity match. Their experimental parts adapter translated 228/2,689, compared with 2,720/2,734 for ordinary compute containers. Those denominators differ. This makes preserving the ordinary fallback important; the compute counts do not settle 0x1c8 graphics.

On main 9c184b3 I ran the 11 synthetic native-parser tests successfully. In particular, finds_mesh_and_compute_programs supplies identical code bytes in two different stage records and recovers different stages. The instruction prefix on its own therefore cannot establish the stage with the current parser. A remaining actionable measurement would be the wall time attributable to fallback creation on the local profile before investing in a second input path. AI-assisted.

**@⁠Dathinel** on GitHub · 2026-11-25 22:00 UTC · [original](https://github.com/fxceless/victory-fork/issues/1151#issuecomment-7175813195) For the open compute-fallback question, [the measured follow-up in #113](https://git.gtahub.st/github/fxceless--victory-fork/issues/113) goes further than the corrected title: on that RTX 5080 run, 2,689 failed 0x218 calls matched 2,689 ordinary compute creations by count across the same 26 root signatures. This is aggregate evidence, not a per-code identity match. Their experimental parts adapter translated 228/2,689, compared with 2,720/2,734 for ordinary compute containers. Those denominators differ. This makes preserving the ordinary fallback important; the compute counts do not settle 0x1c8 graphics. On main 9c184b3 I ran the 11 synthetic native-parser tests successfully. In particular, `finds_mesh_and_compute_programs` supplies identical code bytes in two different stage records and recovers different stages. The instruction prefix on its own therefore cannot establish the stage with the current parser. A remaining actionable measurement would be the wall time attributable to fallback creation on the local profile before investing in a second input path. AI-assisted.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#1151
No description provided.