d3d12: keep compute repacks off transfer-only queues #1200

Closed
PyZikYG wants to merge 2 commits from upstream-pr/1200 into main
PyZikYG commented 2026-11-24 20:05:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PyZikYG on 2026-11-24T20:05:18Z.


Claimed as D3D-COPY-TRANSFER-FAMILY.

Transfer-only copy families were classified only when conditional rendering was enabled. Even if a family was classified correctly, its replay table inherited the compute repack callback from the shared context. A D24 or RGB96 footprint copy could therefore record compute work on a VkQueue that cannot execute it.

Classify the family independently of predication and remove the repack callback from transfer-only replay. These copies fail during preparation on a transfer-only queue. Vulkan queues with graphics or compute support can still run the conversion.

AI-assisted: yes.

Tested

  • d3d12_rgb96: PASS on Windows.
  • d3d12_rgb96_transfer_queue: PASS on Windows. This case does not use WARP and is independently runnable under Wine on devices with a transfer-only queue family.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479450592 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1200). Originally posted by [PyZikYG](https://github.com/PyZikYG) on 2026-11-24T20:05:18Z. --- Claimed as [D3D-COPY-TRANSFER-FAMILY](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142922846). Transfer-only copy families were classified only when conditional rendering was enabled. Even if a family was classified correctly, its replay table inherited the compute repack callback from the shared context. A D24 or RGB96 footprint copy could therefore record compute work on a VkQueue that cannot execute it. Classify the family independently of predication and remove the repack callback from transfer-only replay. These copies fail during preparation on a transfer-only queue. Vulkan queues with graphics or compute support can still run the conversion. AI-assisted: yes. ### Tested - `d3d12_rgb96`: PASS on Windows. - `d3d12_rgb96_transfer_queue`: PASS on Windows. This case does not use WARP and is independently runnable under Wine on devices with a transfer-only queue family.
madhyn commented 2026-11-24 20:08:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by madhyn on 2026-11-24T20:08:04Z.


Tested e5cd66105 on Arch Linux + Wine 11.22 + NVIDIA RTX 3060 Ti (595.58.03 / Vulkan):

  • ctest --test-dir runtime/build/win -R "^d3d12_rgb96$" --output-on-failure: Skipped (5.53 s)

AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143088217 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1200#issuecomment-7143088217). Originally posted by [madhyn](https://github.com/madhyn) on 2026-11-24T20:08:04Z. --- Tested `e5cd66105` on Arch Linux + Wine 11.22 + NVIDIA RTX 3060 Ti (595.58.03 / Vulkan): - `ctest --test-dir runtime/build/win -R "^d3d12_rgb96$" --output-on-failure`: **Skipped** (5.53 s) AI-assisted: yes
MoonEyes commented 2026-11-28 17:57:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T17:57:41Z.


Hi @PyZikYG, thanks for this pull request. It currently conflicts with main (conflicting file(s): runtime/src/vulkan_backend.h), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243420737 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1200#issuecomment-7243420737). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T17:57:41Z. --- Hi @PyZikYG, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `runtime/src/vulkan_backend.h`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 16:33:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:33:56Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317816647 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1200#issuecomment-7317816647). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:33:56Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1200
No description provided.