diff options
| author | QemmHD <stephenlethco2@gmail.com> | 2026-11-25 13:42:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-25 13:42:53 -0500 |
| commit | 9f9a7c5f30f8559c52675780cf84004571b8d6e5 (patch) | |
| tree | f44cf8510e91d653e4402bfbb686fc7c8b879686 /docs/d3d12_command_objects.md | |
| parent | 73cc1a2ba3f212af4b79be90ef9c6e10cb48bc6c (diff) | |
| parent | 152cee255030f953e63a10dcdf12b5f0d8ca0e69 (diff) | |
Merge pull request #1798 from ImLele69/rt-title-texture-gone
Merging.
**Why merged**
- **The bug:** a texture whose last reference was a descriptor overwritten inside the title-texture registry was destroyed on a thread that already held the registry mutex. Its destructor then locked that mutex again (`resource_deadlock_would_occur`, an abort under Wine).
- **The fix:** such a texture now leaves `gpu_placements` immediately, under `descriptor_mutex`, which that thread never holds. Its registry entry stops naming it until `drain_titles_gone` erases it after the registry lets go.
**Why it's good**
- It's small, and on the slot-70 view path used during the load.
- The deferred part only holds a registry entry with no resource, so nothing the submission thread reads points at freed memory. That was the window in the first revision, fixed in 152cee255.
- `log_title_census` and the refresh skip such entries.
- **Tested** on an RTX 4070 SUPER (Windows 11), merged onto current main:
- full ctest 448/449, where the only failure is the known depth-resolve MFAA case;
- the 13 title/texture/heap tests pass under Vulkan validation with no VUID;
- the consistency set is unchanged (one timing flake passed on re-run; the PR is C++ only).
- The diff was reviewed for safety: no game data, no new I/O.
**Follow-ups welcome**
- A test that releases the last reference from inside `write_placed_texture_view`.
- The same guard on the slot-71 UAV path.
AI-assisted (Claude Code, Claude Opus 5.5).
Diffstat (limited to 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions