Repository navigation
Conversation
…le's texture-to-texture copies are checked against both subresources and the destination level, and one that does not fit is left out and logged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Written by 🤖:
What it changes
copy_texture_regionrecords the title's texture-to-texture copy as it is. When the host does not take that copy, the list it is in fails to close (a host command list did not close (0x80070057)) and the run ends (#2276, #2778).Now
copy_fitschecks such a copy first: both subresources are there (levels, layers and planes), an element is as many bytes on both sides, and the source box (or the whole source subresource) lies in the source and fits the destination level at its place, counted in blocks where one side is block-compressed. A copy that does not fit is left out and logged (a texture copy the host does not take is left out, the first 8, then at powers of two), with both sides' size, format, levels and subresource.unlike(a stand-in target on one side) stays as it is; this covers the other cases.Why this copy: a diagnostics build that lists the last commands of a list that does not close (a local change, with
VICTORY_D3D12_DRED=1) showed, in one of these crashes, a list of 9 copies and nothing else, all into one 256x256 BC3 texture from one source texture, without a box. In other runs the title's decoration bake copies the levels of such a texture this way: levels 0 to 6 from a 64x64R32G32B32A32_UINTtexture of 7 levels, levels 7 and 8 from a 1x1 one. A copy of level 7 or 8 from the 64x64 texture names a subresource that is not there; a copy from a larger source does not fit the level. Both are copies the host does not take.How it was tested
VICTORY_TEXSPK_PASS_MS=48; the intro cutscene with replayed input, through the cut to the boat.main).cargo testpassed for the crates it touches:cargo test -p victory-gpu --lib copies_the_host, a new test with the bake's copies (taken and refused) and boxes.cargo clippy -p victory-gpu --all-targets: nothing in the changed lines.Checked for overlap
Result: not the cause
A run of v2026.11.29.04 with #3553 and this change,
VICTORY_TEXSPK_PASS_MS=24, HDR on, still ended with the same error, and no copy was left out. So the command the runtime refused is not one of these copies. The check refuses no copy the title needs (5 runs), but it does not fix this crash, so this pull request is closed.