d3d12: split partial-mips "inside" images in the overlap ledger #478

Merged
s3rius merged 2 commits from upstream-pr/478 into main 2026-11-29 14:38:26 +00:00
s3rius commented 2026-11-29 13:45:58 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by s3rius on 2026-11-29T13:45:58Z.


Summary

Placed textures sharing a guest address and subresource plan — cast/reinterpreted views of the same data — previously each reserved a full native image, repeating the same bytes (~200 MiB in the last Scarlett run). They now share the first view's native image (its own description keeps the view's format), the ledger counts it once, and the flush path dedupes by native pointer. Adds a lanes scenario (shared-view) that writes through one view and reads back through the other; it failed before the fix and passes after. GPU-verified on an RTX 5090.

Tested

Run the checks relevant to this change.

  • The checks relevant to this change passed
  • Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below
  • Where the table calls for AMD and NVIDIA, they passed on both. Otherwise, say which vendor still needs to run them:

GPU, driver and backend:

Commands run and their results:

> xvfb-run -a python tuxbox.py check

Summary
  passed   Build the shader compiler (0s)
  FAILED   Python tests (84s)  # as on main branch.
  passed   Shader compiler tests (1s)
  passed   DXBC tests (0s)
  passed   XG layout tests (8s)
  passed   Storage codec tests (0s)
  passed   D3D12 Windows typecheck (1s)
  passed   Build (36s)
  passed   Lanes and fixtures on the GPU (126s)
  passed   D3D12 regression controls (22s)
  passed   Shader translator on the GPU (87s)

Checks

CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of tuxbox-d3d12.

If this pull request changes evidence JSON, regenerate the results table and the progress map and include both files:

python tuxbox.py status > docs/RESULTS.md
python tuxbox.py status --svg docs/progress.svg
<!-- greyfinch-sync:brcly/TuxBox:issue:5551318769 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/478). Originally posted by [s3rius](https://github.com/s3rius) on 2026-11-29T13:45:58Z. --- ## Summary Placed textures sharing a guest address and subresource plan — cast/reinterpreted views of the same data — previously each reserved a full native image, repeating the same bytes (~200 MiB in the last Scarlett run). They now share the first view's native image (its own description keeps the view's format), the ledger counts it once, and the flush path dedupes by native pointer. Adds a lanes scenario (shared-view) that writes through one view and reads back through the other; it failed before the fix and passes after. GPU-verified on an RTX 5090. ## Tested Run the [checks relevant to this change](../CONTRIBUTING.md#test-what-your-change-touches). - [ ] The checks relevant to this change passed - [ ] Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below - [ ] Where the table calls for AMD and NVIDIA, they passed on both. Otherwise, say which vendor still needs to run them: GPU, driver and backend: Commands run and their results: ```text > xvfb-run -a python tuxbox.py check Summary passed Build the shader compiler (0s) FAILED Python tests (84s) # as on main branch. passed Shader compiler tests (1s) passed DXBC tests (0s) passed XG layout tests (8s) passed Storage codec tests (0s) passed D3D12 Windows typecheck (1s) passed Build (36s) passed Lanes and fixtures on the GPU (126s) passed D3D12 regression controls (22s) passed Shader translator on the GPU (87s) ``` ## Checks CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of `tuxbox-d3d12`. If this pull request changes evidence JSON, regenerate the results table and the progress map and include both files: ```sh python tuxbox.py status > docs/RESULTS.md python tuxbox.py status --svg docs/progress.svg ```
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!478
No description provided.