mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #329] [CLOSED] xdxr_bvh: handle D3D12 inactive primitives and NaN bounds #380
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#380
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/329
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/10063📝 Commits (1)
c90d09bxdxr_bvh: handle D3D12 inactive primitives and NaN bounds📊 Changes
2 files changed (+181 additions, -34 deletions)
View changed files
📝
tests/test_xdxr_bvh.py(+101 -0)📝
tools/xdxr_bvh.py(+80 -34)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Summary
Clean rebase onto
ProjectLeonida/Leonidamain(de4c373) of formerly approved PR#7817(closed in the bulk PR cleanup sweep), plus@Envyre's non-blocking docstring note on_tri_inactive:runtime/src/xdxr_build.compfor static builds) while preserving originalprimitiveIDs.order.index()lookups with closed-form slot remap formulas (TRI0/TRI1), preventing mis-remapping on degenerate/duplicated vertices.not all(lo[c] <= hi[c] ...)in_box_empty()and_box_test()so NaN bounds are treated as empty / ray misses instead of leaking intotnear/tfar.validate().Coordination & Prior Verification
#9677: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117121412#7817(previously APPROVED by@leoleahy, verified by@azterixx,@Envyre,@HansBullet,@airp1ane, and@wildheathenon real console structures, and flagged ready to merge in#8919triage).Testing
Environment: Windows 11 x64, Python 3.12.10, CPU-only (rebased on
de4c373).python -I tests/test_xdxr_bvh.py-> 53/53 OKpython -m compileall -q tools/xdxr_bvh.py tests/test_xdxr_bvh.py-> exit 0python -I scripts/check_no_game_data.py tools/xdxr_bvh.py tests/test_xdxr_bvh.py-> exit 0git diff --check-> clean🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.