mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:45:53 +01:00
[PR #1386] d3d12: accept the console-only command queue flag 0x2 #1416
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#1416
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/1386
Author: @JoshRob297
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/console-queue-flag📝 Commits (1)
82110a6[PATCH] d3d12: accept the console-only command queue flag 0x2📊 Changes
2 files changed (+19 additions, -1 deletions)
View changed files
📝
docs/retail_boot_chain.md(+5 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+14 -1)📄 Description
PR 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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.