[ET-VK] Minor improvement to q_linear op shader. #7643
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
Context
The stack of diffs aims to optimize the performance of the Executorch Vulkan backend by making changes to the q_linear, q_8w_linear, and conv2d_pw ops. The changes include reducing the precision of int storage, reducing register usage, improving texture coordinate storage, and reducing shader register pressure. The overall purpose of the diffs is to improve the performance of Executorch on Vulkan-based devices.
This Diff
This diff contains a minor improvement to the q_linear op shader in the Vulkan backend for Executorch. The code changes in the q_8w_linear.glsl file include a change in the input parameter from a 3-element u16vec3 to a 2-element u16vec2, and a change in the loop variable from i to x. The changes were made to improve the performance of the shader.
Differential Revision: D68113154