Repository navigation
Conversation
b685c71 to
b9db201
Compare
|
The only red check is |
|
Tested b9db201 on NVIDIA GeForce RTX 3060, driver 617.14, Windows 11: pass Setup: Windows 11 Pro 24H2 (10.0.26100), RTX 3060 (Ampere), NVIDIA 617.14, MSVC 14.44.35207 + Windows SDK 10.0.26100, Ninja RelWithDebInfo, Khronos Vulkan-Headers 1.4.369, VK_LAYER_KHRONOS_validation 1.4.357. PR head built as-is (not rebased; it conflicts with main c432cdc now). Build: 0 errors, 0 warnings. ctest: 24/24, also with LEONIDA_VK_VALIDATION=1. AI-assisted: the build and test runs were done with an AI coding assistant (Claude Code) on my machine; the numbers above are its unedited output. |
b9db201 to
0067da5
Compare
|
Rebased to |
…rs it D3D-79 was split: multisample arrays are D3D-83 in ItsNotRexed#683. This PR keeps the TEXTURE1D and TEXTURE1DARRAY views, which wait for 1D textures (ItsNotRexed#561).
…ange (D3D-79 part 1)
CreateDepthStencilView refused D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY, so the descriptor held an
empty TargetView and any clear through it failed when the list was recorded. Multisample textures
have one mip, so the view is {resource, mip 0, FirstArraySlice, ArraySize}; the replay already
checks the range against the image and clears through a view of those layers.
d3d12_vulkan_device_test: a 4-layer 4x multisampled D32 texture, a view of slices 1-2 captures
that range and its clear replays; a view of slices 3-4 is refused at execute
(invalid_subresource). D3D12 can't copy a multisampled texture to a buffer, so the cleared
values are not read back. Without the change the test fails at the captured-range check.
docs/d3d12_vulkan.md: drop the duplicated RTV/DSV bullet and list the new dimension. The 1D and
1D-array DSVs need 1D textures first (D3D-63, #561).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Code review at |
|
The 1D attachment case is already in the host allocation comparison, and it passes on the rebased branch (
The PC runtime accepts the allocation for a 1D render target but |
0067da5 to
caf3932
Compare
|
CI note: 8/9 checks pass on the rebased |
1862d98 to
c7d5f8e
Compare
|
Tested c7d5f8e on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass (no regression against main).
The |
CheckFeatureSupport already reported TEXTURE1D, but CreateCommittedResource rejected the dimension. Create 1D images with a height-one extent, reject non-unit heights and attachment flags, and teach GetCopyableFootprints and GetResourceAllocationInfo the 1D shape. The device test now uploads and reads back a 1D texture and a layer of a 1D array, and compares allocation and footprint results with the PC runtime.
c7d5f8e to
2a66d3a
Compare
quackottu
left a comment
There was a problem hiding this comment.
Tested 2a66d3a on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
ctest -C RelWithDebInfo: 100% tests passed, 0 tests failed out of 32d3d12_vulkan_device_test(changed here): exit=0 validation=0 | [rt] d3d12: upload heaps in VRAM (DEVICE_LOCAL | HOST_VISIBLE, Resizable BAR)- 33 test programs in the build pass with 0 validation errors
- Not run (they take an input file, not covered here): vk_binary_occlusion_test
d3d12_clear_testfails (R8G8B8A8_UNORM/SNORM 0.5 ties and a D16 clear byte differ from WARP) exactly as onmain4a36bb1 here, so not from this PR; #521 addresses it
Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.
D3D-63, claimed on #374.
What this fixes
CheckFeatureSupportalready reportedTEXTURE1D, but every 1DCreateCommittedResourcefell into the unsupported-dimension branch and returnedE_INVALIDARG, so the reported support could not be used.CreateCommittedResourcenow creates 1D images with a height-one extent and 1D arrays with the requested layer count. It rejects a non-unit height and the render-target/depth-stencil flags (D3D12 does not allow 1D attachments) withE_INVALIDARG.GetCopyableFootprintsuses a one-row footprint for 1D subresources, so mips and array layers get offsets that match the PC runtime.GetResourceAllocationInfoaccepts 1D and 1D arrays too; without this, code that asks for the allocation size before creating the resource would still fail. A 1D render-target description gets a size from allocation, as it does on the PC runtime, and is rejected at creation.Tests
runtime/test/d3d12_vulkan_device_test.cppnow covers:GetResourceAllocationInfocomparisons for a mipmapped 1D texture, a 1D array, and a 1D render target, plus the invalid two-row 1D description;GetCopyableFootprintscomparisons for a 4-mip 1D texture and a 3-layer 1D array;E_INVALIDARGfor a two-row 1D texture and a 1D render target;CopyTextureRegionfor eight texels in a 1D texture and four texels in layer 1 of a 1D array.Run on Windows 10.0.26200.9711, NVIDIA RTX 5070, driver 616.86,
LEONIDA_VK_VALIDATION=1:No game files.