diff options
| author | Almogaver295 <133548141+guimsolutions@users.noreply.github.com> | 2026-11-23 09:31:12 +0100 |
|---|---|---|
| committer | Almogaver295 <133548141+guimsolutions@users.noreply.github.com> | 2026-11-23 09:45:07 +0100 |
| commit | 57cb669f52ba6ca4bb58bf2e09492ffbe2b8ee60 (patch) | |
| tree | 2c186fc0ca9722c7bd5a87c3c5edc03eacca4dbc /docs | |
| parent | 1e63e096805a779a61f31715da5498d9864da116 (diff) | |
fix(vulkan): require formatless reads for all D3D-78 UAVs
Coherent 1D and 3D loads and all 1D-array loads can issue OpImageRead on Unknown-format storage views. Require both per-format access bits before registering the view or writing its descriptor, while preserving the formatted RGB9E5 exception.
AI-assisted. Verified the synthetic UAV readback and format refusals with Vulkan validation on RTX 4090 (621.01) and UHD 770 (101.7088).
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/d3d12_vulkan.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 649b5bd30..b64400076 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -1450,10 +1450,11 @@ The layer's descriptor model: | |||
| 1450 | whole-mip and partial UAVs, distinguishes them from SRVs in the hash table, and rebases typed sampled fetches; | 1450 | whole-mip and partial UAVs, distinguishes them from SRVs in the hash table, and rebases typed sampled fetches; |
| 1451 | see the contract in `docs/design.md`. | 1451 | see the contract in `docs/design.md`. |
| 1452 | Without those features a partial W view is logged and left null, not made writable across the whole mip. | 1452 | Without those features a partial W view is logged and left null, not made writable across the whole mip. |
| 1453 | These new dimensions require storage-write-without-format support for the typed view format and, for the | 1453 | Shader-visible 1D, 1D-array and 3D UAVs require both formatless storage read and write support for the actual |
| 1454 | storage-only 1D array bindings, storage-read-without-format as well. Vulkan 1.3 permits the | 1454 | Vulkan view format. `image_load ... glc` uses the storage view for 1D and 3D, and 1D-array loads always use it. |
| 1455 | SPIR-V capabilities even when the legacy `shaderStorageImage{Read,Write}WithoutFormat` bits are not enabled; | 1455 | The emulated RGB9E5 raw `R32_UINT` storage view is formatted and is exempt. Vulkan 1.3 permits these SPIR-V |
| 1456 | the caller-owned device test leaves both bits off and checks the per-format path. | 1456 | capabilities even without the legacy `shaderStorageImage{Read,Write}WithoutFormat` feature bits. The |
| 1457 | caller-owned device test leaves both legacy bits off and masks each per-format bit to verify safe rejection. | ||
| 1457 | `ClearUnorderedAccessView*` refuses partial W ranges and 1D/3D format reinterprets: the transfer clear | 1458 | `ClearUnorderedAccessView*` refuses partial W ranges and 1D/3D format reinterprets: the transfer clear |
| 1458 | cannot target a slice interval or guarantee preserving the reinterpreted bits. | 1459 | cannot target a slice interval or guarantee preserving the reinterpreted bits. |
| 1459 | Shader access to the new UAVs requires `robustImageAccess` (whole-mip CPU clears do not). | 1460 | Shader access to the new UAVs requires `robustImageAccess` (whole-mip CPU clears do not). |
| @@ -1803,8 +1804,7 @@ The trace will enumerate them. | |||
| 1803 | Typed buffer UAVs: the layer writes their V# (section 3.4, "Buffer UAVs"); `rdna2spirv.py` `FORMATS` | 1804 | Typed buffer UAVs: the layer writes their V# (section 3.4, "Buffer UAVs"); `rdna2spirv.py` `FORMATS` |
| 1804 | determines which buffer formats the translator can decode. | 1805 | determines which buffer formats the translator can decode. |
| 1805 | - The UAV atomic bits other than exchange for `R32_UINT` where Vulkan reports storage image atomics. | 1806 | - The UAV atomic bits other than exchange for `R32_UINT` where Vulkan reports storage image atomics. |
| 1806 | The translator and set 0 use the formatted `r32ui` views for 2D and 3D. There is no `image_atomic_swap`, | 1807 | The translator and set 0 use the formatted `r32ui` views for 2D and 3D; `R32_SINT` gets no `r32ui` view. |
| 1807 | and `R32_SINT` gets no `r32ui` view. | ||
| 1808 | - `MULTISAMPLE_RENDERTARGET` for depth formats, from the same usages `MULTISAMPLE_QUALITY_LEVELS` queries. | 1808 | - `MULTISAMPLE_RENDERTARGET` for depth formats, from the same usages `MULTISAMPLE_QUALITY_LEVELS` queries. |
| 1809 | - No integer resolve, no 1D block-compressed. Depth formats are 2D and cube only: no 3D, shader reads, UAVs, | 1809 | - No integer resolve, no 1D block-compressed. Depth formats are 2D and cube only: no 3D, shader reads, UAVs, |
| 1810 | buffer or vertex use, and no 1D, which native D3D12 allows but the layer's resource creation refuses. | 1810 | buffer or vertex use, and no 1D, which native D3D12 allows but the layer's resource creation refuses. |