diff options
| author | aslan2142 <jan.trencansky@protonmail.com> | 2026-11-25 23:37:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-25 23:37:24 +0100 |
| commit | 5fab9396763ca4d052af8abc71f29ad200e7b5ef (patch) | |
| tree | a8a751a8bc7e630bc6346d348b1405b2121de134 /docs | |
| parent | 1bf5eeafd7041db163a6f027ba6145262f70e48a (diff) | |
| parent | 844519ab597c910797606f14ea10e0d95e99210e (diff) | |
Merge pull request #1630 from BubsMcgee/stream-output
d3d12: real SO_STATISTICS query pools (D3D-302)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/d3d12_vulkan.md | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index ce1a5f7be..4c90fce05 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -3788,15 +3788,20 @@ Implemented (`QueryHeap` in `runtime/shims/d3d12_vulkan_device.cpp`, the query c | |||
| 3788 | (`compare_invalid_arguments`, "query heap:", RTX 5070 / 621.14): `E_INVALIDARG` for no queries, a node other than | 3788 | (`compare_invalid_arguments`, "query heap:", RTX 5070 / 621.14): `E_INVALIDARG` for no queries, a node other than |
| 3789 | node 0, or a type past `PIPELINE_STATISTICS1` (7), checked before the output; a valid description with a null | 3789 | node 0, or a type past `PIPELINE_STATISTICS1` (7), checked before the output; a valid description with a null |
| 3790 | output is then `E_UNEXPECTED`, not `S_FALSE`. | 3790 | output is then `E_UNEXPECTED`, not `S_FALSE`. |
| 3791 | - **Stream-output statistics** (D3D-302). The layer has no stream output: a graphics PSO with `StreamOutput` | 3791 | - **Stream-output statistics** (D3D-302). The layer still refuses `StreamOutput` PSOs and does not implement |
| 3792 | entries is refused and `SOSetTargets` is not implemented, so no primitive reaches a stream and every | 3792 | `SOSetTargets`, so no primitive reaches a stream yet. With `VK_EXT_transform_feedback` enabled on the device |
| 3793 | `SO_STATISTICS_STREAM0..3` query counts 0 written and 0 needed. An `SO_STATISTICS` heap is therefore made without | 3793 | (`D3D-TRANSFORM-FEEDBACK-DEVICE`) and its `transformFeedbackQueries` property set, an `SO_STATISTICS` heap is a |
| 3794 | a `VkQueryPool`: `BeginQuery`/`EndQuery` record nothing in Vulkan (D3D12's call rules are still kept, and the | 3794 | real `VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT` pool begun and ended indexed on the stream |
| 3795 | (`vkCmdBeginQueryIndexedEXT` / `vkCmdEndQueryIndexedEXT`), and `ResolveQueryData` copies the two 64-bit results per | ||
| 3796 | query (16 bytes: `NumPrimitivesWritten`, `PrimitivesStorageNeeded`), in the same order; with no stream output they | ||
| 3797 | are 0. A stream at or above the device's `maxTransformFeedbackStreams` runs nothing and resolves zero, as if the | ||
| 3798 | heap had no pool. Without the feature, the property, or a nonzero `maxTransformFeedbackStreams`, the heap is made | ||
| 3799 | without a `VkQueryPool`: `BeginQuery`/`EndQuery` run nothing in Vulkan (D3D12's call rules are still kept, and the | ||
| 3795 | heap's queries track ended or not as the others do), they overlap no other query, and `ResolveQueryData` writes | 3800 | heap's queries track ended or not as the others do), they overlap no other query, and `ResolveQueryData` writes |
| 3796 | zeros (`vkCmdFillBuffer`, 16 bytes per query: `NumPrimitivesWritten`, `PrimitivesStorageNeeded`), with no | 3801 | zeros (`vkCmdFillBuffer`, 16 bytes per query), with no statistics split since nothing is dispatched. Two |
| 3797 | statistics split since nothing is dispatched. When stream output lands, the heap becomes a | 3802 | overlapping `SO_STATISTICS` queries on one stream would be two active indexed queries in one pool |
| 3798 | `VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT` pool begun with `vkCmdBeginQueryIndexedEXT` on the stream, whose two | 3803 | (`VUID-vkCmdBeginQueryIndexedEXT-queryPool-04753`), so `prepare()` refuses such a list |
| 3799 | results are in the same order. | 3804 | (`ReplayResult::invalid_query`); queries on different streams are fine. |
| 3800 | - **Recording.** The list keeps D3D12's rules for the calls: timestamps only have `EndQuery`; every other query is | 3805 | - **Recording.** The list keeps D3D12's rules for the calls: timestamps only have `EndQuery`; every other query is |
| 3801 | begun and ended in the same list with the same type, is not begun again while it runs, and is not resolved while | 3806 | begun and ended in the same list with the same type, is not begun again while it runs, and is not resolved while |
| 3802 | it runs; resolve offsets are multiples of 8. A list closed with a query still running reports `E_INVALIDARG` and | 3807 | it runs; resolve offsets are multiples of 8. A list closed with a query still running reports `E_INVALIDARG` and |