File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
backends/vulkan/runtime/graph/ops/glsl Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ shared u16vec2 pos_shared[gl_WorkGroupSize.x * gl_WorkGroupSize.y * gl_WorkGroup
43
43
* size is only 1x1, making it easier to re-use loaded texels from t_kernel.
44
44
*/
45
45
void main() {
46
- const uint16_t out_limits_y_scaled = uint16_t(( out_limits.y + TILE_SIZE - 1 ) / TILE_SIZE) ;
46
+ const uvec2 out_limits_scaled = ( out_limits.xy + TILE_SIZE - 1 ) / TILE_SIZE;
47
47
const uint shared_mem_stride = gl_WorkGroupSize.x * gl_WorkGroupSize.y * gl_WorkGroupSize.z;
48
48
49
49
const u16vec3 gpos = u16vec3(
50
- gl_GlobalInvocationID.x / (out_limits_y_scaled * out_limits.z) ,
51
- (gl_GlobalInvocationID.x / out_limits.z ) % out_limits_y_scaled ,
52
- gl_GlobalInvocationID.x % out_limits.z );
50
+ gl_GlobalInvocationID.x % out_limits_scaled.x ,
51
+ (gl_GlobalInvocationID.x / out_limits_scaled.x ) % out_limits_scaled.y ,
52
+ gl_GlobalInvocationID.x / (out_limits_scaled.x * out_limits_scaled.y) );
53
53
54
54
// Output position for TILE_SIZE = 2
55
55
// +--------+--------+
You can’t perform that action at this time.
0 commit comments