You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 60909ad
Browse filesBrowse the repository at this point in the historyBrowse files
[ET-VK] Modernize staging shaders to use indexing.glslh and TextureMetadata
Pull Request resolved: pytorch#18450
Rewrites nchw_to_image.glsl and image_to_nchw.glsl from scratch using the
modern indexing.glslh header with TextureMetadata UBOs. This eliminates all
dynamic array indexing patterns (e.g. tidx[packed_dim], sizes[packed_dim])
from the old indexing_utils.h header that triggered SIGSEGV crashes in the
Adreno 740 GPU driver's shader compiler during vkCreateComputePipelines.
The new shaders follow the same component loop pattern used by
gather_texture.glsl: convert texture position to TensorIndex4D via
texture_pos_to_tensor4d_idx_simple(), then iterate over packed components.
Also removes the USE_PUSH_CONST/no_pc shader variants since the rewritten
shaders always use UBOs via TextureMetadata.
C++ dispatch code (Staging.cpp, Clone.cpp) updated to pass TextureMetadata
UBOs for texture tensors and BufferMetadata UBOs for the clone
buffer↔image paths.
ghstack-source-id: 357266946
@exported-using-ghexport
Differential Revision: [D97959285](https://our.internmc.facebook.com/intern/diff/D97959285/)
0 commit comments