diff --git a/runtime/test/vk_texture_test.cpp b/runtime/test/vk_texture_test.cpp index 8c3368b25..97e93cb04 100644 --- a/runtime/test/vk_texture_test.cpp +++ b/runtime/test/vk_texture_test.cpp @@ -327,7 +327,10 @@ int main(int argc, char** argv) { leonida::DescriptorTable desc_table(16); // The heap already holds the original key. Change only the registered key for the miss control. if (fetch_miss) tsharp[7] ^= 1; - desc_table.insert(tsharp, 1, leonida::kind_sampled_bit(cube ? 1 : 0)); + // Index 1 is bound in both sampled arrays the shaders read: images[1] (binding 0, the 2D view) and the 2D-array + // images[1] (binding 3, the view of the two cubes). A tagged module reads its instruction's array only when the + // entry's kind names it, so the kind carries both: with one bit, a 2D_ARRAY or cube op got the 1x1 fallback. + desc_table.insert(tsharp, 1, leonida::kind_sampled_bit(0) | leonida::kind_sampled_bit(1)); desc_table.insert(ssharp, 1); const auto table = desc_table.build_gpu_buffer(true); VkBuffer tb; VkDeviceMemory tbm; void* tbp;