mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1987] [MERGED] d3d12, test: track unbound T# refusal counts by reason and verify binding rules (RT-UNBOUND-TSHARP-REASONS) #1994
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#1994
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/1987
Author: @abnalstlll-byte
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:feat/rt-unbound-tsharp-reasons📝 Commits (2)
5e188a0d3d12, test: track unbound T# refusal counts by reason and verify binding rules (RT-UNBOUND-TSHARP-REASONS)a05c178d3d12, test: fix unbound_tsharp_tracker scope and verify binding rules (RT-UNBOUND-TSHARP-REASONS)📊 Changes
4 files changed (+545 additions, -21 deletions)
View changed files
📝
runtime/CMakeLists.txt(+8 -0)📝
runtime/shims/d3d12_com.h(+34 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+109 -21)➕
runtime/test/d3d12_unbound_tsharp_rules_test.cpp(+394 -0)📄 Description
Summary
Implements per-reason refusal tracking for console descriptor heap T# binding and provides synthetic unit tests verifying binding rules as requested on the maintainer roadmap.
Item claimed in #1608:
RT-UNBOUND-TSHARP-REASONS.Key Changes
runtime/shims/d3d12_vulkan_device.cpp:note_refused_tsharp: tracks both total distinct slots and per-reason distinct slots and total refusal counts (UnboundTsharpTracker). Logs per-reason distinct slot count when logging a refusal.ConsoleHeap: tracksrefused_reasonsand logs periodic summary inrefresh_console_heaps(console descriptor heap 0x... unbound T#s by reason: ...) mirroring title textures diagnostic reporting.bind_title_image: sets refusal reason"no texture at T# address"when!ownerinstead of leavingwhyunassigned.unbound_tsharp_stats(),reset_unbound_tsharp_stats(),note_refused_tsharp_for_test(),test_bind_title_image(), andresource_image_address().runtime/shims/d3d12_com.h:UnboundTsharpStats,UnboundTsharpReasonStats, and inspection helpers.enum class TitleImage.runtime/test/d3d12_unbound_tsharp_rules_test.cpp:"T# type or samples do not fit the texture")."T# names layers the texture lacks")."cube T# on fewer than six layers")."T# type or samples do not fit the texture").runtime/CMakeLists.txt:d3d12_unbound_tsharp_rules_test.Clean-Room & Verification
python -I scripts/check_no_game_data.py: passed (0 game data).python -I tests/test_docs_links.py: passed (16/16).python -I tests/test_docs_design_rows.py: passed (5/5).python -I tests/test_text_write_line_endings.py: passed (3/3).python -m compileall -q make_game.py tools tests: passed.AI-assisted (Claude Code)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.