From 6246f5a3126f9ef5c97e89afe09def45194c12ce Mon Sep 17 00:00:00 2001 From: Tauwni <102470988+Tauwni@users.noreply.github.com> Date: Thu, 26 Nov 2026 02:20:48 +0100 Subject: [PATCH] vk_texture_test: tag index 1 as bound in both sampled arrays it fills (2D and 2D array) Since #2098 a tagged module reads its instruction's array only when the table entry's kind names it. The harness binds index 1 in images[1] (binding 0) and in the 2D-array images[1] (binding 3), but tagged it 2D only (2D array in cube mode), so ps_array_resinfo and ps_get_lod_array read the 1x1 fallback on every driver. Co-Authored-By: Claude Opus 5.5 --- runtime/test/vk_texture_test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/test/vk_texture_test.cpp b/runtime/test/vk_texture_test.cpp index 8c3368b257..97e93cb046 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;