upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/d3d12_com.cpp
diff options
context:
space:
mode:
authorTomgamer <tomanhorak22@gmail.com>2026-11-22 15:49:23 +0100
committerTomgamer <tomanhorak22@gmail.com>2026-11-22 15:49:23 +0100
commit4de870250e3b0dc9dc0a3701f4114526c8cfc80c (patch)
tree17b6dbf54f7652fb6e7d5d6b60310f49905e1df4 /runtime/shims/d3d12_com.cpp
parent003e78129303643a3fdc9e5f0e31a01b09759236 (diff)
SHADER-309: keep compute workgroup memory under the limit
--wave64-emulate adds %x_buf (2L + 6W + 7 dwords) on top of the LDS array, so a 64 KiB LDS made modules over maxComputeSharedMemorySize, which spirv-val accepts and RADV dies on (#1721). Translator: a 64 KiB hard cap (MAX_SHARED_BYTES, --max-shared-memory). Over it, the pow2-rounded LDS array shrinks to the room left when the program's need fits (indices wrap with OpUMod); otherwise the shader is refused (Unsupported, with the byte counts). lds_bytes in index.json is now the whole Workgroup total. Runtime: the D3D12 shim's create_compute compares lds_bytes with the device's maxComputeSharedMemorySize (32768 on AMD Windows and Intel) and refuses the pipeline with a log line instead of creating it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/shims/d3d12_com.cpp')
0 files changed, 0 insertions, 0 deletions