diff options
| author | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-23 00:39:08 +0100 |
|---|---|---|
| committer | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-23 00:39:08 +0100 |
| commit | fc2bd57aa3024f47139aa2dd74f922ae2b0a8dbb (patch) | |
| tree | 5b66af65773dd9e8f3609471a1c2fa04d74d0df1 /docs | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
d3d12: ClearDepthStencilView ignores a flag for a plane the view lacks (D3D-437)
STENCIL on a D32_FLOAT view used to make prepare return invalid_clear, so
the whole command list was dropped. Like the PC runtime (WARP), the absent
plane is now ignored: STENCIL alone clears nothing, DEPTH | STENCIL clears
the depth plane. d3d12_clear_test compares three such cases with WARP.
AI-assisted.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/d3d12_vulkan.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 07db247b0..70e2f38c2 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -169,6 +169,10 @@ What is implemented (all of it testable without the game): | |||
| 169 | `DiscardResource`, `WriteBufferImmediate` and `AtomicCopyBufferUINT` / `AtomicCopyBufferUINT64`, and `BeginQuery` / | 169 | `DiscardResource`, `WriteBufferImmediate` and `AtomicCopyBufferUINT` / `AtomicCopyBufferUINT64`, and `BeginQuery` / |
| 170 | `EndQuery` / `ResolveQueryData` (section 4.6). | 170 | `EndQuery` / `ResolveQueryData` (section 4.6). |
| 171 | Views and rectangles are copied while recording, so the CPU descriptor slot can be rewritten afterwards. | 171 | Views and rectangles are copied while recording, so the CPU descriptor slot can be rewritten afterwards. |
| 172 | A `ClearDepthStencilView` flag for a plane the view's format doesn't have is ignored, as the PC runtime (WARP) | ||
| 173 | does: `STENCIL` on a `D32_FLOAT` view clears nothing and `DEPTH | STENCIL` clears the depth plane. Until 2026-11-23 | ||
| 174 | `prepare` returned `invalid_clear` for it and the whole list was dropped (D3D-437); `d3d12_clear_test` compares three | ||
| 175 | such cases with WARP. | ||
| 172 | - **Replay** (`runtime/src/vulkan_replay.h`): `prepare` resolves and checks a list without writing anything, `emit` | 176 | - **Replay** (`runtime/src/vulkan_replay.h`): `prepare` resolves and checks a list without writing anything, `emit` |
| 173 | writes it. Legacy states map through the section 4.3 table (`vulkan_access`), enhanced barriers through | 177 | writes it. Legacy states map through the section 4.3 table (`vulkan_access`), enhanced barriers through |
| 174 | `vulkan_sync` / `vulkan_barrier_access` / `vulkan_layout` to `vkCmdPipelineBarrier2`. Whole-view clears are | 178 | `vulkan_sync` / `vulkan_barrier_access` / `vulkan_layout` to `vkCmdPipelineBarrier2`. Whole-view clears are |