Home
last modified time | relevance | path

Searched refs:consts (Results 1 – 25 of 136) sorted by relevance

123456

/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/aarch64/
Djccolext-neon.c58 const uint16x8_t consts = vld1q_u16(jsimd_rgb_ycc_neon_consts); in jsimd_rgb_ycc_convert_neon() local
84 uint32x4_t y_ll = vmull_laneq_u16(vget_low_u16(r_l), consts, 0); in jsimd_rgb_ycc_convert_neon()
85 y_ll = vmlal_laneq_u16(y_ll, vget_low_u16(g_l), consts, 1); in jsimd_rgb_ycc_convert_neon()
86 y_ll = vmlal_laneq_u16(y_ll, vget_low_u16(b_l), consts, 2); in jsimd_rgb_ycc_convert_neon()
87 uint32x4_t y_lh = vmull_laneq_u16(vget_high_u16(r_l), consts, 0); in jsimd_rgb_ycc_convert_neon()
88 y_lh = vmlal_laneq_u16(y_lh, vget_high_u16(g_l), consts, 1); in jsimd_rgb_ycc_convert_neon()
89 y_lh = vmlal_laneq_u16(y_lh, vget_high_u16(b_l), consts, 2); in jsimd_rgb_ycc_convert_neon()
90 uint32x4_t y_hl = vmull_laneq_u16(vget_low_u16(r_h), consts, 0); in jsimd_rgb_ycc_convert_neon()
91 y_hl = vmlal_laneq_u16(y_hl, vget_low_u16(g_h), consts, 1); in jsimd_rgb_ycc_convert_neon()
92 y_hl = vmlal_laneq_u16(y_hl, vget_low_u16(b_h), consts, 2); in jsimd_rgb_ycc_convert_neon()
[all …]
/third_party/mesa3d/src/mesa/main/
Dcontext.c359 init_program_limits(struct gl_constants *consts, gl_shader_stage stage, in init_program_limits() argument
443 consts->MaxUniformBlockSize / 4 * in init_program_limits()
459 _mesa_init_constants(struct gl_constants *consts, gl_api api) in _mesa_init_constants() argument
462 assert(consts); in _mesa_init_constants()
465 consts->MaxTextureMbytes = MAX_TEXTURE_MBYTES; in _mesa_init_constants()
466 consts->MaxTextureSize = 1 << (MAX_TEXTURE_LEVELS - 1); in _mesa_init_constants()
467 consts->Max3DTextureLevels = MAX_TEXTURE_LEVELS; in _mesa_init_constants()
468 consts->MaxCubeTextureLevels = MAX_TEXTURE_LEVELS; in _mesa_init_constants()
469 consts->MaxTextureRectSize = MAX_TEXTURE_RECT_SIZE; in _mesa_init_constants()
470 consts->MaxArrayTextureLayers = MAX_ARRAY_TEXTURE_LAYERS; in _mesa_init_constants()
[all …]
Dversion.c167 _mesa_override_gl_version_contextless(struct gl_constants *consts, in _mesa_override_gl_version_contextless() argument
182 consts->ContextFlags |= GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT; in _mesa_override_gl_version_contextless()
225 _mesa_override_glsl_version(struct gl_constants *consts) in _mesa_override_glsl_version() argument
236 n = sscanf(version, "%u", &consts->GLSLVersion); in _mesa_override_glsl_version()
248 const struct gl_constants *consts, gl_api api) in compute_version() argument
282 consts->GLSLVersion >= 130 && in compute_version()
283 consts->MaxColorAttachments >= 4 && in compute_version()
284 (consts->MaxSamples >= 4 || consts->FakeSWMSAA) && in compute_version()
303 consts->GLSLVersion >= 140 && in compute_version()
310 consts->Program[MESA_SHADER_VERTEX].MaxTextureImageUnits >= 16); in compute_version()
[all …]
Dversion.h40 struct gl_constants *consts, gl_api api);
46 _mesa_override_gl_version_contextless(struct gl_constants *consts,
53 _mesa_override_glsl_version(struct gl_constants *consts);
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/
Djidctred-neon.c103 const int16x4_t consts = vld1_s16(jsimd_idct_2x2_neon_consts); in jsimd_idct_2x2_neon() local
114 int32x4_t tmp0_l = vmull_lane_s16(vget_low_s16(row1), consts, 3); in jsimd_idct_2x2_neon()
115 tmp0_l = vmlal_lane_s16(tmp0_l, vget_low_s16(row3), consts, 2); in jsimd_idct_2x2_neon()
116 tmp0_l = vmlal_lane_s16(tmp0_l, vget_low_s16(row5), consts, 1); in jsimd_idct_2x2_neon()
117 tmp0_l = vmlal_lane_s16(tmp0_l, vget_low_s16(row7), consts, 0); in jsimd_idct_2x2_neon()
118 int32x4_t tmp0_h = vmull_lane_s16(vget_high_s16(row1), consts, 3); in jsimd_idct_2x2_neon()
119 tmp0_h = vmlal_lane_s16(tmp0_h, vget_high_s16(row3), consts, 2); in jsimd_idct_2x2_neon()
120 tmp0_h = vmlal_lane_s16(tmp0_h, vget_high_s16(row5), consts, 1); in jsimd_idct_2x2_neon()
121 tmp0_h = vmlal_lane_s16(tmp0_h, vget_high_s16(row7), consts, 0); in jsimd_idct_2x2_neon()
147 int32x4_t tmp0 = vmull_lane_s16(vget_low_s16(cols_1155), consts, 3); in jsimd_idct_2x2_neon()
[all …]
Djfdctint-neon.c91 const int16x4x3_t consts = vld1_s16_x3(jsimd_fdct_islow_neon_consts); in jsimd_fdct_islow_neon() local
97 const int16x4x3_t consts = { { consts1, consts2, consts3 } }; in jsimd_fdct_islow_neon()
143 vmull_lane_s16(vget_low_s16(tmp12_add_tmp13), consts.val[0], 2); in jsimd_fdct_islow_neon()
145 vmull_lane_s16(vget_high_s16(tmp12_add_tmp13), consts.val[0], 2); in jsimd_fdct_islow_neon()
148 vmlal_lane_s16(z1_l, vget_low_s16(tmp13), consts.val[0], 3); in jsimd_fdct_islow_neon()
150 vmlal_lane_s16(z1_h, vget_high_s16(tmp13), consts.val[0], 3); in jsimd_fdct_islow_neon()
155 vmlal_lane_s16(z1_l, vget_low_s16(tmp12), consts.val[1], 3); in jsimd_fdct_islow_neon()
157 vmlal_lane_s16(z1_h, vget_high_s16(tmp12), consts.val[1], 3); in jsimd_fdct_islow_neon()
167 int32x4_t z5_l = vmull_lane_s16(vget_low_s16(z3), consts.val[1], 1); in jsimd_fdct_islow_neon()
168 int32x4_t z5_h = vmull_lane_s16(vget_high_s16(z3), consts.val[1], 1); in jsimd_fdct_islow_neon()
[all …]
Djidctint-neon.c359 const int16x4x3_t consts = vld1_s16_x3(jsimd_idct_islow_neon_consts); in jsimd_idct_islow_pass1_regular() local
364 const int16x4x3_t consts = { { consts1, consts2, consts3 } }; in jsimd_idct_islow_pass1_regular()
371 int32x4_t tmp2 = vmull_lane_s16(z2_s16, consts.val[0], 1); in jsimd_idct_islow_pass1_regular()
372 int32x4_t tmp3 = vmull_lane_s16(z2_s16, consts.val[1], 2); in jsimd_idct_islow_pass1_regular()
373 tmp2 = vmlal_lane_s16(tmp2, z3_s16, consts.val[2], 1); in jsimd_idct_islow_pass1_regular()
374 tmp3 = vmlal_lane_s16(tmp3, z3_s16, consts.val[0], 1); in jsimd_idct_islow_pass1_regular()
406 int32x4_t z3 = vmull_lane_s16(z3_s16, consts.val[2], 3); in jsimd_idct_islow_pass1_regular()
407 int32x4_t z4 = vmull_lane_s16(z3_s16, consts.val[1], 3); in jsimd_idct_islow_pass1_regular()
408 z3 = vmlal_lane_s16(z3, z4_s16, consts.val[1], 3); in jsimd_idct_islow_pass1_regular()
409 z4 = vmlal_lane_s16(z4, z4_s16, consts.val[2], 0); in jsimd_idct_islow_pass1_regular()
[all …]
Djdcolext-neon.c61 const int16x4_t consts = vld1_s16(jsimd_ycc_rgb_convert_neon_consts); in jsimd_ycc_rgb_convert_neon() local
89 int32x4_t g_sub_y_ll = vmull_lane_s16(vget_low_s16(cb_128_l), consts, 0); in jsimd_ycc_rgb_convert_neon()
91 consts, 0); in jsimd_ycc_rgb_convert_neon()
92 int32x4_t g_sub_y_hl = vmull_lane_s16(vget_low_s16(cb_128_h), consts, 0); in jsimd_ycc_rgb_convert_neon()
94 consts, 0); in jsimd_ycc_rgb_convert_neon()
96 consts, 1); in jsimd_ycc_rgb_convert_neon()
98 consts, 1); in jsimd_ycc_rgb_convert_neon()
100 consts, 1); in jsimd_ycc_rgb_convert_neon()
102 consts, 1); in jsimd_ycc_rgb_convert_neon()
110 consts, 2); in jsimd_ycc_rgb_convert_neon()
[all …]
Djdmrgext-neon.c70 const int16x4_t consts = vld1_s16(jsimd_ycc_rgb_convert_neon_consts); in jsimd_h2v1_merged_upsample_neon() local
93 int32x4_t g_sub_y_l = vmull_lane_s16(vget_low_s16(cb_128), consts, 0); in jsimd_h2v1_merged_upsample_neon()
94 int32x4_t g_sub_y_h = vmull_lane_s16(vget_high_s16(cb_128), consts, 0); in jsimd_h2v1_merged_upsample_neon()
95 g_sub_y_l = vmlsl_lane_s16(g_sub_y_l, vget_low_s16(cr_128), consts, 1); in jsimd_h2v1_merged_upsample_neon()
96 g_sub_y_h = vmlsl_lane_s16(g_sub_y_h, vget_high_s16(cr_128), consts, 1); in jsimd_h2v1_merged_upsample_neon()
101 int16x8_t r_sub_y = vqrdmulhq_lane_s16(vshlq_n_s16(cr_128, 1), consts, 2); in jsimd_h2v1_merged_upsample_neon()
103 int16x8_t b_sub_y = vqrdmulhq_lane_s16(vshlq_n_s16(cb_128, 1), consts, 3); in jsimd_h2v1_merged_upsample_neon()
172 int32x4_t g_sub_y_l = vmull_lane_s16(vget_low_s16(cb_128), consts, 0); in jsimd_h2v1_merged_upsample_neon()
173 int32x4_t g_sub_y_h = vmull_lane_s16(vget_high_s16(cb_128), consts, 0); in jsimd_h2v1_merged_upsample_neon()
174 g_sub_y_l = vmlsl_lane_s16(g_sub_y_l, vget_low_s16(cr_128), consts, 1); in jsimd_h2v1_merged_upsample_neon()
[all …]
Djfdctfst-neon.c87 const int16x4_t consts = vld1_s16(jsimd_fdct_ifast_neon_consts); in jsimd_fdct_ifast_neon() local
107 int16x8_t z1 = vqdmulhq_lane_s16(vaddq_s16(tmp12, tmp13), consts, 2); in jsimd_fdct_ifast_neon()
116 int16x8_t z5 = vqdmulhq_lane_s16(vsubq_s16(tmp10, tmp12), consts, 0); in jsimd_fdct_ifast_neon()
117 int16x8_t z2 = vqdmulhq_lane_s16(tmp10, consts, 1); in jsimd_fdct_ifast_neon()
119 int16x8_t z4 = vqdmulhq_lane_s16(tmp12, consts, 3); in jsimd_fdct_ifast_neon()
122 int16x8_t z3 = vqdmulhq_lane_s16(tmp11, consts, 2); in jsimd_fdct_ifast_neon()
181 z1 = vqdmulhq_lane_s16(vaddq_s16(tmp12, tmp13), consts, 2); in jsimd_fdct_ifast_neon()
190 z5 = vqdmulhq_lane_s16(vsubq_s16(tmp10, tmp12), consts, 0); in jsimd_fdct_ifast_neon()
191 z2 = vqdmulhq_lane_s16(tmp10, consts, 1); in jsimd_fdct_ifast_neon()
193 z4 = vqdmulhq_lane_s16(tmp12, consts, 3); in jsimd_fdct_ifast_neon()
[all …]
Djidctfst-neon.c95 const int16x4_t consts = vld1_s16(jsimd_idct_ifast_neon_consts); in jsimd_idct_ifast_neon() local
137 int16x4_t tmp12 = vqdmulh_lane_s16(tmp1_sub_tmp3, consts, 1); in jsimd_idct_ifast_neon()
159 tmp11 = vqdmulh_lane_s16(z11_sub_z13, consts, 1); in jsimd_idct_ifast_neon()
163 int16x4_t z5 = vqdmulh_lane_s16(z10_add_z12, consts, 2); in jsimd_idct_ifast_neon()
165 tmp10 = vqdmulh_lane_s16(z12, consts, 0); in jsimd_idct_ifast_neon()
168 tmp12 = vqdmulh_lane_s16(neg_z10, consts, 3); in jsimd_idct_ifast_neon()
212 int16x4_t tmp12 = vqdmulh_lane_s16(tmp1_sub_tmp3, consts, 1); in jsimd_idct_ifast_neon()
234 tmp11 = vqdmulh_lane_s16(z11_sub_z13, consts, 1); in jsimd_idct_ifast_neon()
238 int16x4_t z5 = vqdmulh_lane_s16(z10_add_z12, consts, 2); in jsimd_idct_ifast_neon()
240 tmp10 = vqdmulh_lane_s16(z12, consts, 0); in jsimd_idct_ifast_neon()
[all …]
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_print_constant.c33 mir_print_constant_component(FILE *fp, const midgard_constants *consts, unsigned c, in mir_print_constant_component() argument
69 fprintf(fp, "%"PRIi64, consts->i64[c]); in mir_print_constant_component()
71 fprintf(fp, "%"PRIu64, consts->u64[c]); in mir_print_constant_component()
73 fprintf(fp, "0x%"PRIX64, consts->u64[c]); in mir_print_constant_component()
75 double v = consts->f64[c]; in mir_print_constant_component()
89 v = consts->u32[c]; in mir_print_constant_component()
91 v = (uint64_t)consts->u32[c] << 32; in mir_print_constant_component()
93 v = consts->i32[c]; in mir_print_constant_component()
100 v = (uint64_t)consts->u32[c] << 32; in mir_print_constant_component()
102 v = consts->u32[c]; in mir_print_constant_component()
[all …]
Ddisassemble.c536 const midgard_constants *consts, in print_scalar_constant() argument
540 assert(consts != NULL); in print_scalar_constant()
543 mir_print_constant_component(fp, consts, src->component, in print_scalar_constant()
551 const midgard_constants *consts, in print_vector_constants() argument
557 unsigned max_comp = (sizeof(*consts) * 8) / bits; in print_vector_constants()
560 assert(consts); in print_vector_constants()
633 mir_print_constant_component(fp, consts, c, alu->reg_mode, in print_vector_constants()
814 const midgard_constants *consts, unsigned tabs, bool verbose) in print_vector_field() argument
873 print_vector_constants(fp, alu_field->src1, consts, alu_field); in print_vector_field()
886 print_vector_constants(fp, alu_field->src2, consts, alu_field); in print_vector_field()
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/aarch32/
Djccolext-neon.c60 const uint16x4x2_t consts = vld1_u16_x2(jsimd_rgb_ycc_neon_consts); in jsimd_rgb_ycc_convert_neon() local
65 const uint16x4x2_t consts = { { consts1, consts2 } }; in jsimd_rgb_ycc_convert_neon() local
98 uint32x4_t y_low = vmull_lane_u16(vget_low_u16(r), consts.val[0], 0); in jsimd_rgb_ycc_convert_neon()
99 y_low = vmlal_lane_u16(y_low, vget_low_u16(g), consts.val[0], 1); in jsimd_rgb_ycc_convert_neon()
100 y_low = vmlal_lane_u16(y_low, vget_low_u16(b), consts.val[0], 2); in jsimd_rgb_ycc_convert_neon()
101 uint32x4_t y_high = vmull_lane_u16(vget_high_u16(r), consts.val[0], 0); in jsimd_rgb_ycc_convert_neon()
102 y_high = vmlal_lane_u16(y_high, vget_high_u16(g), consts.val[0], 1); in jsimd_rgb_ycc_convert_neon()
103 y_high = vmlal_lane_u16(y_high, vget_high_u16(b), consts.val[0], 2); in jsimd_rgb_ycc_convert_neon()
107 cb_low = vmlsl_lane_u16(cb_low, vget_low_u16(r), consts.val[0], 3); in jsimd_rgb_ycc_convert_neon()
108 cb_low = vmlsl_lane_u16(cb_low, vget_low_u16(g), consts.val[1], 0); in jsimd_rgb_ycc_convert_neon()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_extensions.c767 struct gl_constants *consts, in st_init_extensions() argument
1175 consts->GLSLVersion = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL); in st_init_extensions()
1176 consts->GLSLVersionCompat = in st_init_extensions()
1182 api == API_OPENGL_COMPAT ? consts->GLSLVersionCompat : in st_init_extensions()
1183 consts->GLSLVersion; in st_init_extensions()
1185 _mesa_override_glsl_version(consts); in st_init_extensions()
1189 consts->ForceGLSLVersion = options->force_glsl_version; in st_init_extensions()
1192 consts->AllowExtraPPTokens = options->allow_extra_pp_tokens; in st_init_extensions()
1194 consts->AllowHigherCompatVersion = options->allow_higher_compat_version; in st_init_extensions()
1196 consts->ForceGLSLAbsSqrt = options->force_glsl_abs_sqrt; in st_init_extensions()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dgfx10_query.c308 } consts; in gfx10_sh_query_get_result_resource() local
314 consts.offset = 4 * sizeof(uint64_t) * query->stream + 2 * sizeof(uint64_t); in gfx10_sh_query_get_result_resource()
315 consts.config = 0; in gfx10_sh_query_get_result_resource()
318 consts.offset = 4 * sizeof(uint64_t) * query->stream + 3 * sizeof(uint64_t); in gfx10_sh_query_get_result_resource()
319 consts.config = 0; in gfx10_sh_query_get_result_resource()
322 consts.offset = sizeof(uint32_t) * (4 * index + query->stream); in gfx10_sh_query_get_result_resource()
323 consts.config = 0; in gfx10_sh_query_get_result_resource()
326 consts.offset = 4 * sizeof(uint64_t) * query->stream; in gfx10_sh_query_get_result_resource()
327 consts.config = 2; in gfx10_sh_query_get_result_resource()
330 consts.offset = 0; in gfx10_sh_query_get_result_resource()
[all …]
/third_party/mesa3d/src/panfrost/bifrost/
Ddisassemble.c304 …LE *fp, struct bifrost_regs srcs, unsigned branch_offset, struct bi_constants *consts, bool high32) in dump_fau_src() argument
311 uint64_t imm = consts->raw[idx]; in dump_fau_src()
313 if (consts->mods[idx] != BI_CONSTMOD_NONE) in dump_fau_src()
314 dump_pc_imm(fp, imm, branch_offset, consts->mods[idx], high32); in dump_fau_src()
365 …ned src, struct bifrost_regs srcs, unsigned branch_offset, struct bi_constants *consts, bool isFMA) in dump_src() argument
384 dump_fau_src(fp, srcs, branch_offset, consts, false); in dump_src()
387 dump_fau_src(fp, srcs, branch_offset, consts, true); in dump_src()
445 struct bi_constants consts = {}; in dump_clause() local
485 consts.raw[0] = bits(words[3], 17, 32) << 4; in dump_clause()
502 consts.raw[0] = const0; in dump_clause()
[all …]
Dbi_schedule.c120 struct bi_const_state consts[8]; member
703 for (unsigned i = 0; i < ARRAY_SIZE(clause->consts); ++i) in bi_nconstants()
704 count_32 += clause->consts[i].constant_count; in bi_nconstants()
1314 struct bi_const_state consts = { in bi_get_const_state() local
1324 if (consts.pcrel && consts.constants[0]) { in bi_get_const_state()
1325 assert(consts.constant_count == 2); in bi_get_const_state()
1326 assert(consts.constants[1] == 0); in bi_get_const_state()
1328 consts.constants[1] = consts.constants[0]; in bi_get_const_state()
1329 consts.constants[0] = 0; in bi_get_const_state()
1332 return consts; in bi_get_const_state()
[all …]
Ddisassemble.h38 …_regs, unsigned staging_register, unsigned branch_offset, struct bi_constants *consts, bool first);
40 …_regs, unsigned staging_register, unsigned branch_offset, struct bi_constants *consts, bool first);
45 …ed src, struct bifrost_regs srcs, unsigned branch_offset, struct bi_constants *consts, bool isFMA);
/third_party/ffmpeg/libavcodec/arm/
Dsbcdsp_init_arm.c37 void ff_sbc_analyze_4_armv6(const int16_t *in, int32_t *out, const int16_t *consts);
38 void ff_sbc_analyze_8_armv6(const int16_t *in, int32_t *out, const int16_t *consts);
40 void ff_sbc_analyze_4_neon(const int16_t *in, int32_t *out, const int16_t *consts);
41 void ff_sbc_analyze_8_neon(const int16_t *in, int32_t *out, const int16_t *consts);
/third_party/ffmpeg/libavcodec/
Dsbcdsp.c63 const int16_t *consts, in sbc_analyze_simd() argument
77 t1[i >> 1] += in[hop + i] * consts[hop + i]; in sbc_analyze_simd()
88 t1[j>>1] += t2[i * 2 + (j&1)] * consts[10*subbands + i*2*subbands + j]; in sbc_analyze_simd()
95 const int16_t *consts) in sbc_analyze_4_simd() argument
97 sbc_analyze_simd(in, out, consts, 4); in sbc_analyze_4_simd()
101 const int16_t *consts) in sbc_analyze_8_simd() argument
103 sbc_analyze_simd(in, out, consts, 8); in sbc_analyze_8_simd()
Dsbcdsp.h50 void (*sbc_analyze_4)(const int16_t *in, int32_t *out, const int16_t *consts);
51 void (*sbc_analyze_8)(const int16_t *in, int32_t *out, const int16_t *consts);
/third_party/ffmpeg/libavcodec/x86/
Dsbcdsp_init.c36 void ff_sbc_analyze_4_mmx(const int16_t *in, int32_t *out, const int16_t *consts);
37 void ff_sbc_analyze_8_mmx(const int16_t *in, int32_t *out, const int16_t *consts);
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_query.c1628 } consts; in r600_query_hw_get_result_resource() local
1646 consts.end_offset = params.end_offset - params.start_offset; in r600_query_hw_get_result_resource()
1647 consts.fence_offset = params.fence_offset - params.start_offset; in r600_query_hw_get_result_resource()
1648 consts.result_stride = query->result_size; in r600_query_hw_get_result_resource()
1649 consts.pair_stride = params.pair_stride; in r600_query_hw_get_result_resource()
1650 consts.pair_count = params.pair_count; in r600_query_hw_get_result_resource()
1652 constant_buffer.buffer_size = sizeof(consts); in r600_query_hw_get_result_resource()
1653 constant_buffer.user_buffer = &consts; in r600_query_hw_get_result_resource()
1670 consts.config = 0; in r600_query_hw_get_result_resource()
1672 consts.config |= 4; in r600_query_hw_get_result_resource()
[all …]
/third_party/python/Lib/test/
Dtest_code.py141 def consts(t): function
156 print("consts:", tuple(consts(co.co_consts)))
279 def find_const(self, consts, value): argument
280 for v in consts:
283 self.assertIn(value, consts) # raises an exception

123456