d3d12: name the check that refuses a reflected table draw #583

Closed
csj0oe wants to merge 1 commit from upstream-pr/583 into main
csj0oe commented 2026-11-30 08:02:24 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-11-30T08:02:24Z.


What

A draw with a reflected table was refused with a bare E_INVALIDARG, so a run's skipped draws could not be attributed to a check.

with_reflected_table now returns a TableRefusal { reason, code }: every arm carries a &'static str naming the failed check, and recording.rs appends it to the existing skip line, e.g.

skipped draw with a reflected table: slot was never bound (0x80070057, #3, guest caller 0x…)

Reasons cover: layout/root-signature mismatch, more than 64 root slots, slot never bound, root signature with no descriptor table, no native descriptor base, no resource heap, an unmaterialized view slot, a view outside the heap, a strided table on an unpaged heap, and the heap/arena refusal keeping its original code. Admission is unchanged; only diagnostics.

Tests

a_refused_reflected_table_names_the_check_that_failed triggers three arms and asserts distinct reasons plus E_INVALIDARG. The paged-layout path is untouched.

Not run

NVIDIA, and the D3D12/Lanes GPU suites that CONTRIBUTING asks for on a runtime/d3d12 change.

<!-- greyfinch-sync:brcly/TuxBox:issue:5561372081 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/583). Originally posted by [csj0oe](https://github.com/csj0oe) on 2026-11-30T08:02:24Z. --- ## What A draw with a reflected table was refused with a bare `E_INVALIDARG`, so a run's skipped draws could not be attributed to a check. `with_reflected_table` now returns a `TableRefusal { reason, code }`: every arm carries a `&'static str` naming the failed check, and `recording.rs` appends it to the existing skip line, e.g. ``` skipped draw with a reflected table: slot was never bound (0x80070057, #3, guest caller 0x…) ``` Reasons cover: layout/root-signature mismatch, more than 64 root slots, slot never bound, root signature with no descriptor table, no native descriptor base, no resource heap, an unmaterialized view slot, a view outside the heap, a strided table on an unpaged heap, and the heap/arena refusal keeping its original code. Admission is unchanged; only diagnostics. ## Tests `a_refused_reflected_table_names_the_check_that_failed` triggers three arms and asserts distinct reasons plus `E_INVALIDARG`. The paged-layout path is untouched. ## Not run NVIDIA, and the D3D12/Lanes GPU suites that `CONTRIBUTING` asks for on a `runtime/d3d12` change.
brcly commented 2026-11-30 09:50:24 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-30T09:50:24Z.


Thanks. Naming the check that refused a draw is the right shape for this kind of diagnostic. I checked how often it fires before deciding:

  • Our boots on the morning of 11-29 had these skips, all from one caller (guest caller 0x325b658).
  • Our three boots since then have none, including a long one that got past the menus (1,246 presents).

The skip seems to have stopped on current main. That leaves this PR as diagnostics for a fault we no longer see, so I'm holding it, as with #567, #568 and #581.

If you still see skipped draw with a reflected table on current main, please post the log line and the scene. Then fold these reasons into the PR that fixes it: they'll be worth keeping there.

<!-- greyfinch-sync:brcly/TuxBox:comment:7274755906 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/583#issuecomment-7274755906). Originally posted by [brcly](https://github.com/brcly) on 2026-11-30T09:50:24Z. --- Thanks. Naming the check that refused a draw is the right shape for this kind of diagnostic. I checked how often it fires before deciding: - Our boots on the morning of 11-29 had these skips, all from one caller (`guest caller 0x325b658`). - Our three boots since then have **none**, including a long one that got past the menus (1,246 presents). The skip seems to have stopped on current main. That leaves this PR as diagnostics for a fault we no longer see, so I'm holding it, as with #567, #568 and #581. If you still see `skipped draw with a reflected table` on current main, please post the log line and the scene. Then fold these reasons into the PR that fixes it: they'll be worth keeping there.
csj0oe commented 2026-11-30 10:10:22 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-11-30T10:10:22Z.


Closing. I checked our side to confirm your observation: the reflected-table skip no longer appears on current main — 0 occurrences in the live run, and the last ones are in our 27-29 November logs. So this is diagnostics for a fault we no longer see, and the named reasons belong in the PR that fixes it if it comes back. Branch kept for that.

<!-- greyfinch-sync:brcly/TuxBox:comment:7275227506 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/583#issuecomment-7275227506). Originally posted by [csj0oe](https://github.com/csj0oe) on 2026-11-30T10:10:22Z. --- Closing. I checked our side to confirm your observation: the reflected-table skip no longer appears on current main — 0 occurrences in the live run, and the last ones are in our 27-29 November logs. So this is diagnostics for a fault we no longer see, and the named reasons belong in the PR that fixes it if it comes back. Branch kept for that.

Pull request closed

Sign in to join this conversation.
No reviewers
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
brcly/TuxBox!583
No description provided.