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

Open
opened 2026-11-26 20:21:22 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1443
Author: @PyZikYG
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: d3d12-predicated-copy-resource


📝 Commits (1)

  • b21bfff d3d12: honor predication for buffer CopyResource

📊 Changes

4 files changed (+52 additions, -24 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+4 -3)
📝 runtime/src/vulkan_replay.h (+17 -9)
📝 runtime/test/d3d12_predicated_copy_test.cpp (+16 -10)
📝 runtime/test/predicated_copy_test.cpp (+15 -2)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1443 **Author:** [@PyZikYG](https://github.com/PyZikYG) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `d3d12-predicated-copy-resource` --- ### 📝 Commits (1) - [`b21bfff`](https://github.com/ubiquitarianism/leonida/commit/b21bfffbea9337fa38afe696d8ae51d7149452cf) d3d12: honor predication for buffer CopyResource ### 📊 Changes **4 files changed** (+52 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+4 -3) 📝 `runtime/src/vulkan_replay.h` (+17 -9) 📝 `runtime/test/d3d12_predicated_copy_test.cpp` (+16 -10) 📝 `runtime/test/predicated_copy_test.cpp` (+15 -2) </details> ### 📄 Description Claimed as [D3D-PREDICATED-COPY-RESOURCE](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148306735). ### 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#1473
No description provided.