Skip to content

Runtime: enable native multisample resolves for RGB9E5 - #1614

Closed
evilclanker9000 wants to merge 2 commits into
ItsNotRexed:mainfrom
evilclanker9000:codex/rgb9e5-msaa
Closed

evilclanker9000 wants to merge 2 commits into
ItsNotRexed:mainfrom
evilclanker9000:codex/rgb9e5-msaa

Conversation

@evilclanker9000

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue.

What and why

On devices with a native multisampled RGB9E5 attachment, the quality query reports one sample pattern but committed resource creation rejects the same render-target format. Allow multisampled RGB9E5 render targets and retain the existing Vulkan-derived render-target and resolve bits. Blending, multisampled UAVs and shader multisample reads stay disabled for this format.

This follows the single-sample format reporting fix in #1450. It covers committed render-target allocation, clear and resolve, independent of the multisampled pipeline work in #1591 and #831.

Tested

  • Native Windows D3D12 on Radeon gfx1036 reported one quality level at 2x, 4x and 8x. Each synthetic 5x3 attachment created successfully and resolved to the 15 expected packed texels. The shim before the fix reported the same quality levels but rejected creation with E_INVALIDARG.
  • With the equivalent format change before rebasing, the shim produced 15/15 expected packed texels for full and rectangular clears plus resolve at 2x, 4x and 8x on Radeon gfx1036 (32.0.21045.16010), with no Vulkan validation errors. Radeon rejected 16x. Native D3D12 and the shim on RTX 5080 (616.92) both reported zero and rejected 2x, 4x and 8x.
  • The new d3d12_vulkan_device CTest asserts the capability bits and sample counts against Vulkan attachment properties, then checks every packed pixel for each supported resolve. The earlier baseline failed and the patched test passed on both GPUs. The published head c397516 is on 41f4482 and adds an explicit guard for multisampled UAVs. Its GPU and CI runs are pending.

Checklist

  • No game data, keys or decryption, including in reports.
  • No translator rule changes.

AI-assisted.

@evilclanker9000

Copy link
Copy Markdown
Contributor Author

Additional check on c397516: MSVC 19.44 /Zs passed for both d3d12_vulkan_device.cpp and d3d12_vulkan_device_test.cpp against the Windows SDK stubs and Vulkan headers. This checks the rebased source; the new resolve CTest still needs a GPU run on this commit. AI-assisted.

@evilclanker9000

Copy link
Copy Markdown
Contributor Author

The Windows CI job on c397516 fails in d3d12_compute and d3d12_draw, both at d.create(), before any RGB9E5 case runs. I compared it with the Windows job for its exact base, 41f4482, and both failures have the same source lines and messages. PR job and baseline job. AI-assisted.

ItsNotRexed added a commit that referenced this pull request Nov 22, 2026
@evilclanker9000

Copy link
Copy Markdown
Contributor Author

Closing the updated branch as superseded by the original change. Upstream 89b047cd already contains the original PR head c3975165 through merge commit 6c655f92. The updated head 06612e96 adds no changes when merged into that upstream revision: the resulting Git tree is identical. AI-assisted.

ItsNotRexed added a commit that referenced this pull request Nov 22, 2026
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