Skip to content

[Review import] GPU: RGB9E5 render-target/UAV format fallback (upstream #492) - #4

Draft
maok625 wants to merge 4 commits into
mainfrom
review/upstream-pr-492-rgb9e5-fallback
Draft

maok625 wants to merge 4 commits into
mainfrom
review/upstream-pr-492-rgb9e5-fallback

Conversation

@maok625

@maok625 maok625 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Imported from Marvisak#492 for review on this fork.

Upstream source head: b4d0e4409b812543695821ab7743b9ca8f610790 (from Yaekai/VIctory). This commit is directly based on the current fork baseline 63bcca43c6a00a758510398fa43096ce7e4f7df0; no commits from main need to be replayed.

This is a draft review import only. Please inspect the implementation and tests, resolve any interactions with other review branches, and run the Windows/D3D12 test suite before merging. No local build or hardware validation has been performed by this import.

Integration / correctness review required

The host resource creation fallback has hardware and synthetic-test support, but this is not yet evidence that texture data semantics are preserved end-to-end. Review the 4-byte guest RGB9E5 versus 8-byte RGBA16F host representation through staging uploads, row pitches, copies, readback/copy-back, mip/array subresources, and resource aliasing. Also verify the RGB9E5 implicit/custom SRV component mapping: the format's missing alpha must behave as 1.0, not the substitute RGBA16F alpha. Upstream discussion reports an alpha follow-up commit and a separate bit-preserving alias-copy path; verify the current PR head contains the intended correction and add regression tests. Do not treat this as game-rendering validated.

Verified upstream head contents

I inspected this PR's four-commit history: the current head already includes ef43b1d (“preserve RGB9E5 SRV components when widened”) and 9b994c6 (“gate RGB9E5 widening on format support, share sampled views, and guard mismatched copies”). Those fixes are therefore present in this import; they are not missing prerequisites. The remaining review is to validate the actual supported/guarded copy cases and texture upload/readback layouts with targeted regression tests and a native D3D12 integration run.

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.

3 participants