/third_party/glslang/Test/ |
D | hlsl.gathercmpRGBA.offset.dx10.frag | 45 float4 txval001 = g_tTex2df4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,0)); 46 int4 txval011 = g_tTex2di4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,-1)); 47 uint4 txval021 = g_tTex2du4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,1)); 49 …xval004 = g_tTex2df4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,0), int2(1,0), int2(1,0), int2(1,… 50 …al014 = g_tTex2di4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,-1), int2(1,-1), int2(1,-1), int2(1… 51 …xval024 = g_tTex2du4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,1), int2(1,1), int2(1,1), int2(1,… 53 float4 txval401 = g_tTex2df4 . GatherCmp(g_sSampCmp, c2, 0.75, int2(1,0)); 54 int4 txval411 = g_tTex2di4 . GatherCmp(g_sSampCmp, c2, 0.75, int2(1,-1)); 55 uint4 txval421 = g_tTex2du4 . GatherCmp(g_sSampCmp, c2, 0.75, int2(1,1)); 58 // float4 txval101 = g_tTex2df4 . GatherCmpGreen(g_sSampCmp, c2, 0.75, int2(1,0)); [all …]
|
D | hlsl.rw.vec2.bracket.frag | 4 RWTexture1D <int2> g_tTex1di2; 8 RWTexture2D <int2> g_tTex2di2; 12 RWTexture3D <int2> g_tTex3di2; 16 RWTexture1DArray <int2> g_tTex1di2a; 20 RWTexture2DArray <int2> g_tTex2di2a; 29 uniform int2 c2; 34 uniform int2 o2; 39 uniform int2 ui2; 42 int2 Fn1(in int2 x) { return x; } 46 void Fn2(out int2 x) { x = int2(0,0); } [all …]
|
/third_party/ffmpeg/libavfilter/opencl/ |
D | convolution.cl | 33 int2 loc = (int2)(get_global_id(0), get_global_id(1)); 38 float4 px = read_imagef(src, sampler, loc + (int2)(conv_j, conv_i)); 57 int2 loc = (int2)(get_global_id(0), get_global_id(1)); 59 float4 sum1 = read_imagef(src, sampler, loc + (int2)(-1,-1)) * -1 + 60 read_imagef(src, sampler, loc + (int2)( 0,-1)) * -2 + 61 read_imagef(src, sampler, loc + (int2)( 1,-1)) * -1 + 62 read_imagef(src, sampler, loc + (int2)(-1, 1)) * 1 + 63 read_imagef(src, sampler, loc + (int2)( 0, 1)) * 2 + 64 read_imagef(src, sampler, loc + (int2)( 1, 1)) * 1; 66 float4 sum2 = read_imagef(src, sampler, loc + (int2)(-1,-1)) * -1 + [all …]
|
D | xfade.cl | 27 int2 p = (int2)(get_global_id(0), get_global_id(1)); 41 int2 p = (int2)(get_global_id(0), get_global_id(1)); 55 int2 p = (int2)(get_global_id(0), get_global_id(1)); 69 int2 p = (int2)(get_global_id(0), get_global_id(1)); 83 int2 p = (int2)(get_global_id(0), get_global_id(1)); 95 int2 direction) 99 int2 wh = (int2)(w, h); 100 int2 uv = (int2)(get_global_id(0), get_global_id(1)); 101 int2 pi = (int2)(progress * w, progress * h); 102 int2 p = uv + pi * direction; [all …]
|
D | overlay.cl | 28 int2 overlay_size = get_image_dim(overlay); 29 int2 loc = (int2)(get_global_id(0), get_global_id(1)); 38 int2 loc_overlay = (int2)(x_position, y_position); 53 int2 overlay_size = get_image_dim(overlay); 54 int2 loc = (int2)(get_global_id(0), get_global_id(1)); 63 int2 loc_overlay = (int2)(x_position, y_position); 83 int2 overlay_size = get_image_dim(overlay); 84 int2 loc = (int2)(get_global_id(0), get_global_id(1)); 93 int2 loc_overlay = (int2)(x_position, y_position); 97 int2 loc_alpha = (int2)(loc.x * alpha_adj_x,
|
D | avgblur.cl | 28 int2 loc = (int2)(get_global_id(0), get_global_id(1)); 29 int2 size = (int2)(get_global_size(0), get_global_size(1)); 36 acc += read_imagef(src, sampler, (int2)(xx, loc.y)); 48 int2 loc = (int2)(get_global_id(0), get_global_id(1)); 49 int2 size = (int2)(get_global_size(0), get_global_size(1)); 56 acc += read_imagef(src, sampler, (int2)(loc.x, yy));
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/ |
D | winograd.cl | 57 …bt0 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 0)) + bt1 * READ_IMAGE(input, smp_zero, (int2)… 58 …bt2 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 2)) + bt3 * READ_IMAGE(input, smp_zero, (int2)… 59 …bt4 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 4)) + bt5 * READ_IMAGE(input, smp_zero, (int2)… 62 …bt0 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 0)) + bt1 * READ_IMAGE(input, smp_zero, (int2)… 63 …bt2 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 2)) + bt3 * READ_IMAGE(input, smp_zero, (int2)… 64 …bt4 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 4)) + bt5 * READ_IMAGE(input, smp_zero, (int2)… 67 …bt0 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 0)) + bt1 * READ_IMAGE(input, smp_zero, (int2)… 68 …bt2 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 2)) + bt3 * READ_IMAGE(input, smp_zero, (int2)… 69 …bt4 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 4)) + bt5 * READ_IMAGE(input, smp_zero, (int2)… 72 …bt0 * READ_IMAGE(input, smp_zero, (int2)(x_idx, h + 0)) + bt1 * READ_IMAGE(input, smp_zero, (int2)… [all …]
|
D | arithmetic.cl | 21 const int2 output_shape, float act_min, float act_max) { 28 FLT4 a = READ_IMAGE(input_a, smp_none, (int2)(X, Y)); 29 FLT4 b = READ_IMAGE(input_b, smp_none, (int2)(X, Y)); 32 WRITE_IMAGE(output, (int2)(X, Y), result); 36 const int2 output_shape, float act_min, float act_max) { 43 FLT4 a = READ_IMAGE(input_a, smp_none, (int2)(X, Y)); 44 FLT4 b = READ_IMAGE(input_b, smp_none, (int2)(X, Y)); 47 WRITE_IMAGE(output, (int2)(X, Y), result); 51 const int2 output_shape, float act_min, float act_max) { 58 FLT4 a = READ_IMAGE(input_a, smp_none, (int2)(X, Y)); [all …]
|
D | depthwise_conv2d.cl | 19 … __read_only image2d_t filter, __global FLT4 *bias, int2 kernel_size, 20 … int2 stride, int2 padding, int2 dilation, int4 src_size, int4 dst_size, 38 FLT4 flt_p = READ_IMAGE(filter, smp_zero, (int2)(ky * kernel_size.x + kx, Z)); 39 …FLT4 src_p = READ_IMAGE(src_data, smp_zero, (int2)(Z + x_c * src_size.z, y_c + batch * src_size.y)… 48 WRITE_IMAGE(dst_data, (int2)(X * dst_size.z + Z, Y), res); 52 … __read_only image2d_t filter, __global FLT4 *bias, int2 kernel_size, 53 … int2 stride, int2 padding, int2 dilation, int4 src_size, int4 dst_size, 71 FLT4 flt_p = READ_IMAGE(filter, smp_zero, (int2)(0, Z)); 72 …FLT4 src_p = READ_IMAGE(src_data, smp_zero, (int2)(Z + x_c * src_size.z, y_c + batch * src_size.y)… 80 WRITE_IMAGE(dst_data, (int2)(X * dst_size.z + Z, Y), res); [all …]
|
D | transpose.cl | 30 FLT4 src0 = READ_IMAGE(src_data, smp_zero, (int2)(4 * Z * H4 + X, Y)); 33 src1 = READ_IMAGE(src_data, smp_zero, (int2)((4 * Z + 1) * H4 + X, Y)); 37 src2 = READ_IMAGE(src_data, smp_zero, (int2)((4 * Z + 2) * H4 + X, Y)); 41 src3 = READ_IMAGE(src_data, smp_zero, (int2)((4 * Z + 3) * H4 + X, Y)); 47 WRITE_IMAGE(dst_data, (int2)(Y * C4 + Z, 4 * X), dst0); 49 WRITE_IMAGE(dst_data, (int2)(Y * C4 + Z, 4 * X + 1), dst1); 52 WRITE_IMAGE(dst_data, (int2)(Y * C4 + Z, 4 * X + 2), dst2); 55 WRITE_IMAGE(dst_data, (int2)(Y * C4 + Z, 4 * X + 3), dst3); 66 FLT4 src0 = READ_IMAGE(src_data, smp_zero, (int2)(4 * Z, X * shape.z + Y)); 69 src1 = READ_IMAGE(src_data, smp_zero, (int2)(4 * Z + 1, X * shape.z + Y)); [all …]
|
D | activation.cl | 20 __kernel void LeakyRelu(__read_only image2d_t input, __write_only image2d_t output, const int2 img_… 25 FLT4 in_c4 = READ_IMAGE(input, smp_zero, (int2)(X, Y)); 32 WRITE_IMAGE(output, (int2)(X, Y), tmp); 35 __kernel void Relu(__read_only image2d_t input, __write_only image2d_t output, const int2 img_shape… 39 FLT4 in_c4 = READ_IMAGE(input, smp_zero, (int2)(X, Y)); 41 WRITE_IMAGE(output, (int2)(X, Y), in_c4); 44 __kernel void Relu6(__read_only image2d_t input, __write_only image2d_t output, const int2 img_shap… 48 FLT4 in_c4 = READ_IMAGE(input, smp_zero, (int2)(X, Y)); 50 WRITE_IMAGE(output, (int2)(X, Y), in_c4); 53 __kernel void Sigmoid(__read_only image2d_t input, __write_only image2d_t output, const int2 img_sh… [all …]
|
D | conv2d.cl | 54 int2 dilation, int act_type, float alpha) { 78 FLT4 in_h0_w0 = READ_IMAGE(input, smp_zero, (int2)(x_idx0, y_idx0)); 107 WRITE_IMAGE(output, (int2)(ow0 * CO_SLICES + co_slice0, n_oh0), out_h0_w0_c0); 109 WRITE_IMAGE(output, (int2)(co_slice0, n_oh0 * OW + ow0), out_h0_w0_c0); 115 int2 dilation, int act_type, float alpha) { 146 FLT4 in_h0_w0 = READ_IMAGE(input, smp_zero, (int2)(x_idx0, y_idx0)); 147 FLT4 in_h1_w0 = READ_IMAGE(input, smp_zero, (int2)(x_idx0, y_idx1)); 186 WRITE_IMAGE(output, (int2)(ow0 * CO_SLICES + co_slice0, n_oh0), out_h0_w0_c0); 188 WRITE_IMAGE(output, (int2)(ow0 * CO_SLICES + co_slice0, n_oh1), out_h1_w0_c0); 191 WRITE_IMAGE(output, (int2)(co_slice0, n_oh0 * OW + ow0), out_h0_w0_c0); [all …]
|
D | scale.cl | 22 … __write_only image2d_t output, const int2 output_shape, const int act_type) { 29 FLT4 in = READ_IMAGE(input, smp_none, (int2)(X, Y)); 30 FLT4 s = READ_IMAGE(scale, smp_none, (int2)(X, Y)); 31 FLT4 o = READ_IMAGE(offset, smp_none, (int2)(X, Y)); 38 WRITE_IMAGE(output, (int2)(X, Y), out); 42 const int2 output_shape, const int act_type) { 49 FLT4 in = READ_IMAGE(input, smp_none, (int2)(X, Y)); 56 WRITE_IMAGE(output, (int2)(X, Y), out); 60 … __write_only image2d_t output, const int2 output_shape, const int C, const int act_type) { 67 FLT4 in = READ_IMAGE(input, smp_none, (int2)(X, Y)); [all …]
|
D | cast.cl | 20 __kernel void Cast_fp32_to_fp16(__read_only image2d_t input, __write_only image2d_t output, int2 XY… 26 half4 result = convert_half4(read_imagef(input, smp_none, (int2)(x, y))); 27 write_imageh(output, (int2)(x, y), result); 30 __kernel void Cast_fp32_to_fp32(__read_only image2d_t input, __write_only image2d_t output, int2 XY… 36 float4 result = read_imagef(input, smp_none, (int2)(x, y)); 37 write_imagef(output, (int2)(x, y), result); 40 __kernel void Cast_fp16_to_fp16(__read_only image2d_t input, __write_only image2d_t output, int2 XY… 46 half4 result = read_imageh(input, smp_none, (int2)(x, y)); 47 write_imageh(output, (int2)(x, y), result); 50 __kernel void Cast_fp16_to_fp32(__read_only image2d_t input, __write_only image2d_t output, int2 XY… [all …]
|
D | strassen.cl | 32 FLT4 result_in = READ_IMAGE(input, smp_zero, (int2)(i, gidz)); 50 WRITE_IMAGE(output, (int2)(gidx, gidz), result); 83 FLT4 result1 = READ_IMAGE(input, smp_zero, (int2)(gidy + offset.y, gidx + offset.x)); 84 FLT4 result2 = READ_IMAGE(input, smp_zero, (int2)(gidy + offset.w, gidx + offset.z)); 91 WRITE_IMAGE(output, (int2)(gidy, gidx), result); 104 FLT4 result_M1 = READ_IMAGE(input1, smp_zero, (int2)(gidy, gidx)); 105 FLT4 result_M2 = READ_IMAGE(input2, smp_zero, (int2)(gidy, gidx)); 106 FLT4 result_M3 = READ_IMAGE(input3, smp_zero, (int2)(gidy, gidx)); 107 FLT4 result_M4 = READ_IMAGE(input4, smp_zero, (int2)(gidy, gidx)); 108 FLT4 result_M5 = READ_IMAGE(input5, smp_zero, (int2)(gidy, gidx)); [all …]
|
D | matmul.cl | 32 FLT4 v = READ_IMAGE(input, smp_zero, (int2)(i, gidz)); 46 result += READ_IMAGE(bias, smp_zero, (int2)(gidx, 0)); 47 WRITE_IMAGE(output, (int2)(gidx, gidz), result); 67 FLT4 v = READ_IMAGE(input, smp_zero, (int2)(gidz * ci4 + i, nh_index)); 81 result += READ_IMAGE(bias, smp_zero, (int2)(gidx, 0)); 82 WRITE_IMAGE(output, (int2)(gidz * co4 + gidx, nh_index), result); 103 FLT4 v = READ_IMAGE(input, smp_zero, (int2)(gidz * ci4 + i, nh_index)); 104 FLT4 weight_value0 = READ_IMAGE(weight, smp_zero, (int2)(gidx * 4 * ci4 + i, nh_index)); 106 FLT4 weight_value1 = READ_IMAGE(weight, smp_zero, (int2)((gidx * 4 + 1) * ci4 + i, nh_index)); 108 FLT4 weight_value2 = READ_IMAGE(weight, smp_zero, (int2)((gidx * 4 + 2) * ci4 + i, nh_index)); [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-hlsl/comp/ |
D | image.comp | 13 RWTexture2D<int2> uImageInI2 : register(u10); 14 RWTexture2D<int2> uImageOutI2 : register(u11); 39 float4 f = uImageInF[int2(gl_GlobalInvocationID.xy)].xxxx; 40 uImageOutF[int2(gl_GlobalInvocationID.xy)] = f.x; 41 int4 i = uImageInI[int2(gl_GlobalInvocationID.xy)].xxxx; 42 uImageOutI[int2(gl_GlobalInvocationID.xy)] = i.x; 43 uint4 u = uImageInU[int2(gl_GlobalInvocationID.xy)].xxxx; 44 uImageOutU[int2(gl_GlobalInvocationID.xy)] = u.x; 47 float4 f2 = uImageInF2[int2(gl_GlobalInvocationID.xy)].xyyy; 48 uImageOutF2[int2(gl_GlobalInvocationID.xy)] = f2.xy; [all …]
|
D | image.nonwritable-uav-texture.comp | 14 RWTexture2D<int2> uImageOutI2 : register(u11); 39 float4 f = uImageInF[int2(gl_GlobalInvocationID.xy)]; 40 uImageOutF[int2(gl_GlobalInvocationID.xy)] = f.x; 41 int4 i = uImageInI[int2(gl_GlobalInvocationID.xy)]; 42 uImageOutI[int2(gl_GlobalInvocationID.xy)] = i.x; 43 uint4 u = uImageInU[int2(gl_GlobalInvocationID.xy)]; 44 uImageOutU[int2(gl_GlobalInvocationID.xy)] = u.x; 47 float4 f2 = uImageInF2[int2(gl_GlobalInvocationID.xy)]; 48 uImageOutF2[int2(gl_GlobalInvocationID.xy)] = f2.xy; 49 int4 i2 = uImageInI2[int2(gl_GlobalInvocationID.xy)]; [all …]
|
D | atomic.comp | 15 InterlockedAdd(uImage[int2(1, 5)], 1u, _19); 17 InterlockedAdd(uImage[int2(1, 5)], 1u, _27); 18 iImage[int2(1, 6)] = int(_27).x; 20 InterlockedOr(uImage[int2(1, 5)], 1u, _32); 22 InterlockedXor(uImage[int2(1, 5)], 1u, _34); 24 InterlockedAnd(uImage[int2(1, 5)], 1u, _36); 26 InterlockedMin(uImage[int2(1, 5)], 1u, _38); 28 InterlockedMax(uImage[int2(1, 5)], 1u, _40); 30 InterlockedCompareExchange(uImage[int2(1, 5)], 10u, 2u, _44); 32 InterlockedAdd(iImage[int2(1, 6)], 1, _47); [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-hlsl/comp/ |
D | atomic.comp | 15 InterlockedAdd(uImage[int2(1, 5)], 1u, _19); 17 InterlockedAdd(uImage[int2(1, 5)], 1u, _27); 18 iImage[int2(1, 6)] = int(_27).x; 20 InterlockedOr(uImage[int2(1, 5)], 1u, _32); 22 InterlockedXor(uImage[int2(1, 5)], 1u, _34); 24 InterlockedAnd(uImage[int2(1, 5)], 1u, _36); 26 InterlockedMin(uImage[int2(1, 5)], 1u, _38); 28 InterlockedMax(uImage[int2(1, 5)], 1u, _40); 30 InterlockedCompareExchange(uImage[int2(1, 5)], 10u, 2u, _44); 32 InterlockedAdd(iImage[int2(1, 6)], 1, _47); [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/asm/comp/ |
D | vector-builtin-type-cast-func.asm.comp | 16 int2 get_texcoord(thread const int2& base, thread const int2& index, thread uint3& gl_LocalInvocati… 23 int2 r0 = int2(int2(u0.get_width(), u0.get_height()) >> int2(uint2(4u))); 28 int2 param = r0; 29 int2 param_1 = int2(i, j);
|
/third_party/skia/resources/sksl/shared/ |
D | VectorConstructors.sksl | 6 bool check(float2 v1, float2 v2, float2 v3, float3 v4, int2 v5, int2 v6, float2 v7, float2 v8, 7 float4 v9, int2 v10, bool4 v11, float2 v12, float2 v13, float2 v14, bool2 v15, 21 int2 v5 = int2(1); 22 int2 v6 = int2(float2(1, 2)); 23 float2 v7 = float2(int2(1, 2)); 25 float4 v9 = float4(v6.x, unknownInput, int2(3, 4)); 26 int2 v10 = int2(3.14, v1.x); 33 bool3 v17 = bool3(1.0, int2(77));
|
/third_party/skia/third_party/externals/tint/test/bug/tint/ |
D | 942.wgsl.expected.msl | 26 int2 const dims = int2(tint_symbol_3.get_width(0), tint_symbol_3.get_height(0)); 27 …int2 const baseIndex = as_type<int2>((as_type<uint2>(int2(((uint3(WorkGroupID).xy * uint2((*(tint_… 30 …int2 loadIndex = as_type<int2>((as_type<uint2>(baseIndex) + as_type<uint2>(int2(int(c), int(r))))); 32 loadIndex = int2(loadIndex).yx; 40 …int2 writeIndex = as_type<int2>((as_type<uint2>(baseIndex) + as_type<uint2>(int2(int(c), int(r))))… 42 writeIndex = int2(writeIndex).yx;
|
/third_party/skia/resources/sksl/folding/ |
D | VectorVectorFolding.sksl | 71 ok = ok && (int4(int2(1), int2(2, 3)) + int4(5, 6, 7, 8)) == int4(6, 7, 9, 11); 76 ok = ok && (int2(1) == int2(1, 1)); 77 ok = ok && (int2(1, 1) == int2(1, 1)); 78 ok = ok && !(int2(1) == int2(1, 0)); 79 ok = ok && (int4(1) == int4(int2(1), int2(1))); 80 ok = ok && (int4(int3(1), 1) == int4(int2(1), int2(1))); 81 ok = ok && !(int4(int3(1), 1) == int4(int2(1), 1, 0)); 82 ok = ok && (int2(1) != int2(1, 0)); 83 ok = ok && !(int4(1) != int4(int2(1), int2(1)));
|
/third_party/skia/third_party/externals/tint/test/intrinsics/gen/pack2x16snorm/ |
D | 6c169b.wgsl.expected.glsl | 7 int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff; 40 ERROR: 0:5: 'int2' : undeclared identifier 50 int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff; 73 ERROR: 0:5: 'int2' : undeclared identifier 83 int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff; 107 ERROR: 0:5: 'int2' : undeclared identifier
|