startup: slot 70 memory SRV census lumps three different causes under texture_unavailable #2831

Closed
opened 2026-11-27 01:25:45 +00:00 by github-bot · 1 comment
Owner

@⁠tedin7 on GitHub · 2026-11-26 12:42 UTC · original

Part of #870

Problem. device_memory_srv (src/startup_stubs/d3d12_memory_srv.inl) refuses a texture view with the reason texture_unavailable when no texture comes back for the supplied base and layout. Three different situations end in that one reason, and the code comment says so ("no resource there, or texels not readable or over 64 MiB"):

  1. no live resource matches the base address and description (existing_memory_texture found nothing),
  2. the texels cannot be read (x2w_local::readable fails for the layout's bytes),
  3. the layout needs more than the 64 MiB the transient upload ring accepts for one copy (publish_tiled_texture).

The census (memory_srv_census.h, the "memory SRV refusals (slot 70)" line, tools/startup/triage_run.py SLOT70_REASONS) and the per-call log line carry only the lumped name, so a run that shows texture_unavailable cannot say which of the three to chase: a missing resource is a title/lifetime question, unreadable texels an address question, and a size over 64 MiB a limit question.

Expected. Each refusal names its cause: texture_no_resource, texture_unreadable, texture_over_64mib; texture_unavailable remains for a publication that fails for any other reason. The census line, the triage tool's reason list and the docs list the new names.

Scope. Logging and counting only: no change to which views are published or refused.

Out of scope. Fixing any of the three causes.

**@⁠tedin7** on GitHub · 2026-11-26 12:42 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2831) Part of #870 **Problem.** `device_memory_srv` (src/startup_stubs/d3d12_memory_srv.inl) refuses a texture view with the reason `texture_unavailable` when no texture comes back for the supplied base and layout. Three different situations end in that one reason, and the code comment says so ("no resource there, or texels not readable or over 64 MiB"): 1. no live resource matches the base address and description (`existing_memory_texture` found nothing), 2. the texels cannot be read (`x2w_local::readable` fails for the layout's bytes), 3. the layout needs more than the 64 MiB the transient upload ring accepts for one copy (`publish_tiled_texture`). The census (`memory_srv_census.h`, the "memory SRV refusals (slot 70)" line, `tools/startup/triage_run.py` `SLOT70_REASONS`) and the per-call log line carry only the lumped name, so a run that shows `texture_unavailable` cannot say which of the three to chase: a missing resource is a title/lifetime question, unreadable texels an address question, and a size over 64 MiB a limit question. **Expected.** Each refusal names its cause: `texture_no_resource`, `texture_unreadable`, `texture_over_64mib`; `texture_unavailable` remains for a publication that fails for any other reason. The census line, the triage tool's reason list and the docs list the new names. **Scope.** Logging and counting only: no change to which views are published or refused. **Out of scope.** Fixing any of the three causes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:25:45 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 12:42 UTC · original

Taking this one; a Draft PR will follow.

**@⁠tedin7** on GitHub · 2026-11-26 12:42 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2831#issuecomment-7192350556) Taking this one; a Draft PR will follow.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#2831
No description provided.