Repository navigation
Conversation
|
Tested
No game files used. AI-assisted testing. |
|
Checked in a retail boot as well: own copy of the retail executable, Windows 11 / RTX 4080 SUPER (driver 617.14), commit |
|
Tested
AI-assisted. |
|
This adds the missing AMD data point: AMD Radeon iGPU of a Ryzen 7 7800X3D (RDNA2 gfx1036), AMD Windows driver 25.10.36, Windows 11, MSVC 14.51 RelWithDebInfo. PR head
(I see this is marked as a duplicate of #7403; the numbers are for this head only.) Synthetic tests, no validation layer. AI-assisted (Claude Code). |
|
I compared #7593 (
The UHD 770 physically supports both rendering and blending. I checked the reported properties for all 180 formats before running the two Khronos Profiles controls. The ordinary/explicit-list comparison used the same draw fixture on both shims. In the no-blend profile, #7593’s own descriptor test also matched all 64 texels after whole/rectangle clears and all 64 through each of the default and remapped views. The six comparison runs emitted zero Khronos validation errors. I’d retain #7403’s explicit-list handling and draw coverage. If the layer is intended to offer partial A8 support on devices without blending, #7593 supplies a working unblended path and a separate fallback-device test. For full D3D feature level 12.0, Microsoft lists both A8 render-target and blendable render-target support as required. Microsoft format-support table Windows 11, Intel driver 32.0.101.7088, MSVC 19.44 Release, Vulkan SDK 1.4.363.0. Both PRs added five WARP-matching A8 clear cases. The full clear-format comparison still had the same ten sRGB differences as clean |
|
Tested 0646324 merged onto GPUs: NVIDIA GeForce RTX 5070 Ti Laptop GPU (Blackwell, 621.24) and AMD Radeon 610M (RDNA2 gfx1036, AMD 26.11.2, a newer driver than @Cryserrrrr's 25.10.36, whose run had no validation layer). Both expose
Differences from #7403 (head 18b0bfb), read from the diffs: #7403 adds an alpha-only Synthetic tests only, no game files. AI-assisted (Claude Code). |
# Conflicts: # runtime/test/vk_test_device.h
…does, on top of ItsNotRexed#7593 With ItsNotRexed#7593 merged the retail boot gets past the 2D A8_UNORM render target, then device slot 25 sizes a 128-texel 1D A8_UNORM texture with no flags and the layer answers UINT64_MAX (texture_format refused every non-2D A8). The title asserts on the size's upper 32 bits. ItsNotRexed#7755 makes 1D and 3D A8 textures R8 images as the host does; its change conflicts only textually with ItsNotRexed#7593's A8 block, so it is applied by hand: a non-2D A8 render target stays refused, FORMAT_SUPPORT names TEXTURE1D and TEXTURE3D. d3d12_descriptor_test: 1D (128) and 3D (128x8x4) A8 textures without flags are sized and created, with the render-target flag refused (passes with LEONIDA_VK_VALIDATION=1 on an RX 9070 XT). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Linux retail and synthetic results for In the retail 1.0.2.1 trace, my baseline with #7880 and #7286 reports I queried RADV independently. It reports maintenance5, sampled-image, color-attachment and color-attachment-blend support for A8_UNORM, and accepts the 2D sampled + color-attachment image query. Under Proton the descriptor test cleared and copied back the A8 render target with 64/64 texels matching, and sampled 64/64 texels through each of the default and remapped views. The test's maintenance5-disabled control exercised the refusal path. AI-assisted testing. |
|
Thank you for the A8 support. For the #8919 cleanup (#8919), I suggest grouping this with #740314a459b as the candidate to retain for its castable-list handling and draw/blend coverage. Before closing #75930646324, please preserve its unblended A8 path, explicit disabled-feature and RT+UAV checks, invalid-R8-RTV assertion, and rectangle-clear/copy/SRV test. The full diffs still differ in these useful ways; the side-by-side evidence is #7593 (comment). Keep #8626 slot-25 coverage as a separate dependent test. agent: yes PR cleanup: #8919 (comment) agent: yes |
What broke. The retail boot creates a 2D
A8_UNORM(DXGI 65) render target, 1 mip, 1 sample. The layer stores A8 as an R8 image read through a swizzle and has no render-target or UAV support for it, so bothGetResourceAllocationInfo(UINT64_MAX) andCreateCommittedResourcerefuse it, while the NVIDIA host D3D12 sizes and creates it (measured in #7231 (comment)). Repro on main:d3d12_descriptor_testasserts exactly that refusal, and adding anA8_UNORMrow tod3d12_clear_formatsgives "not exposed".Fix. Where the device has
VK_KHR_maintenance5andVK_FORMAT_A8_UNORM_KHRsupports colour attachment, sampling and transfer, an A8_UNORM render target is a realVK_FORMAT_A8_UNORM_KHRimage. Everywhere else, and for every A8 texture withoutALLOW_RENDER_TARGET, the R8 + swizzle path and the old refusal stay as they were.VK_KHR_maintenance5(and its feature) when present, andVulkanDeviceInfo::maintenance5says so. Caller-owned devices default to off and keep the fallback.texture_formatreturns the A8 image forALLOW_RENDER_TARGET, so sizing and creation agree. DS, UAV, MSAA and non-2D A8 stay refused (UAV is out of scope: the storage path writes the T#'s X into R).CheckFeatureSupport(FORMAT_SUPPORT)addsRENDER_TARGET(andBLENDABLEwhere the format blends) only on that path.RTVFormats = A8_UNORMto the A8 attachment.bind_imageviews the A8 image in its own format and moves the swizzle's R to A.Tests.
d3d12_descriptor_test:CheckFeatureSupport, multisample levels, sizing and creation for RT / DS / UAV / RT+UAV now expect success only for RT, and only when the GPU has the A8 attachment. The same checks run on a second device over the sameVkDevicewithmaintenance5 = false, which must refuse as before (the in-test fallback control). A new block clears an 8x8 A8 target (whole, then a rectangle), copies it to a readback buffer (153 / 51 per texel) and samples it through the default view (0,0,0,A) and a remapped one (A,0,1,0).d3d12_clear_formats: anA8_UNORMrow compared byte for byte with WARP.vk_test_device.h: opt-inrequest_maintenance5, so other tests' devices are unchanged.Native Windows 11, MSVC 14.51 (VS 18), RelWithDebInfo, cmake flags from
pr_rt_full.bat, Vulkan SDK headers from that setup (no Python involved):d3d12_descriptorpasses, with "A8 render target: cleared and copied back, 64 texels matched" and "default and remapped views sampled, 64 texels matched each".d3d12_clear_formats: 256 matched WARP, 0 differ.VK_LOADER_DRIVERS_DISABLE=*nv*,LEONIDA_VK_DEVICE=Intel, device line "Intel(R) UHD Graphics 770"): takes the new path, andd3d12_descriptorpasses with the same lines. Ind3d12_clear_formatsthe A8 row matches WARP. That test's SRGB and D24 stencil differences on Intel are pre-existing (see the control).gameinput(disabled, no SDL3). The 3 failures are the known pre-existing ones on main:d3d12_vulkan_device(line 6564tiles == 1, the GetResourceTiling finding in Coordinating who works on what (42) (moved to #7333) #7231),d3d12_indirect_dispatch_countandd3d12_indirect_rt. I didn't run the full ctest on Intel, only the two tests above.Negative control. I checked out
runtime/shims/d3d12_vulkan_device.cppandruntime/src/vulkan_replay.hfrom main (511e382), kept the new tests and rebuilt, on the RTX 4080 SUPER.d3d12_descriptor_testthen fails at line 517 (RENDER_TARGETsupport expected with the A8 attachment) and exits 1.d3d12_clear_formatsreports the A8 row as "not exposed" (5 cases; WARP renders them).VK_LAYER_KHRONOS_validationisn't installed on this machine, so the runs above were not under validation.AI-assisted.