G-buffer shards: a wave64 mesh program's v_readfirstlane reads each host wave's first lane #517
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 alexballvideos-netizen on 2026-11-27T23:47:09Z.
Split out of #258 (claimed by @Tarraga there) so the fix below can be booked on its own.
What: with the world drawing (preview
b3c1a1b0,VICTORY_GUESS_GRAPHICS=1), the G-buffer has long fans and sheets on every kind of mesh geometry: characters, cars, buildings. Some triangles are right, others spread from a point. They're already there before lighting.Cause: the common G-buffer mesh programs (
6eedbc0771df10ab,35d5616385a0a8f8,08ebaafa2f409986and others) are wave64 groups whose threads are console lanes, so each 32-lane host wave is half a console wave. Theirv_readfirstlane_b32(7 to 10 per program, some of values that differ per lane: per-meshlet counts) lowered towaveReadLaneFirst, each host wave's own first lane. Lanes 32 to 63 then read lane 32's value, not lane 0's, and build vertices and primitives from the wrong meshlet.Evidence (M3 Max 36 GB, Series X): with the first-lane read made the console wave's, G-buffer dumps from 140 to 290 s show no fans, where every earlier run had them. Things ruled out on the way are in https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/258#issuecomment-7230018678.
PR to follow.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by alexballvideos-netizen on 2026-11-27T23:47:16Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T23:47:26Z.
Claimed by @alexballvideos-netizen. Open a draft pull request with
Refs #517in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T00:36:09Z.
Thank you for this. It is fixed on main by #518. I have not checked every case from this report in the game myself, so please retest on main
a6a58361and reopen this if you still see it. Closing as fixed.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by alexballvideos-netizen on 2026-11-28T00:53:53Z.
Retested on
main226645f9, which includesa6a58361and #518. M3 Max 36 GB, Series X, headless,VICTORY_DEPTH_TWINS=0, with the base-colour target dumped every 25 s from 140 to 294 s. All 6 dumps are clean: characters in the street, a car interior and a house interior, with no fans or sheets. There were no GPU time-outs and the run went the full 320 s. It stays closed.