Skip to content

d3d12_vulkan_device_test: Windows 10's runtime refuses an R9G9B9E5 render target - #7753

Open
mononen wants to merge 1 commit into
ItsNotRexed:mainfrom
mononen:test/r9g9b9e5-rt-windows10
Open

mononen wants to merge 1 commit into
ItsNotRexed:mainfrom
mononen:test/r9g9b9e5-rt-windows10

Conversation

@mononen

@mononen mononen commented Nov 23, 2026

Copy link
Copy Markdown

Claimed in the coordination issue as: new TEST item, #7333 (comment)

What and why

On a single-adapter AMD host running Windows 10, d3d12_vulkan_device fails at argument_mismatches <= 0, on one case:

invalid arguments format 67 RT: ours 0x00000000, host 0x80070057

The case creates an R9G9B9E5_SHAREDEXP texture with ALLOW_RENDER_TARGET. The layer accepts it, because since #1375 it renders RGB9E5 natively when the Vulkan driver can. The host refuses it. #1785 doesn't help, because here the host is the same Radeon as the layer.

The refusal comes from Windows 10's D3D12 runtime, not the driver. Measured with a standalone probe on build 19045, through CheckFeatureSupport(FORMAT_SUPPORT) and CreateCommittedResource:

adapter R9G9B9E5 Support1 RENDER_TARGET bit plain texture ALLOW_RENDER_TARGET
RX 7900 XT (AMD 26.10.1) 0x008013f0 no S_OK E_INVALIDARG
WARP 0x008013f0 no S_OK E_INVALIDARG

(R11G11B10_FLOAT, as a control, has the RENDER_TARGET bit and is accepted on both.) Windows 11 AMD runs in #166 pass this case. The shim's own comment also says the host accepts R9G9B9E5, so newer runtimes accept it.

The test already excuses older-runtime refusals like this one through windows10_refusal: only the layer's S_OK against the host's E_INVALIDARG, and only on a host without ID3D12Device11. That pair is now excused for format 67 RT only. Any other difference, or the same difference on a newer host, still counts as a mismatch. The shim's render_target_family comment now says Windows 10 refuses it. Test-side only: the layer's behaviour doesn't change.

Tested

RX 7900 XT (RDNA3), AMD 26.10.1 (32.0.32015.7029), Windows 10 22H2 (19045), MSVC 14.52 RelWithDebInfo, on main 8575d36ed.

  • Before: line 5533: argument_mismatches <= 0, after invalid arguments format 67 RT: ours 0x00000000, host 0x80070057.
  • After: the line prints invalid arguments format 67 RT: an older host runtime (Windows 10, Windows 11 23H2) refuses it (ours 0x00000000, host 0x80070057) and the argument comparison passes. The test then stops at line 6569: tiles == 1, which is TEST-1649 and is fixed by d3d12_vulkan_device: check PC CreateReservedResource2 behind the Xbox proxy, not through slot 78 #7125, not by this PR.
  • Not run: a Windows 11 host. There, the excuse doesn't apply because the host has ID3D12Device11.

The full suite on this machine and main, for context: CTest 261/269 (the other failures are already covered by #4731, #6149, #5951, #4653, #6071, #7393; xbox_present crashes with RivaTuner running, #5144). run_gpu_tests.py 222/239 with 16 skipped, and the one failure is ms_wave_info_s3 (#5741/#7136). check.py 207/210 with 3 skipped.

AI-assisted: yes (Claude Code)

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: test change, no translator rule)

…nder target

- On Windows 10 (19045) the host runtime refuses ALLOW_RENDER_TARGET on R9G9B9E5_SHAREDEXP on every
  adapter: an RX 7900 XT and WARP report the same FORMAT_SUPPORT bits, without RENDER_TARGET. The layer
  accepts it where its Vulkan driver renders RGB9E5 (ItsNotRexed#1375), so compare_invalid_arguments counted a
  mismatch on a single-adapter AMD host. That pair is now excused through windows10_refusal, as the
  other older-runtime refusals are; a newer host still has to agree.
- The render_target_family comment in the shim says which host refuses it.
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.

2 participants