Repository navigation
Conversation
…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.
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.
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_devicefails atargument_mismatches <= 0, on one case: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)andCreateCommittedResource:0x008013f00x008013f0(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'srender_target_familycomment 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
main8575d36ed.line 5533: argument_mismatches <= 0, afterinvalid arguments format 67 RT: ours 0x00000000, host 0x80070057.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 atline 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.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_presentcrashes with RivaTuner running, #5144).run_gpu_tests.py222/239 with 16 skipped, and the one failure isms_wave_info_s3(#5741/#7136).check.py207/210 with 3 skipped.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (n/a: test change, no translator rule)