Skip to content

GPU: report ordinary texture upload room accurately - #3904

Open
Yoruiopz wants to merge 1 commit into
trustno1-coder:mainfrom
Yoruiopz:texture-room-log-05
Open

Yoruiopz wants to merge 1 commit into
trustno1-coder:mainfrom
Yoruiopz:texture-room-log-05

Conversation

@Yoruiopz

Copy link
Copy Markdown
Contributor

Related to #3829 and #3848.

What it changes

The periodic texture-room meter used a comparison of rounded memory terms to label uploads as waiting. The ordinary admission path can still admit uploads below the automatic texture floor. It can also refuse uploads near the raw DXGI budget when weighted use is below the line.

Use the exact byte counts from one meter sample, share the admission floor and raw-budget predicates, and report the ordinary upload gate with its reason. The first-upload allowance keeps its separate diagnostics. Upload and eviction policy stay the same.

How it was tested

Checked for overlap

@github-actions github-actions Bot added the pr-diagnostics Pull request: adds logging, counters or tools label Nov 30, 2026
@github-actions github-actions Bot changed the title [pr-diagnostics] GPU: report ordinary texture upload room accurately GPU: report ordinary texture upload room accurately Nov 30, 2026
@andrewpozdnakov7-jpg

Copy link
Copy Markdown
Contributor

I tested a2db88a together with #3848 a9980e6, both based on 41adb551. Cherry-picking the two PRs in either order was clean and produced the same Git tree, bd16abc7d61d. The combined Windows diagnostics build ran 78 resource and pool tests successfully, including a generated integration check. Four tests were ignored.

In the #3829 example (1,238 MiB of texture copies, 6,910 MiB budget), the new meter says there is room. At one byte below the automatic floor it still says there is room, and #3848 leaves the reserves out of the eviction calculation. At the floor and one byte above, the same weighted use is over the line, so the meter says no room and #3848 counts the reserves. The separate raw-budget tests also passed.

scripts/summarize-frame-log.py still recognized the revised messages in a three-row generated log. It counted the under-floor row as admitted and both the weighted-limit and raw-budget rows as blocked.

This checks compatibility at the two current heads. The visual trade-off from the exact #3848 hardware pair is still being tracked in that PR.

AI-assisted with OpenAI Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-diagnostics Pull request: adds logging, counters or tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants