[PR #2277] d3d12: honor predication when clearing buffer UAVs #2282

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

📋 Pull Request Information

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

Base: main ← Head: d3d12-predicated-buffer-uav-clear


📝 Commits (1)

  • c538115 d3d12: honor predication when clearing buffer UAVs

📊 Changes

8 files changed (+209 additions, -60 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+6 -1)
📝 runtime/src/predicated_copy.comp (+20 -4)
📝 runtime/src/predicated_copy_spv.h (+66 -44)
📝 runtime/src/vulkan_backend.h (+5 -0)
📝 runtime/src/vulkan_predicated_copy.h (+33 -7)
📝 runtime/src/vulkan_replay.h (+27 -2)
📝 runtime/test/d3d12_uav_clear_test.cpp (+40 -1)
📝 runtime/test/vk_predicated_copy_test.cpp (+12 -1)

📄 Description

Claimed as D3D-PREDICATED-BUFFER-UAV-CLEAR.

Summary

Buffer ClearUnorderedAccessViewUint and ClearUnorderedAccessViewFloat now honor SetPredication. The Vulkan replay uses the existing conditional compute path to repeat the encoded UAV element across each validated range. It carries the element position across descriptor windows and excludes the helper dispatches from application pipeline statistics.

Verification

Checked skipped and executed buffer clears by reading back their bytes, including narrow float-converted elements, overlapping integer ranges and a wide pattern split across descriptor windows. Ran the existing predicated-copy and short-clear coverage.

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/2277 **Author:** [@PyZikYG](https://github.com/PyZikYG) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `d3d12-predicated-buffer-uav-clear` --- ### 📝 Commits (1) - [`c538115`](https://github.com/ubiquitarianism/leonida/commit/c538115116a2bd2946ea53e973508c964fd26a77) d3d12: honor predication when clearing buffer UAVs ### 📊 Changes **8 files changed** (+209 additions, -60 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+6 -1) 📝 `runtime/src/predicated_copy.comp` (+20 -4) 📝 `runtime/src/predicated_copy_spv.h` (+66 -44) 📝 `runtime/src/vulkan_backend.h` (+5 -0) 📝 `runtime/src/vulkan_predicated_copy.h` (+33 -7) 📝 `runtime/src/vulkan_replay.h` (+27 -2) 📝 `runtime/test/d3d12_uav_clear_test.cpp` (+40 -1) 📝 `runtime/test/vk_predicated_copy_test.cpp` (+12 -1) </details> ### 📄 Description Claimed as [D3D-PREDICATED-BUFFER-UAV-CLEAR](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7191562917). ### Summary Buffer `ClearUnorderedAccessViewUint` and `ClearUnorderedAccessViewFloat` now honor `SetPredication`. The Vulkan replay uses the existing conditional compute path to repeat the encoded UAV element across each validated range. It carries the element position across descriptor windows and excludes the helper dispatches from application pipeline statistics. ### Verification Checked skipped and executed buffer clears by reading back their bytes, including narrow float-converted elements, overlapping integer ranges and a wide pattern split across descriptor windows. Ran the existing predicated-copy and short-clear coverage. 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#2282
No description provided.