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

Merged
Olima34 merged 2 commits from upstream-pr/122 into main 2026-11-26 18:09:23 +00:00
Olima34 commented 2026-11-26 17:30:48 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-26T17:30:48Z.


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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6632000538 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/122). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-26T17:30:48Z. --- 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.
LakshanSivakumar commented 2026-11-26 18:09:55 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T18:09:55Z.


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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7200128029 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/122#issuecomment-7200128029). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T18:09:55Z. --- Merged, thanks. I kept one copy of the pieces helper you and #121 both added (f57d5ad).
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
LakshanSivakumar/Native-Victory-macOS!122
No description provided.