File tree 1 file changed +3
-10
lines changed
backends/vulkan/runtime/graph/ops/glsl 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -69,22 +69,15 @@ void no_repeat_copy(ivec3 pos) {
69
69
// Keep input values from the end of current input pixel based on src_lane_offset
70
70
// offset 1 means the first lane of current input texel is not a part of the output texel
71
71
// offset 2 means first 2 lanes are not and so on
72
- if (src_lane_offset == 1 ) {
73
- in_value.xyz = in_value.yzw;
74
- } else if (src_lane_offset == 2 ) {
75
- in_value.xy = in_value.zw;
76
- } else {
77
- in_value.x = in_value.w;
78
- }
79
72
// Copy next texel's values towards the end of input texel, based on lane offset
80
73
// offset 1 means the first lane from next texel is part of the input texel
81
74
// offset 2 means first 2 lanes from next texel is part of the input texel and so on
82
75
if (src_lane_offset == 1 ) {
83
- in_value.w = next_value.x;
76
+ in_value = ivec4 (in_value.yzw, next_value.x) ;
84
77
} else if (src_lane_offset == 2 ) {
85
- in_value.zw = next_value.xy;
78
+ in_value = ivec4 (in_value.zw, next_value.xy) ;
86
79
} else {
87
- in_value.yzw = next_value.xyz;
80
+ in_value = ivec4 (in_value.w, next_value.xyz) ;
88
81
}
89
82
}
90
83
You can’t perform that action at this time.
0 commit comments