Repository navigation
Runtime: support wide Xbox volume textures on Vulkan - #8889
gabrielsteglich wants to merge 2 commits into
Conversation
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Verified on Windows 11.
- Excellent support for wide Xbox volume textures on the Vulkan device backend:
- Accepts 3D color textures with unspecified layout (UNKNOWN) and dimensions up to 16384 x 16384 x 2048 when format and usage limits permit.
- Normalizes Xbox layout token 0x101 to UNKNOWN through slot 76.
- Gated behind VulkanDeviceMode::xbox so standard desktop callers retain baseline limits.
- Comprehensive regression coverage in runtime/test/d3d12_placed_dimensions_test.cpp:
- Verifies allocation agreement across GetResourceAllocationInfo, GetResourceAllocationInfo1, and GetResourceAllocationInfo2.
- Tests committed 3D creation through slot 76 and validates RTV W-slice clear with untouched texels preserved.
- Clean-room check and git diff --check pass.
LGTM!
|
Verified head
AI-assisted. |
|
A note on the premise, in case it changes what this PR is for: the request it cites from #8504 looks like a 2D texture, not a volume.
So the change may still be right for genuine wide volumes, but it isn't the fix for that boot stop. Not measured: whether the title creates any real 3D texture wider than 2048. AI-assisted (Claude Code, Claude Opus 5.5). No game data: SDK enum values, a format number and log message text from the layer only. |
|
Tested 305fad1 (merged onto main 867d922) on RTX 5070, NVIDIA 621.24, Windows 11 (build 26200), Vulkan validation layer on (
Ran the tests that belong to the test files this PR changes (ctest entries, or the test program directly when it is not registered), with no game files ( |
What and why
The boot investigation in #8504 recorded an Xbox allocation request for a 2560×1440×1 B5G5R5A1 render-target and storage volume. The desktop D3D12 3D extent limit rejected that request before the backend could check Vulkan support for the format.
The Xbox Vulkan device now allows U/V up to the 14-bit T# extent of 16384 for ordinary 3D textures. W retains its 2048 limit. The image remains Vulkan 3D, and both allocation and creation use the driver's limits for the requested format and usage. Desktop devices retain the desktop rules. The existing sparse, depth/stencil and multisample restrictions still apply.
Claim in #8683. #7604 covers the separate B5G5R5A1 format fallback.
Validation
Windows 11 build 26300, MSVC 19.44, Windows SDK 10.0.28000, Vulkan SDK 1.4.363.0, RTX 3090 driver 621.01. Vulkan validation enabled. Tested 305fad1 against main 867d922.
AI-assisted implementation and tests with Codex. Validation used synthetic fixtures.