Repository navigation
d3d12_xs: derive pipeline states for device slot 55 (RT-PSO-STREAM-SLOT55) - #1058
Closed
Taffyyy-ops wants to merge 1 commit into
Closed
Taffyyy-ops wants to merge 1 commit into
Taffyyy-ops wants to merge 1 commit into
Conversation
…OT55)
Restores runtime/shims/d3d12_xs_pso_stream.{h,cpp} and runtime/test/pso_stream_test.cpp from ancestor commit 6946344 (tf; dropped by merge 6dece92), hardens deep-copy of STREAM_OUTPUT declaration SemanticName strings and array bounds + SetPrivateData cleanup on error, wires Xbox device slot 55 (CreateDerivedPipelineState) into DeviceProxy, updates d3d12_vulkan_device_test to query ID3D12Device4 on inner for PC CreateReservedResource1, adds slot 55 coverage in device_proxy_test and xs_proxy_mock_test, and documents slot 55 in docs/d3d12_vulkan.md (Depends on ProjectLeonida#727 for console slot 86 stream capture).
Contributor
Author
|
Status note: |
Contributor
Author
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.
Claimed in the coordination issue as: RT-PSO-STREAM-SLOT55 (#14 (comment))
Depends on: #727
What and why
Restores and adapts Xbox device slot 55 (
CreateDerivedPipelineState) andruntime/shims/d3d12_xs_pso_stream.{h,cpp}+runtime/test/pso_stream_test.cppfrom ancestor commit6946344eb0(originally authored bytf, dropped by merge6dece9231):runtime/shims/d3d12_xs_pso_stream.{h,cpp}): captures and deep-copies supportedD3D12_PIPELINE_STATE_SUBOBJECT_DESCsubobjects ontoID3D12Objectprivate data (released automatically with the PSO), applies1..40x14c-byte records in order (tag0DEPTH_STENCIL/DEPTH_STENCIL1, tag1RASTERIZER, tag2BLEND, tag3SAMPLE_MASK, tag5stencil read/write mask overlay), and refuses unmodelled subobjects (such asVIEW_INSTANCING) or invalid counts/tags. Hardened with deep-copy ofSTREAM_OUTPUTSemanticNamestrings via sharedcopy_semantic_entries, a 4096-entry bound on subobject descriptor arrays, and cleanup ofkRecordOwnerGuidifSetPrivateDatafails inattach_pso_record.runtime/shims/d3d12_xs_device.{h,cpp}): wires slot 55 (CreateDerivedPipelineState->proxy_create_derived_pso->create_pso_from_streamvia PC slot 47) and marks slot 55 indevice_slot_overridden(55). Sharescreate_pso_from_stream/keep_pso_streamso#727's slot 86 routes cleanly onto it once merged, while staying completely standalone-buildable and testable on currentmain.runtime/CMakeLists.txt,pso_stream_test.cpp,device_proxy_test.cpp,xs_proxy_mock_test.cpp,d3d12_vulkan_device_test.cpp): addspso_stream_testunder the Windows D3D12 guard (so Linux and macOS CI remain unaffected), linksshims/d3d12_xs_pso_stream.cppinto all targets compilingshims/d3d12_xs_device.cpp, updatesd3d12_vulkan_device_testto queryID3D12Device4oninnerfor PCCreateReservedResource1(since proxy slot 55 is XboxCreateDerivedPipelineState), adds WARP graphics/compute derivation & chained-derivation coverage indevice_proxy_test, and adds mock slot 55 refusal checks inxs_proxy_mock_test.docs/d3d12_vulkan.md): documents device slot 55, tags0/1/2/3/5, refusal rules, and#727slot 86 relationship.Tested
vcvars64.bat && cmake --build runtime/build,[154/154]+ final[2/2]): 0 errors, 0 new/W4warnings.LEONIDA_VK_DEVICE=NVIDIA): 11/11 passed:device_proxy,device_proxy_tracexs_proxy_mock,xs_proxy_mock_no_reserve,xs_proxy_mock_no_protect,xs_proxy_mock_no_handler,xs_proxy_mock_env_slots,xs_proxy_mock_env_slots_invalidpso_stream,root_sig,d3d12_vulkan_devicetests/test_ctest_registration.py(4/4 OK),tests/test_docs_links.py(16/16 OK),tests/test_docs_repo_paths.py(3/3 OK),tests/test_docs_encoding.py(1/1 OK),tests/test_docs_repeated_lines.py(2/2 OK),tests/test_docs_cli_flags.py(4/4 OK),tests/test_docs_list_items.py(3/3 OK),scripts/check_no_game_data.py(pass),git diff --check main..HEAD(clean).GPUs tested: NVIDIA GeForce RTX 5060 Laptop GPU (driver 621.24, Vulkan 1.4.357, Windows 11) + WARP
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)