d3d12: accept the console-only command queue flag 0x2 #1386
Closed
github-bot
wants to merge 1 commit from
github-bot/gh-1386 into main
AGit
pull from: github-bot/gh-1386
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1386
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1386"
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?
@JoshRob297 on GitHub · 2026-11-24 23:02 UTC · original
JoshRob297:fix/console-queue-flag→main· +19 −1 · 2 files · 1 commits · closed without mergingPR 2 —
fix/console-queue-flagTitle:
d3d12: accept the console-only command queue flag 0x2Branch:
fix/console-queue-flag(commit585706202) — patch:PR-2-console-queue-flag.patchClaimed in the coordination issue as:
Depends on: none
Fixes: none (there is no issue for this in this repository; it is a one-call behaviour change in the D3D12 layer)
What and why
Right after device creation the title asks for a compute queue whose
D3D12_COMMAND_QUEUE_DESC.Flagsis0x2.ID3D12Device::CreateCommandQueueinruntime/shims/d3d12_vulkan_device.cppmirrors the PC runtime, which has onequeue flag (
D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT) and refuses a description that carries any other bit, sothe call answered
E_INVALIDARGand the queue the title expected was never created. The title does not check it andstops on its own assert:
With the bit accepted, that stop is gone: the run gets past
+0x2478866and stops later, at the unimplementeddevice slot 15 (slot 79 is already routed to
ScheduleFrameEventX). This pull request removes one stop; it does notmake the title run.
0x2has no PC meaning here — nothing in the queue that gets created depends on it:so the validation masks it out and lets it through:
The queue is built from
Type,Priorityand the queue family as before;Flagsis only stored in the descriptionthe queue keeps, so
GetDeschands the bit back exactly as the caller passed it — which is what the console does.Bit
0x2is logged once so a trace shows why the value was accepted. Every other unknown bit is still refused, andthat refusal path now prints what it received (
priority=… flags=… node=…), which is what identifies this case in atrace in the first place.
docs/retail_boot_chain.md§3.2 says the flag exists.Reviewers:
d3d12_vulkan_device_test's "command queue: flag 0x80" case still refuses as before, and0x2isdeliberately not added to that comparison table — the table compares against the host runtime, which refuses it, so
a
0x2row there would fail by design.Tested
Built with clang-cl against the xwin SDK, from the commit in this branch, clean build directory (Linux host,
-DCMAKE_BUILD_TYPE=Release -DLEONIDA_BUILD_WINDOWS_RUNTIME=ON -DLEONIDA_VULKAN_HEADERS_FETCH=ON):d3d12_vulkan_device.cppreports no warning on any of the changed lines — the file's other warnings are allpre-existing, at lines this change does not touch (
gta6rt.exeis 4,001,792 bytes).The
git apply --checkofPR-2-console-queue-flag.patchonmain(6293c1c4f) is clean.What this does not show: a GPU run. The two offsets quoted above (+0x2478866 before, device slot 15 after) come from
runs of the console executable in the fork this change comes from, not from a run here; the executable is not part of
this repository and is not part of the change. There is no test in the tree that can create a queue with
Flags = 0x2and check the acceptance without a device, so the evidence for the call itself is the build plus the code path above.
GPUs tested: n/a — build only in this environment; no GPU test run accompanies this change.
AI-assisted: yes
Checklist
main(6293c1c4f) and the patch applies cleanly (git apply --checkonmain).docs/design.md— not applicable.Where this comes from
This change was written in a fork of the project that no longer exists: the repositories of this lineage were taken
down on 24 November 2026, and this is one of the pieces it had that
mainhere does not. It contains nothing fromthe title — no executable, archive, shader, texture, audio, video or a log quoting one. Only runtime code and
documentation.
@PierreEbele on GitHub · 2026-11-25 15:18 UTC · original
Reviewed
82110a6: verified the premise: PC d3d12.h has only D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT=0x1, so flags=0x2 is console-only. A probe extracting the desc->Flags mask from both trees shows main refusing flags=0x2 (E_INVALIDARG) and this PR accepting it as a logged no-op, with 0x1 acceptance and the 0x80/node-mask/priority rules unchanged. check_no_game_data and the docs tests pass on both trees; the runtime C++ tests need the Windows/MSVC build, which I could not run, so please let Windows CI cover it and consider a flags=0x2 acceptance case in d3d12_vulkan_device_test.cpp. Nits: the "one flag" comment is stale; the slot-48 xs proxy still strips console bits, so "GetDesc hands the bit back" applies to the slot-8 path. No blocking findings.AI-assisted review.
Recommendation: Merge
@MoonEyes on GitHub · 2026-11-27 22:42 UTC · original
Hi @JoshRob297, thanks for this pull request.
CONTRIBUTING.md asks contributors to claim their work in the coordination issue ("Coordinating who works on what", currently #1608) before opening a pull request: post
claiming: <ID>there, or a one-line description if the item is not listed yet, and put the ID in the pull request. I could not find a claim from you for this one.The claim matters because "it is claimed in the coordination issue by the pull request's author" is the first item on the maintainers' checklist for a mergeable pull request, and because it lets others see that the work is taken before they write it a second time.
Could you post the claim in #1608 and put its ID (or a link to it) on the pull request's "Claimed in the coordination issue as:" line? If you already claimed it in another form, a link to your comment is enough.
AI-assisted (Claude Code, Claude Opus 5.5).
@zmasi on GitHub · 2026-11-28 22:01 UTC · original
#1386 | head
82110a64f1(merged cleanly with maina8465211fb) |ctest --test-dir runtime/build -C RelWithDebInfo -R "^(d3d12_vulkan_device|d3d12_compute)$" --output-on-failure(LEONIDA_VK_VALIDATION=1) + liveCreateCommandQueueFlags = 0x2 / 0x3 / 0x80GPU probe +python -m unittest tests/test_docs_encoding.py tests/test_docs_repo_paths.py| red on main:ID3D12Device::CreateCommandQueuewithD3D12_COMMAND_QUEUE_FLAGS(0x2)fails withE_INVALIDARGon RTX 3090 | green on PR+main: 2/2 CTests pass on RTX 3090 with0Khronos validation errors (CreateCommandQueueacceptsFlags = 0x2and0x3withS_OKand preservesGetDesc().Flags, whileFlags = 0x80still returnsE_INVALIDARGin both the probe andd3d12_vulkan_device);test_docs_encoding.py,test_docs_repo_paths.py, andcheck_no_game_data.py0violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes@enlight3d on GitHub · 2026-11-29 08:57 UTC · original
Validation run of this PR on a Windows PC with a real GPU.
82110a64f154b2a81e95git merge --no-ffof the PR head into main was clean.The PR adds no ctest test (it changes
CreateCommandQueueinruntime/shims/d3d12_vulkan_device.cppand a doc). I ran the existing tests that create command queues on the layer. They do not use flag 0x2 (the refusal case ind3d12_vulkan_device_testuses 0x80), so they show no regression, not that 0x2 is now accepted.Commands (RelWithDebInfo, Ninja,
LEONIDA_REQUIRE_VULKAN=ON):CreateCommandQueuewithFlags = 0x2would be needed to show it.dumpbin /importsofgta6rt.exe, 703 DLL!symbol entries, identical to a main build).Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro 10.0.26300, MSVC 19.44.
@enlight3d on GitHub · 2026-11-29 18:12 UTC · original
RUN on PR #1386 (head
82110a64f) merged with origin/main4364a4fa6(clean merge, local only, not pushed). origin/main has since moved toeedd72e30; that change only touches files under d3d12/, nothing under runtime/, so the merged runtime tree is the same.No conflict with #2566 (git merge-tree of the two heads is clean).
Commands (VS 2022 Build Tools, Ninja, RelWithDebInfo, -DLEONIDA_REQUIRE_VULKAN=ON, 6 jobs):
Green (main + PR): 8/8 passed on the GPU, including the existing refusal rows of d3d12_vulkan_device ("flag 0x80", "node mask 2").
Red: the PR adds no test, so there is no red from the PR's own tests. Behavioural red with a throwaway probe I wrote locally (not in the PR): a compute queue created with Flags = 0x2 must succeed and GetDesc must return the bit, and Flags = 0x4 must still be refused. With the PR's non-test changes reverted (runtime/shims/d3d12_vulkan_device.cpp, docs) the probe fails ("compute queue with flags 0x2 is created"); with the PR it passes, and the 0x4 check passes in both. Suggestion: a row for flags 0x2 in d3d12_vulkan_device_test would turn this into a test of the PR.
Link: gta6rt links on main + PR; dumpbin /imports: no new imports vs main (723 DLL!symbol entries on both).
Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro 26300, i9-13900K, 64 GB, MSVC 14.44.
@JoshRob297 on GitHub · 2026-11-29 19:12 UTC · original
Claim posted in the coordination thread (#2570) per CONTRIBUTING.md:
claiming: PR #1386 — d3d12: accept the console-only command queue flag 0x2.Thanks for the review and the test run. Nothing else from my side is waiting on this PR; if you prefer the flag logged at a different level (per device instead of per queue), say so and I will adjust it.
@aslan2142 on GitHub · 2026-12-01 17:22 UTC · original
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.Pull request closed