d3d12_xs: occlusion query results always zero — objects incorrectly culled #111
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 omonkeyz/xbox-emulator. Originally posted by Trwthh on 2026-11-22T10:18:53Z.
Bug
All sampled GPU occlusion query results return 0, causing the title's GPU occlusion culling to treat everything as invisible. This is documented in BLOCKERS.md (run 33) but not tracked as an issue.
Evidence (from run 33 diagnostics)
f89dddcf70078d07) reach clipping (CPrimitives 10-12 of 12)Suspects (per BLOCKERS.md)
Impact
High. This is why the Fortnite lobby 3D backdrop never draws — the scenery around the character is culled because every query says "not visible." The character and floor draw because they bypass occlusion culling. Run 27 fixed the nested occlusion query issue, but query results are still all zero.
Expected behaviour
Occlusion query boxes should produce nonzero PSInvocations when they overlap visible depth, so the title's culling lets far objects through.
Imported from omonkeyz/xbox-emulator. Originally posted by omonkeyz on 2026-11-22T14:05:27Z.
Notes from an offline check: the 'always zero' data is from run 33. In docs/BLOCKERS.md, run 35 has only 17% zero results and the backdrop draws, while runs 39-40 are about 97% zero with identical proxy-box diagnostics, so the scene may explain that. PSInvocations = 0 alone does not prove a bug, since depth-only query boxes with colour writes off can skip the PS. The occlusion counting (dbcount.rs) is checked exactly on hardware tests. Next step is a capture of the box PSO's depth/stencil state and sample mask in a lobby run. Leaving this open.