mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #1630] [MERGED] d3d12: real SO_STATISTICS query pools (D3D-302) #1644
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#1644
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/1630
Author: @BubsMcgee
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:stream-output📝 Commits (5)
e5a4976d3d12: real SO_STATISTICS query pools (D3D-302)369bb1cd3d12: gate SO_STATISTICS pools and refuse per-stream overlap (D3D-302)6af9c80d3d12: refuse an active SO stream across heaps too (D3D-302)dd6d3fdMerge main into stream-output (#1630)844519aMerge main into stream-output (#1630)📊 Changes
7 files changed (+231 additions, -34 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+13 -8)📝
runtime/shims/d3d12_com.h(+12 -5)📝
runtime/shims/d3d12_vulkan_device.cpp(+28 -9)📝
runtime/src/vulkan_backend.h(+12 -1)📝
runtime/src/vulkan_replay.h(+60 -8)📝
runtime/test/d3d12_vulkan_device_test.cpp(+5 -2)📝
runtime/test/replay_query_predication_test.cpp(+101 -1)📄 Description
Claimed in the coordination issue as: D3D-302 (claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163085669)
Depends on: #1891
Lands only the real
SO_STATISTICSquery-pool part, on its own (the option aslan2142 offered). StreamOutput PSOs are still refused andSOSetTargetsis still not implemented; the capture path is not part of this PR.The device detect/enable and the
vk_pipeline_checkparity fix now live in #1891 (which adopts #1236). This PR is stacked on it and contains only the query pools:VK_EXT_transform_feedbackenabled (by #1891), anSO_STATISTICSheap is a realVK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXTpool, begun and ended indexed on the stream (vkCmdBeginQueryIndexedEXT/vkCmdEndQueryIndexedEXT).ResolveQueryDatacopies the two 64-bit results (NumPrimitivesWritten,PrimitivesStorageNeeded), 16 bytes per query, in the same order.VkQueryPooland resolves zeros, as before.When #1891 merges I will rebase this onto
main; the two foundation commits drop and only the query changes remain.The remaining
pipeline_cache_seedfailure on AMD is neither this PR nor #1891: adrianmjim rechecked on an RX 7900 XT and it fails identically on the basemainwithout either, from #1723'srobustBufferAccesschange. That is #1833, where I flagged a checker-vs-runtimebindlessinput mismatch (the checker's OR of update-after-bind flags vs the runtime's six-feature AND) to correct before relying on it.Tested on
main71a769d7d(Windows 11 Pro 26300, MSVC RelWithDebInfo, NVIDIA RTX 3080 Ti, driver 616.64, Vulkan SDK 1.4.363.0):d3d12_vulkan_device,d3d12_meshandpipeline_cache_seedpass, plain and withLEONIDA_VK_VALIDATION=1. AI-assisted.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.