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

Open
github-bot wants to merge 2 commits from github-bot/gh-1200 into main AGit
Owner

@⁠PyZikYG on GitHub · 2026-11-24 20:05 UTC · original
PyZikYG:copy-transfer-family-capability → main · +63 −13 · 4 files · 2 commits · open

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.
**@⁠PyZikYG** on GitHub · 2026-11-24 20:05 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1200) `PyZikYG:copy-transfer-family-capability` → `main` · +63 −13 · 4 files · 2 commits · open Claimed as [D3D-COPY-TRANSFER-FAMILY](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:42:39 +00:00
Author
Owner

@⁠madhyn on GitHub · 2026-11-24 20:08 UTC · original

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

**@⁠madhyn** on GitHub · 2026-11-24 20:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1200#issuecomment-7143088217) 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
This pull request has changes conflicting with the target branch.
  • runtime/src/vulkan_backend.h
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1200/head:github-bot/gh-1200'
git switch 'github-bot/gh-1200'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1200'
git switch 'github-bot/gh-1200'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1200'
git switch 'github-bot/gh-1200'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1200'
git switch 'main'
git merge --squash 'github-bot/gh-1200'
git switch 'main'
git merge --ff-only 'github-bot/gh-1200'
git switch 'main'
git merge 'github-bot/gh-1200'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.