Searched refs:vec (Results 1 - 25 of 158) sorted by relevance

1234567

/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
H A Dnir_lower_vec_to_movs.c49 * the vec instruction, insert a MOV to the vec instruction's dest of all the
56 insert_mov(nir_alu_instr *vec, unsigned start_idx, nir_shader *shader) argument
58 assert(start_idx < nir_op_infos[vec->op].num_inputs);
61 nir_alu_src_copy(&mov->src[0], &vec->src[start_idx], mov);
62 nir_alu_dest_copy(&mov->dest, &vec->dest, mov);
65 mov->src[0].swizzle[start_idx] = vec->src[start_idx].swizzle[0];
66 mov->src[0].negate = vec->src[start_idx].negate;
67 mov->src[0].abs = vec->src[start_idx].abs;
70 if (!(vec
121 try_coalesce(nir_alu_instr * vec,unsigned start_idx) argument
222 nir_alu_instr *vec = nir_instr_as_alu(instr); local in function:lower_vec_to_movs_block
[all...]
H A Dnir_builtin_builder.c54 nir_length(nir_builder *b, nir_ssa_def *vec) argument
56 nir_ssa_def *finf = nir_imm_floatN_t(b, INFINITY, vec->bit_size);
58 nir_ssa_def *abs = nir_fabs(b, vec);
59 if (vec->num_components == 1)
69 nir_fast_length(nir_builder *b, nir_ssa_def *vec) argument
71 switch (vec->num_components) {
72 case 1: return nir_fsqrt(b, nir_fmul(b, vec, vec));
73 case 2: return nir_fsqrt(b, nir_fdot2(b, vec, vec));
109 nir_normalize(nir_builder * b,nir_ssa_def * vec) argument
170 nir_ssa_def *vec = nir_vec2(b, nir_channel(b, lo, i), nir_channel(b, hi, i)); local in function:nir_upsample
[all...]
H A Dnir_move_vec_src_uses_to_dest.c73 nir_alu_instr *vec = nir_instr_as_alu(instr); local in function:move_vec_src_uses_to_dest_block
75 switch (vec->op) {
84 /* Can't handle non-SSA vec operations */
85 if (!vec->dest.dest.is_ssa)
89 if (vec->dest.saturate)
96 for (unsigned i = 0; i < nir_op_infos[vec->op].num_inputs; i++) {
98 if (!vec->src[i].src.is_ssa)
102 if (vec->src[i].abs || vec->src[i].negate)
115 for (unsigned j = i; j < nir_op_infos[vec
[all...]
H A Dnir_lower_load_const_to_scalar.c31 * vec[234] to reconstruct the original vector (on the assumption that
59 nir_ssa_def *vec = nir_vec(&b, loads, lower->def.num_components); local in function:lower_load_const_instr_scalar
62 nir_ssa_def_rewrite_uses(&lower->def, nir_src_for_ssa(vec));
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_lower_vec_to_movs.c55 * the vec instruction, insert a MOV to the vec instruction's dest of all the
62 insert_mov(nir_alu_instr *vec, unsigned start_idx, nir_shader *shader) argument
64 assert(start_idx < nir_op_infos[vec->op].num_inputs);
67 if (nir_src_is_undef(vec->src[start_idx].src))
71 nir_alu_src_copy(&mov->src[0], &vec->src[start_idx]);
72 nir_alu_dest_copy(&mov->dest, &vec->dest);
75 mov->src[0].swizzle[start_idx] = vec->src[start_idx].swizzle[0];
76 mov->src[0].negate = vec->src[start_idx].negate;
77 mov->src[0].abs = vec
131 try_coalesce(nir_alu_instr * vec,unsigned start_idx,void * _data) argument
242 nir_alu_instr *vec = nir_instr_as_alu(instr); local in function:nir_lower_vec_to_movs_instr
[all...]
H A Dnir_move_vec_src_uses_to_dest.c73 nir_alu_instr *vec = nir_instr_as_alu(instr); local in function:move_vec_src_uses_to_dest_block
75 switch (vec->op) {
84 /* Can't handle non-SSA vec operations */
85 if (!vec->dest.dest.is_ssa)
89 if (vec->dest.saturate)
96 for (unsigned i = 0; i < nir_op_infos[vec->op].num_inputs; i++) {
98 if (!vec->src[i].src.is_ssa)
102 if (vec->src[i].abs || vec->src[i].negate)
116 for (unsigned j = i; j < nir_op_infos[vec
[all...]
H A Dnir_lower_regs_to_ssa.c186 nir_alu_instr *vec = nir_alu_instr_create(state->shader, vecN_op); local in function:rewrite_alu_instr
194 vec->src[i].src = nir_src_for_ssa(new_src);
195 vec->src[i].swizzle[0] = vec_swizzle[i];
197 vec->src[i].src = nir_src_for_ssa(old_src);
198 vec->src[i].swizzle[0] = i;
202 nir_ssa_dest_init(&vec->instr, &vec->dest.dest, reg->num_components,
204 nir_instr_insert(nir_after_instr(&alu->instr), &vec->instr);
207 &vec->dest.dest.ssa);
H A Dnir_lower_image.c58 nir_ssa_def *vec = nir_vec(b, comps, intrin->dest.ssa.num_components); local in function:lower_cube_size
59 nir_ssa_def_rewrite_uses(&intrin->dest.ssa, vec);
H A Dnir_lower_load_const_to_scalar.c31 * vec[234] to reconstruct the original vector (on the assumption that
59 nir_ssa_def *vec = nir_vec(&b, loads, lower->def.num_components); local in function:lower_load_const_instr_scalar
62 nir_ssa_def_rewrite_uses(&lower->def, vec);
/xsrc/external/mit/freetype/dist/src/base/
H A Dfttrigon.c133 ft_trig_prenorm( FT_Vector* vec ) argument
139 x = vec->x;
140 y = vec->y;
147 vec->x = (FT_Pos)( (FT_ULong)x << shift );
148 vec->y = (FT_Pos)( (FT_ULong)y << shift );
153 vec->x = x >> shift;
154 vec->y = y >> shift;
163 ft_trig_pseudo_rotate( FT_Vector* vec, argument
171 x = vec->x;
172 y = vec
218 ft_trig_pseudo_polarize(FT_Vector * vec) argument
360 FT_Vector_Unit(FT_Vector * vec,FT_Angle angle) argument
377 FT_Vector_Rotate(FT_Vector * vec,FT_Angle angle) argument
417 FT_Vector_Length(FT_Vector * vec) argument
454 FT_Vector_Polarize(FT_Vector * vec,FT_Fixed * length,FT_Angle * angle) argument
484 FT_Vector_From_Polar(FT_Vector * vec,FT_Fixed length,FT_Angle angle) argument
[all...]
H A Dftoutln.c148 FT_Vector vec; local in function:FT_Outline_Decompose
151 vec.x = SCALED( point->x );
152 vec.y = SCALED( point->y );
155 vec.x / 64.0, vec.y / 64.0 ));
156 error = func_interface->line_to( &vec, user );
169 FT_Vector vec; local in function:FT_Outline_Decompose
177 vec.x = SCALED( point->x );
178 vec.y = SCALED( point->y );
184 vec
237 FT_Vector vec; local in function:FT_Outline_Decompose
474 FT_Vector* vec = outline->points; local in function:FT_Outline_Get_CBox
512 FT_Vector* vec; local in function:FT_Outline_Translate
709 FT_Vector* vec; local in function:FT_Outline_Transform
[all...]
/xsrc/external/mit/freetype/dist/include/freetype/
H A Dfttrigon.h228 * call, the value of `vec.x` will be `cos(angle)`, and the value of
229 * `vec.y` will be `sin(angle)`.
235 * vec ::
244 FT_Vector_Unit( FT_Vector* vec,
257 * vec ::
266 FT_Vector_Rotate( FT_Vector* vec,
279 * vec ::
288 FT_Vector_Length( FT_Vector* vec );
300 * vec ::
312 FT_Vector_Polarize( FT_Vector* vec,
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/clover/core/
H A Ddevice.cpp465 std::vector<cl_name_version> vec; local in function:device::supported_extensions
467 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_byte_addressable_store" } );
468 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_global_int32_base_atomics" } );
469 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_global_int32_extended_atomics" } );
470 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_local_int32_base_atomics" } );
471 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_local_int32_extended_atomics" } );
473 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_int64_base_atomics" } );
474 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_int64_extended_atomics" } );
477 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_fp64" } );
479 vec
539 std::vector<cl_name_version> vec; local in function:device::opencl_c_all_versions
555 std::vector<cl_name_version> vec; local in function:device::opencl_c_features
[all...]
H A Dplatform.cpp50 std::vector<cl_name_version> vec; local in function:platform::supported_extensions
52 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_icd" } );
53 return vec;
/xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
H A Dtexcompress_fxt1.c264 fxt1_bestcol (GLfloat vec[][MAX_COMP], GLint nv, argument
273 e += (vec[j][i] - input[i]) * (vec[j][i] - input[i]);
286 fxt1_worst (GLfloat vec[MAX_COMP], argument
295 e += (vec[i] - input[k][i]) * (vec[i] - input[k][i]);
338 fxt1_choose (GLfloat vec[][MAX_COMP], GLint nv, argument
349 vec[j][i] = input[m][i];
409 vec[j][i] = (GLfloat)input[hist[j].idx][i];
414 vec[
432 fxt1_lloyd(GLfloat vec[][MAX_COMP],GLint nv,GLubyte input[N_TEXELS][MAX_COMP],GLint nc,GLint n) argument
538 GLfloat vec[MAX_VECT][MAX_COMP]; local in function:fxt1_quantize_CHROMA
580 GLfloat vec[MAX_VECT][MAX_COMP]; local in function:fxt1_quantize_ALPHA0
632 GLfloat vec[1 + 1 + 1][MAX_COMP]; /* 1.5 extrema for each sub-block */ local in function:fxt1_quantize_ALPHA1
865 GLubyte vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */ local in function:fxt1_quantize_MIXED1
1003 GLubyte vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */ local in function:fxt1_quantize_MIXED0
[all...]
/xsrc/external/mit/MesaLib/dist/src/util/format/
H A Du_format_fxt1.c148 fxt1_bestcol (float vec[][MAX_COMP], int32_t nv, argument
157 e += (vec[j][i] - input[i]) * (vec[j][i] - input[i]);
170 fxt1_worst (float vec[MAX_COMP], argument
179 e += (vec[i] - input[k][i]) * (vec[i] - input[k][i]);
219 fxt1_choose (float vec[][MAX_COMP], int32_t nv, argument
230 vec[j][i] = input[m][i];
290 vec[j][i] = (float)input[hist[j].idx][i];
295 vec[
313 fxt1_lloyd(float vec[][MAX_COMP],int32_t nv,uint8_t input[N_TEXELS][MAX_COMP],int32_t nc,int32_t n) argument
419 float vec[MAX_VECT][MAX_COMP]; local in function:fxt1_quantize_CHROMA
461 float vec[MAX_VECT][MAX_COMP]; local in function:fxt1_quantize_ALPHA0
513 float vec[1 + 1 + 1][MAX_COMP]; /* 1.5 extrema for each sub-block */ local in function:fxt1_quantize_ALPHA1
746 uint8_t vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */ local in function:fxt1_quantize_MIXED1
884 uint8_t vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */ local in function:fxt1_quantize_MIXED0
[all...]
/xsrc/external/mit/freetype/dist/src/smooth/
H A Dftsmooth.c278 FT_Vector* vec; local in function:ft_smooth_raster_lcd
288 for ( vec = points; vec < points_end; vec++ )
289 vec->x *= 3;
295 for ( vec = points; vec < points_end; vec++ )
296 vec->x /= 3;
310 FT_Vector* vec; local in function:ft_smooth_raster_lcdv
375 FT_Vector* vec; local in function:ft_smooth_raster_overlap
[all...]
/xsrc/external/mit/glu/dist/src/libnurbs/interface/
H A DbezierEval.cc58 static void normalize(float vec[3]);
234 static void normalize(float vec[3]) argument
236 float size = (float)sqrt(vec[0]*vec[0] + vec[1]*vec[1] + vec[2]*vec[2]);
246 vec[0] = vec[
[all...]
/xsrc/external/mit/MesaLib/dist/src/compiler/glsl/tests/
H A Dinvalidate_locations_test.cpp67 new(mem_ctx) ir_variable(glsl_type::vec(4),
90 new(mem_ctx) ir_variable(glsl_type::vec(4),
113 new(mem_ctx) ir_variable(glsl_type::vec(4),
137 new(mem_ctx) ir_variable(glsl_type::vec(4),
160 new(mem_ctx) ir_variable(glsl_type::vec(4),
182 new(mem_ctx) ir_variable(glsl_type::vec(4),
H A Dgeneral_ir_test.cpp52 glsl_struct_field(glsl_type::vec(4), "v")
80 glsl_struct_field(glsl_type::vec(4), "v")
/xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/tests/
H A Dinvalidate_locations_test.cpp63 new(mem_ctx) ir_variable(glsl_type::vec(4),
86 new(mem_ctx) ir_variable(glsl_type::vec(4),
109 new(mem_ctx) ir_variable(glsl_type::vec(4),
133 new(mem_ctx) ir_variable(glsl_type::vec(4),
156 new(mem_ctx) ir_variable(glsl_type::vec(4),
178 new(mem_ctx) ir_variable(glsl_type::vec(4),
H A Dgeneral_ir_test.cpp34 glsl_struct_field(glsl_type::vec(4), "v")
60 glsl_struct_field(glsl_type::vec(4), "v")
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_nir.c126 nir_alu_instr *vec = nir_alu_instr_create(shader, nir_op_vec4); local in function:etna_lower_io
128 vec->src[i].src = nir_src_for_ssa(coord->ssa);
129 vec->src[i].swizzle[0] = i;
132 vec->src[i].src = nir_src_for_ssa(lod_bias->ssa);
134 vec->dest.write_mask = 0xf;
135 nir_ssa_dest_init(&vec->instr, &vec->dest.dest, 4, 32, NULL);
138 nir_instr_rewrite_src(&tex->instr, coord, nir_src_for_ssa(&vec->dest.dest.ssa));
141 nir_instr_insert_before(&tex->instr, &vec->instr);
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/tests/
H A Dvars_tests.cpp483 nir_variable *vec = create_ivec2(nir_var_mem_ssbo, "vec"); local in function:TEST_F
486 nir_store_var(b, vec, nir_load_var(b, in0), 1 << 0);
487 nir_store_var(b, vec, nir_load_var(b, in1), 1 << 1);
489 /* This load will be dropped, as vec.y (or vec[1]) is already known. */
491 nir_build_deref_array_imm(b, nir_build_deref_var(b, vec), 1);
511 /* NOTE: The ALU instruction is how we get the vec.y. */
518 nir_variable *vec = create_ivec2(nir_var_mem_ssbo, "vec"); local in function:TEST_F
542 nir_variable *vec = create_ivec2(nir_var_mem_ssbo, "vec"); local in function:TEST_F
575 nir_variable *vec = create_ivec2(nir_var_mem_ssbo, "vec"); local in function:TEST_F
620 nir_variable *vec = create_ivec2(nir_var_mem_ssbo, "vec"); local in function:TEST_F
657 nir_variable *vec = create_ivec2(nir_var_mem_ssbo, "vec"); local in function:TEST_F
993 nir_alu_instr *vec = nir_src_as_alu_instr(combined->src[1]); local in function:TEST_F
1032 nir_alu_instr *vec = nir_src_as_alu_instr(combined->src[1]); local in function:TEST_F
1098 nir_alu_instr *vec = nir_src_as_alu_instr(combined->src[1]); local in function:TEST_F
[all...]
/xsrc/external/mit/mesa-demos/dist/src/slang/
H A Dcltest.c146 GLfloat *vec = att->value[att->count]; local in function:load_test_file
147 sscanf (line, "%f %f %f %f", &vec[0], &vec[1], &vec[2], &vec[3]);
204 GLfloat *vec = program->attribs.attrib[n].value[i]; local in function:RenderScene
207 glVertex4fv (vec);
209 glVertexAttrib4fvARB (n, vec);

Completed in 23 milliseconds

1234567