Skip to content

Commit 447e317

Browse files
authored
[ET-VK][q8ta] Fix Adreno pipeline-compile crash in q8ta_pixel_shuffle
Differential Revision: D107443710 Pull Request resolved: pytorch#19989
1 parent fb1e212 commit 447e317

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backends/vulkan/runtime/graph/ops/glsl/q8ta_pixel_shuffle.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void main() {
122122
// helper call needed. (Assumes r*r == inner_block_size == 4, enforced by the
123123
// C++ dispatch's r==2 and packed_dim_block_size==4 asserts.)
124124
const int byte_stride =
125-
int(stride_at(inp, get_packed_dim(inp_layout))) * get_block_numel(inp_layout);
125+
int(safe_idx(inp.strides[0], get_packed_dim(inp_layout))) * get_block_numel(inp_layout);
126126

127127
// lane is the byte position within an int32 word, which equals
128128
// (intra_block_idx % 4) since block_numel is a multiple of 4. And

0 commit comments

Comments
 (0)