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 46afcfa
Browse filesBrowse the repository at this point in the historyBrowse files
[ET-VK] Add storage_type parameter to define_required_extensions (pytorch#16855)
Update the `define_required_extensions` function in gen_vulkan_spv.py to
accept a `storage_type` argument as the first parameter. This allows the
function to generate appropriate GLSL extensions based on both the storage
type and data type, enabling more precise extension requirements for
different shader configurations.
Also add a new `define_explicit_type_extensions` helper function for cases
where only explicit arithmetic type extensions are needed without the
storage-related image format extensions.
Updated all 72 GLSL shader files across:
- runtime/graph/ops/glsl/ (67 files)
- test/glsl/ (2 files)
- test/custom_ops/glsl/ (2 files)
Fixed shaders that need extensions for multiple storage types:
- linear_q4gsw_coop.glsl, linear_q4gsw_tiled.glsl, linear_q8csw_tiled.glsl:
Added buffer extensions for shaders using both texture and buffer storage
- image_to_nchw.glsl, permute_texture.glsl: Added explicit type extensions
- scalar_tensor.glsl: Use explicit type extensions for SCALAR_VALUE_TYPE
Differential Revision: [D91281385](https://our.internmc.facebook.com/intern/diff/D91281385/)
0 commit comments