diff options
| author | Ryx <118130241+Ryx69@users.noreply.github.com> | 2026-11-22 00:21:53 +0100 |
|---|---|---|
| committer | Ryx <118130241+Ryx69@users.noreply.github.com> | 2026-11-22 05:01:36 +0100 |
| commit | 80e5cacabed8af5c0e9da9a35734a7c88198ff97 (patch) | |
| tree | 3158cc3c46005770f05684e11cc6be2af60beedd /runtime/src/pe_loader.cpp | |
| parent | 1267591716621f05c24c0d5570eb29bca157050d (diff) | |
Runtime: refuse PSOs below 144 bytes of push constants; push-constant stages from the stage table
Review feedback from IAmNotSiob:
- Both PSO paths declared a 144-byte push-constant range without consulting #224's limit. On a device with
maxPushConstantsSize 128 (the Vulkan minimum) that breaks VUID-VkPushConstantRange-size-00298 and returns a
bare E_FAIL. Both paths now refuse with E_NOTIMPL and log the limit until the uniform-buffer tail exists.
d3d12_compute_test checks this with a device that reports 128 bytes.
- The graphics range's stage flags are now the whole stage table create_graphics accepts, kept in
GraphicsPipeline::push_stages, and the replay pushes with the same flags. A geometry or mesh stage added to
the table is covered without another change.
docs/d3d12_vulkan.md section 5.2 now counts code-base readers per stage with the current translator: of the 662
shaders with s_getpc_b64, 53 VS, 92 PS, 246 MS and 263 CS read the code base. VS+PS pairs are only known at
PSO creation.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions