Files
metal2vulkan/crates
Anees Iqbal 2b45afa2ab Fixture: kernel_handle_word_joins's sampler entries load the element at a run-time index
The sampler entries read samplers[slot[gid] & 3] again, the structure under test: a word loaded
from a sampler-array element at a run-time index (a GEP whose index is a value, not element 0)
meets the constexpr sampler's bits at a join. The array stays an array<sampler, 1>: the authored
case checker binds only the first slot of a sampler array (the case schema has no sampler-array
resource), so the cases' slot values make the index 0 and Metal reads the one element.

engine_handle_words compiles the same three sampler entries over an array<sampler, 8>, a text edit
of the fixture's byval, GEP and argument metadata types, on every committed profile under both
policies, and checks the element's load is the clamped load over its run-time index range.

Verified: nothing yet at this commit; the next job runs the tests and llvm-dis of the twin.
2026-12-03 05:57:29 -08:00
..