upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authorVictorJulianiR <juliani_rodrigues@hotmail.com>2026-11-21 22:41:59 -0300
committerVictorJulianiR <juliani_rodrigues@hotmail.com>2026-11-21 22:41:59 -0300
commit2e8101baa5430bb167cd0b15cb8377eb32ec1f2f (patch)
tree80c16025f9b4102173bba0d9425c7b8facadec05 /runtime/test/gameinput_test.cpp
parentc432cdce127ed2d22a99aa6ef57d91db4a10b5bb (diff)
tests/semantic: PSB loads and stores in the mini interpreter are one aligned 32-bit word
spirv_mini_interp keeps PhysicalStorageBuffer memory as a flat {byte address: 32-bit word} map, but OpLoad and OpStore on a PSB pointer used it for any type and address: an OpLoad %ulong gave only the low word, a float or 64-bit store wrote one non-word entry, and a load at an address that is not 4-byte aligned (undefined under the translator's Aligned 4) read 0, or whatever a test seeded at that byte key. They now raise UnsupportedConstruct, as the atomics on the same memory already did for non-32-bit types. The translator emits only %uint PSB accesses on dword-aligned pointers, so no current result changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions