diff --git a/backends/vulkan/runtime/graph/ops/glsl/indexing.glslh b/backends/vulkan/runtime/graph/ops/glsl/indexing.glslh index fd2c31938d9..af9ba9bcfac 100644 --- a/backends/vulkan/runtime/graph/ops/glsl/indexing.glslh +++ b/backends/vulkan/runtime/graph/ops/glsl/indexing.glslh @@ -418,7 +418,7 @@ TensorIndex linear_idx_to_tensor_idx_channelslast_case( uint linear_idx) { TensorIndex tidx; - const uint dim_order[DIMLIMIT] = uint[DIMLIMIT](2, 0, 1, 3, 6, 5, 4, 7); + const uint dim_order[DIMLIMIT] = uint[DIMLIMIT](2, 0, 1, 3, 4, 5, 6, 7); [[unroll]] for (int d = DIMLIMIT - 1; d >= 0; --d) { uint dim = dim_order[d]; diff --git a/backends/vulkan/test/op_tests/cases.py b/backends/vulkan/test/op_tests/cases.py index 08625e4c234..28774dd7261 100644 --- a/backends/vulkan/test/op_tests/cases.py +++ b/backends/vulkan/test/op_tests/cases.py @@ -1148,7 +1148,12 @@ def get_permute_inputs(): # Pixel shuffle decomposed into view -> permute -> view, which leaves a # packed dim of size 2. - highdim_test_suite = VkTestSuite([((1, 3, 2, 2, 5, 6), (0, 1, 4, 2, 5, 3))]) + highdim_test_suite = VkTestSuite( + [ + ((1, 3, 2, 2, 5, 6), (0, 1, 4, 2, 5, 3)), + ((2, 3, 2, 2, 5, 6), (0, 1, 4, 2, 5, 3)), + ] + ) highdim_test_suite.layouts = test_suite.layouts highdim_test_suite.storage_types = ["utils::kBuffer"] highdim_test_suite.dtypes = ["at::kFloat", "at::kInt"]