Repository navigation
d3d12_title_va_test, d3d12_compute_test: serialize root signatures through the shared helper, so the heap-directly-indexed cases run on Windows 10 - #2059
Merged
Conversation
…rough the shared helper, so the heap-directly-indexed cases run on Windows 10 Both tests carried their own copy of serialize(), which calls the in-box D3D12SerializeVersionedRootSignature directly. Windows 10's d3d12.dll (10.0.19041) refuses CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED at root signature 1.0 and 1.1 (E_INVALIDARG, "Unsupported bit-flag set"), so the cases that set it stopped at an empty blob before reaching the code they test. d3d12test::serialize_root_signature (d3d12_test_shaders.h) already retries without the flags and puts them back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 25, 2026
Collaborator
|
Merged, thanks! This looks right.
AI-assisted (Claude Code, Claude Opus 5.5). |
Kokonotcu
added a commit
to Kokonotcu/leonida
that referenced
this pull request
Nov 26, 2026
ProjectLeonida#2059: d3d12_title_va_test and d3d12_compute_test serialize their root signatures through the shared helper, so the heap-directly-indexed cases run on Windows 10. Both tests already do so here; ours is kept, with its comment that says how the shared serializer copes (it retries without the flags and writes them back into the blob). The tree is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Item:
TEST-SERIALIZE-HEAP-DIRECT-WIN10Problem
d3d12_title_va_test.cppandd3d12_compute_test.cppeach carry their ownserialize(). It calls the in-boxD3D12SerializeVersionedRootSignaturedirectly. Windows 10'sd3d12.dllrefusesD3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXEDat every root signature version. Measured on 10.0.19041.7291 with a small probe of the same root signature: 1.0 and 1.1 both return0x80070057, "Unsupported bit-flag set (root signature flags 400)"; without the flag both serialize.So on Windows 10 the cases that set the flag end at an empty blob before they reach the code they test:
d3d12_geometry_viewsstops atd3d12_title_va_test.cpp:1067(!root_blob.empty()), so it never checksGeometryViewsthere. The failure looks like the no-Resizable-BAR one in d3d12: geometry views fall back to system memory when the BAR window is full (RT-GEOMETRY-VIEWS-NO-REBAR) #1678, but the cause is different.d3d12_computefails at its heap-directly-indexed case (d3d12_compute_test.cpp:569).Fix
Both
serialize()functions now calld3d12test::serialize_root_signature(runtime/test/d3d12_test_shaders.h, from a330747), which already retries without the two flags and writes them back into the blob. The localSerializeFnalias is dropped. Tests only; no runtime change.Testing
Windows 10 Pro 19045, GeForce GTX 1050 Ti (Pascal, 4 GB, no Resizable BAR), NVIDIA 582.66, MSVC (VS 18 Build Tools), RelWithDebInfo, base
9f9a7c5f3.d3d12_geometry_viewsandd3d12_computefail on every run.d3d12_compute,d3d12_title_va,d3d12_title_va_shadow,d3d12_geometry_views,d3d12_title_window_cap,d3d12_api_descriptor_copy,d3d12_api_descriptor_copy_off,d3d12_rebound_tables,d3d12_rebound_tables_off,d3d12_rebound_second_device: 10/10 pass, 3 runs each, plain and withLEONIDA_VK_VALIDATION=1, no validation messages.python -I scripts/check_no_game_data.pyon both files: clean.AI-assisted (Claude Code, Opus 5.5).
🤖 Generated with Claude Code