Shader: compute programs read an image descriptor's dwords 5 to 7 as data (200 shaders, 85 dropped passes per world frame) #540
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-28T01:51:35Z.
On main, compute programs that read an image descriptor's dwords 5 to 7 as numbers are refused with "a descriptor's address or format read as data: an image's dwords 5 to 7". The descriptor is one the program also uses as an image, so it goes through
Lower::descriptor_data, which rebuilds dwords 1-4 from the host view'sgetDimensionsand leaves 5-7 without a value.Weight. In a census of 5 world frames (main
86cefd22plus 8 open PRs), it is the second-largest loss: 84.8 dropped compute passes per frame, 50 world programs, 200 containers of a 21,600-shader world corpus (plus 8 graphics containers not bound in those frames).Plan.
max_mip), dwords 6-7 compression and metadata bits and the metadata address.getDimensions, as dwords 1-4 already are), and keep a precise refusal for the ones it can't (the metadata address, compression state). Guesses marked in the code and indocs/native-host.md.Next to #457 (which leaves image dwords 5-7 refused on purpose), #407 (a buffer's stride or swizzle) and #386/#387 (buffer fields).
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:51:36Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T01:51:47Z.
Claimed by @Olima34. Open a draft pull request with
Refs #540in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by jamal-fv on 2026-11-28T21:30:19Z.
Heads-up: I opened #641 for the next-000367 census (image dwords 5–7 is the largest descriptor refusal there) and claimed it. Your claim on this issue has no PR yet; if you are actively writing one, say so and I will leave this class to you and pivot #641 to the next free reason. Otherwise I will implement the host-answerable dword-5 fields (
MAX_MIP/ array pitch fromgetDimensions) here under #641 and close this as duplicate when the PR lands.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by jamal-fv on 2026-11-28T21:51:28Z.
Partial landing under #641 / draft PR: dword 5 rebuilt; dwords 6–7 still refused. Happy to hand off or leave 6–7 to you.