Native host: shaders that need the view-address table (t1) are refused; the D3D12 path binds it #306
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T10:49:54Z.
The native host refuses every shader whose translation needs the view-address table (
native/shaders.rs,unsupported(): "needs view addresses or write marks"). That table is root SRVt1inMEMORY_SPACE("View addresses" inemit/mod.rs), with four dwords per heap index:The D3D12 path already builds and binds it:
descriptor/host.rsview_addresses()/note_address()/write_address, bound indraw.rs. The native host has nothing equivalent.What it costs. In a boot-time dump of refused compute (M5 Pro, Series S, main + #304), 7 compute shaders are refused for this alone. All 7 need view addresses, and none needs write marks.
0c748826,48828947,550d92da,a2d0209f,c3873dc0,fcd8ef10) read a buffer view's title address as a number, then walk title memory at computed addresses through the page table. That shape looks like BVH traversal.00bc6a9breads a heap view's address or a texture view's sizes.Plan. Follow the pattern of #264's per-heap stride table:
NativeHost::mirrorwith the existingwrite_address;t1;view_addressescomes out ofunsupported().It'll come with a Metal test: a compute reads a heap view's address, then reads memory at it. It costs 16 bytes per heap index, and we'll report the size for 16 GB Macs.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T10:49:56Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T10:50:07Z.
Claimed by @Olima34. Open a draft pull request with
Refs #306in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T16:21:17Z.
/release
Done: #311 is merged (the view-address table, with the zero-field refusal and its tests). This can be closed.