shader: name the descriptor dword read as data when it is refused #122

Manually merged
github merged 2 commits from github-bot/gh-122 into main 2026-11-26 18:09:27 +00:00 AGit
Owner

@⁠Olima34 on GitHub · 2026-11-26 17:30 UTC · original
Olima34:fix/shader-descriptor-data-causes → main · +148 −3 · 5 files · 2 commits · merged 2026-11-26 18:09 UTC

For the #4 shape "descriptor address or format read as data" (3 refusals). This is a refusal split (diagnostic), not a lowering. The native Metal host serves shaders no view addresses or formats, so there is nothing to give these reads yet.

What. descriptor_data already serves the dwords it can rebuild from getDimensions: dword 2 of a buffer, dwords 1 to 4 of an image. The other dwords now name what is read, after the old text:

  • a buffer's base address (dword 0);
  • a buffer's dword 1 (address high bits, stride, swizzle);
  • a buffer's dword 3 (format and type);
  • an image's base address (dword 0);
  • an image's dwords 5 to 7;
  • a dword outside the descriptor.

Tests.

  • descriptor_dwords_read_as_data_say_which (gfx_refusal): dwords 0, 1 and 3 of a table buffer. It fails on main.
  • pipeline::pieces_tests::the_host_refuses_a_descriptor_dword_read_as_data_naming_it (victory-gpu): the same reads on the native host's path. The container is built from the title's compute pieces and translated with the host's options. It checks that the refusal string ends with the dword's cause. It fails on main.

In the #110 Series S log: 70f69495e9c6a880 @⁠0x110, 82c8e059e9cd5af7 @⁠0x10ec, 94125f997b9250fb @⁠0x11c. If they read a buffer's dword 0, the page-table path could serve the address; the next report will tell.

victory-shader (242) and victory-gpu (arm64) tests, Windows clippy and cargo xtask policy pass.

**@⁠Olima34** on GitHub · 2026-11-26 17:30 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/122) `Olima34:fix/shader-descriptor-data-causes` → `main` · +148 −3 · 5 files · 2 commits · merged 2026-11-26 18:09 UTC For the #4 shape "descriptor address or format read as data" (3 refusals). **This is a refusal split (diagnostic), not a lowering.** The native Metal host serves shaders no view addresses or formats, so there is nothing to give these reads yet. **What.** `descriptor_data` already serves the dwords it can rebuild from `getDimensions`: dword 2 of a buffer, dwords 1 to 4 of an image. The other dwords now name what is read, after the old text: - a buffer's base address (dword 0); - a buffer's dword 1 (address high bits, stride, swizzle); - a buffer's dword 3 (format and type); - an image's base address (dword 0); - an image's dwords 5 to 7; - a dword outside the descriptor. **Tests.** - `descriptor_dwords_read_as_data_say_which` (gfx_refusal): dwords 0, 1 and 3 of a table buffer. It fails on main. - `pipeline::pieces_tests::the_host_refuses_a_descriptor_dword_read_as_data_naming_it` (victory-gpu): the same reads on the native host's path. The container is built from the title's compute pieces and translated with the host's options. It checks that the refusal string ends with the dword's cause. It fails on main. In the #110 Series S log: 70f69495e9c6a880 @⁠0x110, 82c8e059e9cd5af7 @⁠0x10ec, 94125f997b9250fb @⁠0x11c. If they read a buffer's dword 0, the page-table path could serve the address; the next report will tell. victory-shader (242) and victory-gpu (arm64) tests, Windows clippy and `cargo xtask policy` pass.
"a descriptor's address or format read as data" did not say which dword. It now names a buffer's base address (dword 0), its dword 1 (address high bits, stride, swizzle) or dword 3 (format and type), an image's base address or dwords 5 to 7, or a dword outside the descriptor. Nothing is lowered: the native host serves no view addresses or formats to shaders.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:32:21 +00:00
github-bot force-pushed github-bot/gh-122 from 5b6be66f9b to 458cac02e6 2026-11-26 17:43:06 +00:00 Compare
valu_tests matched the old generic refusal text exactly; it now names the dword (the base address).
github manually merged commit 86fbe896fc into main 2026-11-26 18:09:27 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 18:09 UTC · original

Merged, thanks. I kept one copy of the pieces helper you and #121 both added (f57d5ad).

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 18:09 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/122#issuecomment-7200128029) Merged, thanks. I kept one copy of the pieces helper you and #121 both added (f57d5ad).
This discussion has been locked. Commenting is limited to contributors.
No description provided.