Skip to content

gpu, docs: measure Windows commit for host textures - #41

Merged
fogydes merged 1 commit into
mainfrom
import/upstream-pr-83
Nov 26, 2026
Merged

fogydes merged 1 commit into
mainfrom
import/upstream-pr-83

Conversation

@fogydes

@fogydes fogydes commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Imported MiamiGame/XTP#83 for review in this fork. Original author: PrivacyOnion; opened 2026-11-26T05:39:35Z. Original commit authorship and history are preserved. Migration prepared with AI assistance (Codex); no source changes were made.

Evidence

  • Exact upstream head: fd276f29edfafc7e6025c17f0fd7358a69ac4dee.
  • Original base branch: main; source PR contains its historical CI.
  • Upstream exact-head CI has a failed gpu-debug-layer job: descriptor::host::tests::a_placed_slot_follows_its_memory_when_unmapped; 661 passed / 1 failed / 15 ignored. The failure is unresolved, not a proven unrelated flake. Failing job.
  • Historical review requests: none. No new reviewer requests were sent.
  • Copied reviews/comments are historical context, not new fork approvals or fresh test results.

Part of #37 (imported from MiamiGame#74).

Merge Danger

Door: Two-way (this is an unmerged PR).

Blast Radius: Unchanged from the original diff; no new correctness claim is made by importing it.


Original pull request

What and why

Part of MiamiGame#74.

Add an ignored Windows probe that compares commit and DXGI usage for
synthetic committed, placed and reserved DEFAULT textures. The reserved
case maps every tile to one backing heap, unmaps the tiles and samples
again after releasing the textures and heap.

The RTX 5070 and WARP both charged about 2 GiB of process commit for the
committed or fully mapped textures. Evicting committed textures and
unmapping tiles with the backing heap still live left the process charge
in place. The VRAM analysis records all five counters and the release
samples. Results from more drivers are wanted.

Fixes: none
Depends on: none

Area

xtp-gpu tests and VRAM analysis documentation.

Tests

  • cargo xtask pr-check passes on my machine with --skip test
  • New or changed behaviour has tests that need no game files, or I explain below why it cannot
  • Ran on a title: no

cargo test -p xtp-gpu --lib texture_commit_probe -- --ignored --nocapture
passed offline on NVIDIA GeForce RTX 5070 (32.0.16.1664) and WARP
(10.0.26100.9818) on Windows 11 25H2 build 26200.9974. Used
XTP_TEST_ADAPTER=hardware and XTP_TEST_ADAPTER=warp with
XTP_BUFFER_POOL=0 for both runs. The same test filter without --ignored
reported the probe as ignored.

Provenance

  • I wrote all of this change myself for XTP, or it only moves code already in XTP.
  • Some of it comes from elsewhere. Each source, its licence and the files concerned are listed here, and every licence is compatible with GPL-3.0-or-later:

Adapted the probe I wrote for the table in MiamiGame#74 (never pushed) and followed
XTP's GPU test and resource allocation code. Consulted public Win32 API documentation. No
XCL or AnyPS5 source was read.

AI assistance: AI coding tools wrote this change and its tests, mainly OpenAI Codex.

Checklist

  • No game data, keys, console SDK code or headers, and nothing that circumvents DRM (asset policy)
  • No code copied from xcl or AnyPS5 (references only: read them to understand, write your own)
  • I agree to license this contribution under GPL-3.0-or-later
  • Title and every commit follow <area>: <summary>; one topic; under 400 changed lines, or the reason is above
  • Docs updated where behaviour, commands or variables changed (README, docs/)

Fork issue / PR number map.

@fogydes fogydes added area/docs docs/, Markdown area/gpu touches crates/xtp-gpu size/M 100 to 399 changed lines labels Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 614bb2a6-55a5-4201-948e-265f01e494f3
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T06:14:42.353421Z fd276f2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fogydes fogydes closed this Nov 26, 2026
@fogydes fogydes reopened this Nov 26, 2026
@fogydes

fogydes commented Nov 26, 2026

Copy link
Copy Markdown
Owner Author

Reviewed the exact imported head fd276f2 against e2298b0, including an independent correctness review and a separate Standards audit. No blocking finding in the ignored synthetic driver-commit probe. Its allocations, queue fences, heap lifetimes, counters, and documented measurement limits were checked. Contributor authorship and reported RTX5070/WARP measurements are preserved.

All current fork checks are complete and green (or intentionally skipped) at this head. Persisted pre-crash strict WARP evidence: the exact PR and base each passed 31 focused descriptor runs; the PR passed all 52 descriptor tests. These are saved pre-crash results, not new recovery executions.

Historical MiamiGame/XTP run 45763037277, job 139717285638 failed the initial shader-view assertion before unmapping. Its cause remains unconfirmed; the passing reruns do not prove an unrelated flake or a fix. A six-line residency-readiness hardening candidate is being kept separate. Its mutation control proves the final unmap assertion still detects missing notification, not the cause of the historical failure.

The ignored approximately 2 GiB probe was not run on this memory-constrained host. Its published numeric table remains author-reported; additional driver coverage and fork issue #28 remain open. This prerequisite contributes to #37 and does not close it. Reviewed with AI assistance; this record is not another person's GitHub approval.

@fogydes
fogydes merged commit ee54fa2 into main Nov 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs docs/, Markdown area/gpu touches crates/xtp-gpu size/M 100 to 399 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants