d3d12: accept slot 62 copies of textures padded to a whole tile #217
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!217
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-217"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ReverendOzmund on GitHub · 2026-11-26 08:57 UTC · original
ReverendOzmund:d3d12-slot62-tile-padded→main· +28 −3 · 2 files · 1 commits · openProjectScarlett copies 0x4000 bytes for a 128x4 RGBA16 texture whose 0x1000-byte footprint is padded to a 16-row tile. plan() allowed at most one footprint of tail, so the copy failed and the graphics command list was rejected. Accept whole rows up to the next 64-row tile height and copy only the footprint, as before.
Summary
Seen during a cold ProjectScarlett load (
bc4ba79, RTX 3080 Ti, driver 620.70.06, GE-Proton11-14):This is the same texture
97b8ad3accepts at 0x2000 bytes. Here its height is padded to a 16-row tile (64-bit texels in a 4 KiB tile are 32x16).plannow also accepts a single-subresource copy that is whole rows of the footprint's pitch, up to the next multiple of 64 rows (the tallest 4 KiB tile). Only the footprint is copied. Partial rows and anything taller are still rejected.Verified on Lanes
python tuxbox.py verifypassed on this branch (Bazzite has no lld-link on the host, so I built in a Fedora distrobox and ran the GPU suites on the host; summary below)No Lanes scenario:
planis pure layout arithmetic. The new unit testtile_padded_single_subresource_uploads_its_footprintfails without the change, which matches how97b8ad3covered the 0x2000 case.GPU, driver and backend: RTX 3080 Ti, 620.70.06, GE-Proton11-14, Bazzite.
Paste the summary printed at the end:
🤖 Generated with Claude Code
https://claude.ai/code/session_01KP1nQKEc17PvmrwfPtLi8Z
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.