Home
last modified time | relevance | path

Searched refs:int2 (Results 1 – 25 of 146) sorted by relevance

123456

/external/deqp-deps/glslang/Test/
Dhlsl.gathercmpRGBA.offset.dx10.frag45 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 …]
Dhlsl.rw.vec2.bracket.frag4 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 …]
Dhlsl.intrinsics.evalfns.frag2 void main(float inF1, float2 inF2, float3 inF3, float4 inF4, int2 inI2) : COLOR
4 EvaluateAttributeSnapped(inF1, int2(8,15));
5 EvaluateAttributeSnapped(inF2, int2(0,1));
6 EvaluateAttributeSnapped(inF3, int2(3,10));
7 EvaluateAttributeSnapped(inF4, int2(7,8));
Dhlsl.samplecmplevelzero.offset.dx10.frag47 float r21 = g_tTex2df4 . SampleCmpLevelZero(g_sSamp, float2(0.1, 0.2), 0.75, int2(2,3));
48 float r23 = g_tTex2di4 . SampleCmpLevelZero(g_sSamp, float2(0.1, 0.2), 0.75, int2(2,3));
49 float r25 = g_tTex2du4 . SampleCmpLevelZero(g_sSamp, float2(0.1, 0.2), 0.75, int2(2,3));
58 // float r51 = g_tTexcdf4 . SampleCmpLevelZero(g_sSamp, float3(0.1, 0.2, 0.3), 0.75, int2(2,3));
59 // float r53 = g_tTexcdi4 . SampleCmpLevelZero(g_sSamp, float3(0.1, 0.2, 0.3), 0.75, int2(2,3));
60 // float r55 = g_tTexcdu4 . SampleCmpLevelZero(g_sSamp, float3(0.1, 0.2, 0.3), 0.75, int2(2,3));
/external/clang/test/CodeGen/
Dpalignr.c19 typedef __attribute__((vector_size(8))) int int2; typedef
22 int2 align5(int2 a, int2 b) { return _mm_alignr_pi8(a, b, 8); } in align5()
25 int2 align6(int2 a, int2 b) { return _mm_alignr_pi8(a, b, 9); } in align6()
28 int2 align7(int2 a, int2 b) { return _mm_alignr_pi8(a, b, 16); } in align7()
31 int2 align8(int2 a, int2 b) { return _mm_alignr_pi8(a, b, 7); } in align8()
/external/clang/test/SemaOpenCL/
Dcond.cl9 typedef int int2 __attribute__((ext_vector_type(2)));
27 int2 ptest03(char C, char X, int2 Y)
39 int2 ptest05(int2 C, int X, char Y)
45 float2 ptest06(int2 C, float X, float Y)
51 float2 ptest07(int2 C, int X, float Y)
57 float2 ptest08(int2 C, int X, float2 Y)
70 int2 ntest01(char2 C, int X, int Y)
75 int2 ntest02(char2 C, int2 X, int2 Y)
77 …ector condition type 'char2' (vector of 2 'char' values) and result type 'int2' (vector of 2 'int'…
80 uchar2 ntest03(int2 C, uchar X, uchar Y)
[all …]
Dvector_literals_const.cl4 typedef int int2 __attribute((ext_vector_type(2)));
9 __constant int4 i_2_1_1 = (int4)((int2)(1,2),3,4);
10 __constant int4 i_1_2_1 = (int4)(1,(int2)(2,3),4);
11 __constant int4 i_1_1_2 = (int4)(1,2,(int2)(3,4));
12 __constant int4 i_2_2 = (int4)((int2)(1,2),(int2)(3,4));
Dshifts.cl8 typedef __attribute__((ext_vector_type(2))) int int2;
26 char2 ptest04(char2 c, int2 s) {
30 int2 ptest05(int2 c, char2 s) {
59 int2 ntest04(int2 c, float s) {
/external/libxcam/cl_kernel/
Dkernel_csc.cl13 float4 pixel_in1 = read_imagef(input, sampler, (int2)(2 * x, 2 * y));
14 float4 pixel_in2 = read_imagef(input, sampler, (int2)(2 * x + 1, 2 * y));
15 float4 pixel_in3 = read_imagef(input, sampler, (int2)(2 * x, 2 * y + 1));
16 float4 pixel_in4 = read_imagef(input, sampler, (int2)(2 * x + 1, 2 * y + 1));
42 write_imagef(output_y, (int2)(2 * x, 2 * y), pixel_out_y1);
43 write_imagef(output_y, (int2)(2 * x + 1, 2 * y), pixel_out_y2);
44 write_imagef(output_y, (int2)(2 * x, 2 * y + 1), pixel_out_y3);
45 write_imagef(output_y, (int2)(2 * x + 1, 2 * y + 1), pixel_out_y4);
46 write_imagef(output_uv, (int2)(2 * x, y), pixel_out_u);
47 write_imagef(output_uv, (int2)(2 * x + 1, y), pixel_out_v);
[all …]
Dkernel_tnr.cl21 float4 pixel_t0_Y1 = read_imagef(inputFrame0, sampler, (int2)(2 * x, 2 * y));
22 float4 pixel_t0_Y2 = read_imagef(inputFrame0, sampler, (int2)(2 * x + 1, 2 * y));
23 float4 pixel_t0_Y3 = read_imagef(inputFrame0, sampler, (int2)(2 * x, 2 * y + 1));
24 float4 pixel_t0_Y4 = read_imagef(inputFrame0, sampler, (int2)(2 * x + 1, 2 * y + 1));
26 float4 pixel_t0_U = read_imagef(inputFrame0, sampler, (int2)(2 * x, y + vertical_offset));
27 float4 pixel_t0_V = read_imagef(inputFrame0, sampler, (int2)(2 * x + 1, y + vertical_offset));
29 float4 pixel_Y1 = read_imagef(inputFrame, sampler, (int2)(2 * x, 2 * y));
30 float4 pixel_Y2 = read_imagef(inputFrame, sampler, (int2)(2 * x + 1, 2 * y));
31 float4 pixel_Y3 = read_imagef(inputFrame, sampler, (int2)(2 * x, 2 * y + 1));
32 float4 pixel_Y4 = read_imagef(inputFrame, sampler, (int2)(2 * x + 1, 2 * y + 1));
[all …]
Dkernel_wavelet_haar.cl33 line[0].lo = read_imagef(input, sampler, (int2)(2 * x, 2 * y));
34 line[0].hi = read_imagef(input, sampler, (int2)(2 * x + 1, 2 * y));
35 line[1].lo = read_imagef(input, sampler, (int2)(2 * x, 2 * y + 1));
36 line[1].hi = read_imagef(input, sampler, (int2)(2 * x + 1, 2 * y + 1));
71 write_imagef(ll, (int2)(x, y), line_ll);
72 write_imagef(hl, (int2)(x, y), line_hl + 0.5f);
73 write_imagef(lh, (int2)(x, y), line_lh + 0.5f);
74 write_imagef(hh, (int2)(x, y), line_hh + 0.5f);
108 line_ll = read_imagef(ll, sampler, (int2)(x, y));
109 line_hl = read_imagef(hl, sampler, (int2)(x, y)) - 0.5f;
[all …]
Dkernel_tonemapping.cl34 float4 src_data_Gr = read_imagef (input, sampler, (int2)(g_id_x, g_id_y));
35 float4 src_data_R = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height));
36 float4 src_data_B = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 2));
37 float4 src_data_Gb = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 3));
56 … float4 data_Gr = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y));
57 …float4 data_R = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image…
58 …float4 data_B = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image…
59 …float4 data_Gb = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + imag…
102 write_imagef(output, (int2)(g_id_x, g_id_y), src_data_Gr);
103 write_imagef(output, (int2)(g_id_x, g_id_y + image_height), src_data_R);
[all …]
Dkernel_defog_dcp.cl26 int2 pos;
28 …y[0] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x, pos_y…
29 …y[1] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x, pos_y…
30 …float8 uv = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_uv, sampler, (int2)(pos_x,…
48 pos = (int2)(pos_x, 2 * pos_y + i);
96 …in_r[0] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_r, sampler, (int2)(pos_x, po…
97 …in_r[1] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_r, sampler, (int2)(pos_x, po…
98 …in_g[0] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_g, sampler, (int2)(pos_x, po…
99 …in_g[1] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_g, sampler, (int2)(pos_x, po…
100 …in_b[0] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_b, sampler, (int2)(pos_x, po…
[all …]
Dkernel_gauss_lap_pyramid.cl60 … write_imageui (dump_orig, (int2)(g_x, g_y + 0), read_imageui(input, sampler, (int2)(in_x, g_y)));
61 …write_imageui (dump_orig, (int2)(g_x, g_y + 1), read_imageui(input, sampler, (int2)(in_x, g_y + 1)…
62 …write_imageui (dump_orig, (int2)(g_x, g_y + 2), read_imageui(input, sampler, (int2)(in_x, g_y + 2)…
63 …write_imageui (dump_orig, (int2)(g_x, g_y + 3), read_imageui(input, sampler, (int2)(in_x, g_y + 3)…
79 …tmp_data = convert_float8(as_uchar8(convert_ushort4(read_imageui(input, sampler, (int2)(in_x - 1, …
82 …tmp_data = convert_float8(as_uchar8(convert_ushort4(read_imageui(input, sampler, (int2)(in_x, cur_…
85 …tmp_data = convert_float8(as_uchar8(convert_ushort4(read_imageui(input, sampler, (int2)(in_x + 1, …
107 … write_imageui (output_gauss, (int2)(g_out_x, g_out_y + i_line), convert_uint4(final_g[i_line]));
173 …convert_float8(as_uchar8(convert_ushort4(read_imageui(input_lap, lap_sampler, (int2)(g_x, g_y)))));
190 … write_imageui (dump_resize, (int2)(g_x, g_y), convert_uint4(as_ushort4(convert_uchar8(data_g))));
[all …]
Dkernel_newtonemapping.cl37 float4 src_data_Gr = read_imagef (input, sampler, (int2)(g_id_x, g_id_y));
38 float4 src_data_R = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height));
39 float4 src_data_B = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 2));
40 float4 src_data_Gb = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 3));
97 write_imagef(output, (int2)(g_id_x, g_id_y), src_data_Gr);
98 write_imagef(output, (int2)(g_id_x, g_id_y + image_height), src_data_R);
99 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 2), src_data_B);
100 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 3), src_data_Gb);
Dkernel_bi_filter.cl45 …float8 center_y = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(p…
47 …y1 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x - 1, pos…
48 …y2 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x, pos_y -…
49 …dark1 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_dark, sampler, (int2)(pos_x - …
50 …dark2 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_dark, sampler, (int2)(pos_x, p…
60 …y1 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x + 1, pos…
61 …dark1 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_dark, sampler, (int2)(pos_x + …
72 …write_imageui(output_dark, (int2)(pos_x, pos_y), convert_uint4(as_ushort4(convert_uchar8(out_data)…
Dkernel_geo_map.cl48 image2d_t lsc_table, int2 g_pos, float step_x,
54 float2 pos = convert_float2((int2)(g_pos.x * PIXEL_RES_STEP_X, g_pos.y)) * step_x;
86 …out_map_pos = (convert_float2((int2)(g_x * PIXEL_RES_STEP_X, g_y)) - out_size / 2.0f) * table_scal…
92 …get_lsc_data (lsc_table, (int2)(g_x, g_y), table_scale_step.x, gray_threshold, output_data, &lsc_d…
95 …write_imageui (output_y, (int2)(g_x, g_y), convert_uint4(as_ushort4(convert_uchar8(output_data * 2…
101 …write_imageui (output_uv, (int2)(g_x, g_y_uv), convert_uint4(as_ushort4(convert_uchar8(output_data…
107 …get_lsc_data (lsc_table, (int2)(g_x, g_y + 1), table_scale_step.x, gray_threshold, output_data, &l…
110 …write_imageui (output_y, (int2)(g_x, g_y + 1), convert_uint4(as_ushort4(convert_uchar8(output_data…
Dkernel_fisheye.cl47 int2 out_pos = (int2)(get_global_id (0), get_global_id (1));
63 int2 pos = (int2) (get_global_id (0), get_global_id (1));
94 … (convert_float2((int2)(g_x * PIXEL_PER_WI, g_y)) - dst_center) * radian_per_pixel + PI / 2.0f;
104 write_imageui (output_y, (int2)(g_x, g_y), convert_uint4(convert_uchar4(src_data * 255.0f)));
108 … write_imageui (output_uv, (int2)(g_x, g_y_uv), convert_uint4(convert_uchar4(src_data * 255.0f)));
119 … write_imageui (output_y, (int2)(g_x, g_y + 1), convert_uint4(convert_uchar4(src_data * 255.0f)));
/external/clang/test/CodeGenOpenCL/
Dvector_logops.cl3 typedef int int2 __attribute((ext_vector_type(2)));
7 int2 a = (int2)(1,0);
8 int2 b = (int2)(1,1);
15 int2 a = (int2)(1,0);
Dvector_literals_valid.cl3 typedef __attribute__(( ext_vector_type(2) )) int int2;
11 int4 a_2_1_1 = (int4)((int2)(1,2),3,4);
12 int4 a_1_2_1 = (int4)(1,(int2)(2,3),4);
13 int4 a_1_1_2 = (int4)(1,2,(int2)(3,4));
14 int4 a_2_2 = (int4)((int2)(1,2),(int2)(3,4));
/external/skqp/src/sksl/
Dsksl.inc239 int2 textureSize($gsampler2D sampler, int lod);
241 int2 textureSize($gsamplerCube sampler, int lod);
243 int2 textureSize(sampler2DShadow sampler, int lod);
244 int2 textureSize(samplerCubeShadow sampler, int lod);
248 int2 textureSize($gsampler2DRect sampler);
250 int2 textureSize(sampler2DRectShadow sampler);
251 int2 textureSize($gsampler1DArray sampler, int lod);
253 int2 textureSize(sampler1DArrayShadow sampler, int lod);
256 int2 textureSize($gsampler2DMS sampler);
365 $gfloat4 textureOffset($gsampler2D sampler, float2 P, int2 offset);
[all …]
/external/skia/src/sksl/
Dsksl.inc307 int2 textureSize($gsampler2D sampler, int lod);
309 int2 textureSize($gsamplerCube sampler, int lod);
311 int2 textureSize(sampler2DShadow sampler, int lod);
312 int2 textureSize(samplerCubeShadow sampler, int lod);
316 int2 textureSize($gsampler2DRect sampler);
318 int2 textureSize(sampler2DRectShadow sampler);
319 int2 textureSize($gsampler1DArray sampler, int lod);
321 int2 textureSize(sampler1DArrayShadow sampler, int lod);
324 int2 textureSize($gsampler2DMS sampler);
433 $gfloat4 textureOffset($gsampler2D sampler, float2 P, int2 offset);
[all …]
/external/spirv-llvm/lib/SPIRV/runtime/OpenCL/inc/
Dspirv.h2 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image1d_array_t img);
3 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image2d_t img);
4 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image2d_depth_t img);
9 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image1d_array_t img, in…
10 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image2d_t img, int lod);
11 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image2d_depth_t img, in…
/external/swiftshader/src/OpenGL/compiler/
DInitialize.cpp34 TType *int2 = new TType(EbtInt, 2); in InsertBuiltInFunctions() local
276 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", samplerExternalOES, int1); in InsertBuiltInFunctions()
277 … symbolTable.insertBuiltIn(ESSL3_BUILTINS, float4, "texelFetch", samplerExternalOES, int2, int1); in InsertBuiltInFunctions()
354 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", gsampler2D, int1); in InsertBuiltInFunctions()
356 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", gsamplerCube, int1); in InsertBuiltInFunctions()
358 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", sampler2DShadow, int1); in InsertBuiltInFunctions()
359 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", samplerCubeShadow, int1); in InsertBuiltInFunctions()
369 symbolTable.insertBuiltIn(ESSL3_BUILTINS, gvec4, "textureOffset", gsampler2D, float2, int2); in InsertBuiltInFunctions()
371 symbolTable.insertBuiltIn(ESSL3_BUILTINS, float1, "textureOffset", sampler2DShadow, float3, int2); in InsertBuiltInFunctions()
372 symbolTable.insertBuiltIn(ESSL3_BUILTINS, gvec4, "textureOffset", gsampler2DArray, float3, int2); in InsertBuiltInFunctions()
[all …]
/external/spirv-llvm/lib/SPIRV/runtime/OpenCL/src/
DImageQuerySize.cl10 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image1d_array_t img) {
11 return (int2)(get_image_width(img), get_image_array_size(img));
13 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image1d_array_t img, i…
14 return (int2)(get_image_width(img) >> lod, get_image_array_size(img) >> lod);
18 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(ImgTy img, int lod) { \
28 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(ImgTy img) { \

123456