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

Closed
opened 2026-11-26 12:42:16 +00:00 by tedin7 · 1 comment
tedin7 commented 2026-11-26 12:42:16 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T12:42:16Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6626878464 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2831). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T12:42:16Z. --- 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 commented 2026-11-26 13:03:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T12:42:19Z.


Taking this one; a Draft PR will follow.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7192350556 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2831#issuecomment-7192350556). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T12:42:19Z. --- Taking this one; a Draft PR will follow.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#2823
No description provided.