Skip to content

D3D12.X: add bounded reverse texture layout conversion - #87

Draft
bmjask wants to merge 1 commit into
stack/083-sparse-fences-without-queuesfrom
stack/084-reverse-texture-layout
Draft

bmjask wants to merge 1 commit into
stack/083-sparse-fences-without-queuesfrom
stack/084-reverse-texture-layout

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #86.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates d3d12.x: add bounded reverse texture layout conversion as one reviewable step in the redesign.

What is in it

  • b60591b9 is the cleaned-stack form of integrated commit d09c4469.

The patch content is preserved; only ancestry changed to omit a canceled add/revert sequence.

Tested

Tests were not rerun while packaging this already-integrated change into the draft stack.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, removed canceled ancestry, created the stack branch, and drafted this description. It did not author new code during stack packaging.

@bmjask
bmjask force-pushed the stack/083-sparse-fences-without-queues branch from 18ce488 to 19e2f98 Compare November 27, 2026 00:46
@bmjask
bmjask force-pushed the stack/084-reverse-texture-layout branch from b60591b to 0b12249 Compare November 27, 2026 00:46
Add a pure CPU helper that validates one exact D3D12 readback footprint and tiles its logical rows back into the matching XG subresource. It handles arrays, volumes, mip edges, and block formats while rejecting metadata planes, format conversions, malformed footprints, arithmetic overflow, allocation failure, and short buffers.

This is the conversion-only stage for ordered GPU-owned texture copyback; it performs no queue, COM, synchronization, or title-memory work.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/084-reverse-texture-layout branch from 0b12249 to ccdb983 Compare November 27, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant