mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1058] [CLOSED] d3d12_xs: derive pipeline states for device slot 55 (RT-PSO-STREAM-SLOT55) #1096
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1096
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1058
Author: @Taffyyy-ops
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:feat/xs-pso-stream-slot55📝 Commits (1)
f513564d3d12_xs: derive pipeline states for device slot 55 (RT-PSO-STREAM-SLOT55)📊 Changes
10 files changed (+1085 additions, -36 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+9 -0)📝
runtime/CMakeLists.txt(+41 -20)📝
runtime/shims/d3d12_xs_device.cpp(+66 -1)📝
runtime/shims/d3d12_xs_device.h(+1 -1)➕
runtime/shims/d3d12_xs_pso_stream.cpp(+331 -0)➕
runtime/shims/d3d12_xs_pso_stream.h(+74 -0)📝
runtime/test/d3d12_vulkan_device_test.cpp(+3 -2)📝
runtime/test/device_proxy_test.cpp(+231 -11)➕
runtime/test/pso_stream_test.cpp(+309 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+20 -1)📄 Description
Claimed in the coordination issue as: RT-PSO-STREAM-SLOT55 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139045785)
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)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.