Repository navigation
Conversation
…le's larger structure A retail console title asks for D3D12_OPTIONS with 0x40 bytes where the PC structure is 0x3C and stops on E_INVALIDARG (measured by the XCL project; GTA VI is not measured). A size above the PC structure now gets the PC fields, every byte after them zeroed and S_OK, in the Vulkan device and in the Xbox-ABI proxy's device slot 13 over a PC runtime (WARP refuses 0x40, which device_proxy_test prints). A smaller size and every other feature keep the exact-size rule: no other console size is measured, and a console structure may carry input fields that zeros would answer wrongly (shims/d3d12_console_feature.h). The first such call logs its size. Tests: one shared check (test/d3d12_options_size_check.h) runs on the raw Vulkan device, the proxy over it, the standalone Vulkan device and the proxy over WARP: 0x3C, 0x3D, 0x40 with a 0xCD-filled buffer, 0x44, 0x80, 0x1000 and 0x10000 (guard bytes after the structure untouched), smaller sizes and no buffer refused, other features still E_INVALIDARG. device_proxy_test also calls slot 13 with garbage in the upper halves of the 32-bit arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Heads-up: like #4026, this replaces device slot 13 ( AI-assisted (Claude) |
|
Independent Windows CPU/WARP check of The slot-13 overlap with #4695 is already reported. One additional integration result: AI-assisted. |
|
Independent Windows GPU check of 6248a523. RTX 3080 Ti, NVIDIA 621.35, MSVC 19.44, Vulkan SDK 1.4.363.0. Both the Vulkan-backed device and its Xbox proxy accepted the 64-byte AI-assisted. |
devnull34
left a comment
There was a problem hiding this comment.
Hardware & Environment
- Host: Windows 11 Build 26300 x64
- GPU: AMD Radeon RX 7900 GRE (16 GB VRAM, RDNA3 gfx1100, Vulkan 1.3.296)
- Toolchain: MSVC 19.44 (Visual Studio 2022), CMake 4.4, Windows SDK 10.0.26100.0
Verification Summary
Targets compiled with MSVC 19.44 and executed natively on AMD Radeon RX 7900 GRE:
-
**\device_proxy_test.exe**:
- Passed with 83 forwarded PC vtable slots and all proxy overrides verified.
- Verified that WARP refuses 0x40 bytes for \D3D12_OPTIONS\ with \E_INVALIDARG\ (0x80070057), while the Xbox-ABI proxy slot 13 correctly serves console-sized requests (0x3C, 0x3D, 0x40, 0x44, 0x80, 0x1000, 0x10000) with zero-extended buffers and \S_OK.
- Verified that smaller sizes and non-OPTIONS features remain strictly guarded with exact-size checks and \E_INVALIDARG.
-
**\d3d12_vulkan_device_test.exe**:
- Passed across all placed resource, upload heap, buffer/texture copy, resolve, and console \CheckFeatureSupport(D3D12_OPTIONS)\ size validation tests on Radeon RX 7900 GRE.
-
CTest:
- \device_proxy: Passed (0.03s)
- \device_proxy_trace: Passed (0.03s)
- \d3d12_vulkan_device: Passed (3.79s)
- Total: 3/3 passed (100%).
-
Hygiene & Compliance:
- Clean-room compliant: zero game data or proprietary assets used or referenced.
- \git diff HEAD~1..HEAD --check: Clean (0 whitespace/formatting defects).
LGTM!
|
Independent Windows + NVIDIA check of
I didn't check the slot 13 conflict with #4695 that kingzzim7 raised. |
|
Tested 6248a52 on Windows 11, AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010: pass
AI-assisted (Claude Code). |
Rebase of #4026 for current
main(the original head is conflicting). Original author: @mariuslozo-boop; authorship is preserved. BranchKam471:assist-4026-rebased, one commit on1cc6e3c12.Answers
CheckFeatureSupport(D3D12_OPTIONS)asked with the console's 0x40-byte structure instead of returningE_INVALIDARGfor the larger size. The original PR is the fix; this is only the rebase.Tested on the rebase base:
d3d12_vulkan_device,device_proxy,d3d12_options1_first_use: 3/3git diff --checkclean;git merge-treevs main exits 0.Conflicts were test files only; main's
compare_fencesblock and the PR's optsize calls are both kept.