mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #2277] d3d12: honor predication when clearing buffer UAVs #2282
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2282
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
c538115d3d12: 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
ClearUnorderedAccessViewUintandClearUnorderedAccessViewFloatnow honorSetPredication. 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.