Repository navigation
d3d12_vulkan_device: detect and enable VK_EXT_transform_feedback (D3D-TRANSFORM-FEEDBACK-DEVICE) - #1236
d3d12_vulkan_device: detect and enable VK_EXT_transform_feedback (D3D-TRANSFORM-FEEDBACK-DEVICE)#1236Miici0 wants to merge 1 commit into
Conversation
Foundation for D3D-302 (stream output): read the physical device's transformFeedback/geometryStreams features where the extension is present, record them on VulkanDeviceInfo, and enable them on the logical device when supported, exactly the same pattern the existing VK_EXT_mesh_shader detection/enable code already follows. Device-capability plumbing only: no behaviour changes yet. A graphics PSO declaring StreamOutput is still refused and SOSetTargets is still not implemented, same as before this commit. Confirmed VK_EXT_transform_feedback is available (4 streams, 4 buffers) on an NVIDIA GeForce RTX 4070 SUPER, driver 621.24. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Read the whole diff and tested
One thing to change: the comments describe behaviour this PR doesn't have. AI-assisted (Claude Code, Claude Opus 5.5). |
|
Heads-up for when this lands: enabling Also noting the |
|
Tested #1236 merged onto current
Both also pass with The PR is (The AMD AI-assisted. |
|
Adopted into #1891: the device commit is unchanged and credited to @Miici0, with the AI-assisted. |
…g uses it yet Addresses Snooozs's review on ProjectLeonida#1236: the comments and the log line no longer claim StreamOutput PSO acceptance, SOSetTargets or capture that this foundation does not have. ProjectLeonida#1630 adds the SO_STATISTICS query pools that use it.
|
Addressed Snooozs's review in #1891 (adopted commit + follow-up): the comments and log now say detected/enabled, nothing uses it yet. Thanks for the catch. |
|
Thanks for this! It landed through #1891, which adopted it with the AI-assisted (Claude Code, Claude Opus 5.5). |
Claimed in the coordination issue as: D3D-TRANSFORM-FEEDBACK-DEVICE (#14 (comment))
Depends on: none
Fixes: none
What and why
Foundation for D3D-302 (stream output, docs/d3d12_vulkan.md): detects
VK_EXT_transform_feedbackand reads itstransformFeedback/geometryStreamsfeatures on the physical device where the extension is present, records them on the newVulkanDeviceInfo::transform_feedback/transform_feedback_geometry_streamsfields, and enables them on the logical device - the same detect/record/enable pattern the existingVK_EXT_mesh_shadercode already uses a few lines above.This is device-capability plumbing only, no behaviour change: a graphics PSO that declares
StreamOutputis still refused withE_NOTIMPLandSOSetTargetsis still not implemented, exactly as onmaintoday. Actually implementing stream output (accepting the PSO, binding real buffers inSOSetTargets, wrapping draws invkCmdBeginTransformFeedbackEXT/EndTransformFeedbackEXT, and wiring theSO_STATISTICSqueries toVK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT) is separate, larger follow-up work.Tested
ctest --test-dir runtime/build -C RelWithDebInfo -R "d3d12_vulkan_device|d3d12_mesh|xbox_present_readback_size": 3/3 pass. Fullruntime/buildcompiles clean (these two files are included by ~100 translation units; all rebuilt without warnings from this change).A standalone probe confirmed
VK_EXT_transform_feedbackis available on this GPU withtransformFeedback/geometryStreamsboth true,maxTransformFeedbackStreams/maxTransformFeedbackBuffersboth 4 - matching D3D12's stream-output model (4 streams, 4 buffers) exactly, so there's no capability mismatch to work around when the real implementation lands.GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.24, Windows 11 26300.9974, Vulkan SDK 1.4.363.1.
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.