d3d12: honor predication for buffer CopyResource (D3D-PREDICATED-COPY-RESOURCE) #1443

Open
github-bot wants to merge 1 commit from github-bot/gh-1443 into main AGit
Owner

@⁠PyZikYG on GitHub · 2026-11-25 00:19 UTC · original
PyZikYG:d3d12-predicated-copy-resource → main · +52 −24 · 4 files · 1 commits · open

Claimed as D3D-PREDICATED-COPY-RESOURCE.

Summary

Buffer-to-buffer CopyResource now honors SetPredication. Replay uses the byte-copy path shared with CopyBufferRegion and tracks its compute writes for readback visibility. The helper dispatch is left out of application pipeline statistics. This change covers buffer resources.

Verification

Checked the copy and skip paths against native D3D12/WARP, including a predicate with only its high word set. Checked readback staging, large offsets and pipeline-statistics accounting.

AI-assisted: yes.

**@⁠PyZikYG** on GitHub · 2026-11-25 00:19 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1443) `PyZikYG:d3d12-predicated-copy-resource` → `main` · +52 −24 · 4 files · 1 commits · open Claimed as [D3D-PREDICATED-COPY-RESOURCE](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). ### Summary Buffer-to-buffer `CopyResource` now honors `SetPredication`. Replay uses the byte-copy path shared with `CopyBufferRegion` and tracks its compute writes for readback visibility. The helper dispatch is left out of application pipeline statistics. This change covers buffer resources. ### Verification Checked the copy and skip paths against native D3D12/WARP, including a predicate with only its high word set. Checked readback staging, large offsets and pipeline-statistics accounting. AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:51:35 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 05:40 UTC · original

Independent verification on both of our GPUs (native Windows 11, validation on):

  • NVIDIA RTX 4070 SUPER: 10/10 core + 6/6 descriptor/copy extras — vk_predicated_copy genuinely ran ("32 gated + 32 reused submissions … passed"), plus d3d12_predicated_copy, d3d12_predication_atomic_copy, d3d12_noop_copy, d3d12_subresource_copy, predicated_copy, replay_copy_offset, replay_khr_as_copy_postbuild, replay_write_immediate_predication, replay_query_predication, d3d12_copy_xfmt, d3d12_stencil_copy, d3d12_descriptor, d3d12_console_descriptor_heap, d3d12_set_descriptor_heaps, descriptor_table.
  • AMD Radeon iGPU (gfx1036, LEONIDA_PC_TAIL_UBO=1): identical 10/10 + 6/6, vk_predicated_copy confirmed on the AMD device, 0 VUIDs.
  • Clean origin/main c7e82e26e baseline: 27/27 on both GPUs — no pre-existing failures.

Code review agrees with the PR's claim: predication now covers buffer CopyResource; only texture copies remain unpredicated, matching the doc update.

AI-assisted verification.

**@⁠whoalin1** on GitHub · 2026-11-25 05:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1443#issuecomment-7154028593) Independent verification on both of our GPUs (native Windows 11, validation on): - **NVIDIA RTX 4070 SUPER**: 10/10 core + 6/6 descriptor/copy extras — `vk_predicated_copy` genuinely ran ("32 gated + 32 reused submissions … passed"), plus `d3d12_predicated_copy`, `d3d12_predication_atomic_copy`, `d3d12_noop_copy`, `d3d12_subresource_copy`, `predicated_copy`, `replay_copy_offset`, `replay_khr_as_copy_postbuild`, `replay_write_immediate_predication`, `replay_query_predication`, `d3d12_copy_xfmt`, `d3d12_stencil_copy`, `d3d12_descriptor`, `d3d12_console_descriptor_heap`, `d3d12_set_descriptor_heaps`, `descriptor_table`. - **AMD Radeon iGPU** (gfx1036, `LEONIDA_PC_TAIL_UBO=1`): identical 10/10 + 6/6, `vk_predicated_copy` confirmed on the AMD device, 0 VUIDs. - Clean `origin/main` `c7e82e26e` baseline: 27/27 on both GPUs — no pre-existing failures. Code review agrees with the PR's claim: predication now covers buffer `CopyResource`; only texture copies remain unpredicated, matching the doc update. AI-assisted verification.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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