Home
last modified time | relevance | path

Searched refs:float_type (Results 1 - 25 of 73) sorted by relevance

123

/third_party/mesa3d/src/compiler/glsl/
H A Dir_expression_operation.py86 float_type = type("float", "f", "GLSL_TYPE_FLOAT") variable
90 all_types = (uint_type, int_type, float_type, double_type, uint64_type, int64_type, bool_type)
91 numeric_types = (uint_type, int_type, float_type, double_type, uint64_type, int64_type)
92 signed_numeric_types = (int_type, float_type, double_type, int64_type)
94 real_types = (float_type, double_type)
426 operation("exp", 1, source_types=(float_type,), c_expression="expf({src0})"), # Log base e on gentype
427 operation("log", 1, source_types=(float_type,), c_expression="logf({src0})"), # Natural log on gentype
428 operation("exp2", 1, source_types=(float_type,), c_expression="exp2f({src0})"),
429 operation("log2", 1, source_types=(float_type,), c_expression="log2f({src0})"),
432 operation("f2i", 1, source_types=(float_type,), dest_typ
[all...]
H A Dbuiltin_types.cpp29 * accessors (such as glsl_type::float_type). Those global variables are
56 glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "near"),
57 glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "far"),
58 glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "diff"),
62 glsl_struct_field(glsl_type::float_type, "size"),
63 glsl_struct_field(glsl_type::float_type, "sizeMin"),
64 glsl_struct_field(glsl_type::float_type, "sizeMax"),
65 glsl_struct_field(glsl_type::float_type, "fadeThresholdSize"),
66 glsl_struct_field(glsl_type::float_type, "distanceConstantAttenuation"),
67 glsl_struct_field(glsl_type::float_type, "distanceLinearAttenuatio
[all...]
H A Dbuiltin_functions.cpp1495 glsl_type::float_type, in create_intrinsics()
1511 glsl_type::float_type, in create_intrinsics()
1530 glsl_type::float_type, in create_intrinsics()
1600 glsl_type::float_type, in create_intrinsics()
1616 glsl_type::float_type, in create_intrinsics()
1677 _read_invocation_intrinsic(glsl_type::float_type), in create_intrinsics()
1694 _read_first_invocation_intrinsic(glsl_type::float_type), in create_intrinsics()
1727 _##NAME(glsl_type::float_type), \ in create_builtins()
1735 _##NAME(always_available, glsl_type::float_type), \ in create_builtins()
1747 _##NAME(v130, glsl_type::float_type), \ in create_builtins()
[all...]
H A Dlower_blend_equation_advanced.cpp221 ir_variable *llum = f->make_temp(glsl_type::float_type, "__blend_lum"); in set_lum()
222 ir_variable *mincol = f->make_temp(glsl_type::float_type, "__blend_mincol"); in set_lum()
223 ir_variable *maxcol = f->make_temp(glsl_type::float_type, "__blend_maxcol"); in set_lum()
255 ir_variable *sbase = f->make_temp(glsl_type::float_type, "__blend_sbase"); in set_lum_sat()
301 ir_variable *src_alpha = f.make_temp(glsl_type::float_type, "__blend_src_a"); in calc_blend_result()
308 ir_variable *dst_alpha = f.make_temp(glsl_type::float_type, "__blend_dst_a"); in calc_blend_result()
400 ir_variable *p0 = f.make_temp(glsl_type::float_type, "__blend_p0"); in calc_blend_result()
401 ir_variable *p1 = f.make_temp(glsl_type::float_type, "__blend_p1"); in calc_blend_result()
402 ir_variable *p2 = f.make_temp(glsl_type::float_type, "__blend_p2"); in calc_blend_result()
H A Dlower_tess_level.cpp117 assert(ir->type->fields.array == glsl_type::float_type); in visit()
134 assert(ir->type->fields.array == glsl_type::float_type); in visit()
169 if (ir->type->fields.array != glsl_type::float_type) in is_tess_level_array()
198 if (ir->type->fields.array != glsl_type::float_type) in lower_tess_level_array()
/third_party/mesa3d/src/intel/compiler/
H A Dtest_fs_saturate_propagation.cpp116 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
117 fs_reg dst1 = v->vgrf(glsl_type::float_type); in TEST_F()
118 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
119 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
151 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
152 fs_reg dst1 = v->vgrf(glsl_type::float_type); in TEST_F()
153 fs_reg dst2 = v->vgrf(glsl_type::float_type); in TEST_F()
154 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
155 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
189 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
[all...]
H A Dtest_fs_cmod_propagation.cpp126 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
127 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
128 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
158 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
159 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
160 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
192 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
193 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
194 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
289 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
[all...]
H A Dtest_vec4_cmod_propagation.cpp158 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
159 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
160 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
194 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
195 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
196 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
232 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
300 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
301 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
302 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
[all...]
H A Dtest_fs_copy_propagation.cpp115 fs_reg vgrf0 = v->vgrf(glsl_type::float_type); in TEST_F()
116 fs_reg vgrf1 = v->vgrf(glsl_type::float_type); in TEST_F()
117 fs_reg vgrf2 = v->vgrf(glsl_type::float_type); in TEST_F()
118 fs_reg vgrf3 = v->vgrf(glsl_type::float_type); in TEST_F()
157 fs_reg vgrf0 = v->vgrf(glsl_type::float_type); in TEST_F()
158 fs_reg vgrf1 = v->vgrf(glsl_type::float_type); in TEST_F()
159 fs_reg vgrf2 = v->vgrf(glsl_type::float_type); in TEST_F()
H A Dtest_vec4_register_coalesce.cpp140 src_reg something = src_reg(v, glsl_type::float_type); in TEST_F()
141 dst_reg temp = dst_reg(v, glsl_type::float_type); in TEST_F()
159 src_reg something = src_reg(v, glsl_type::float_type); in TEST_F()
193 dst_reg temp = dst_reg(v, glsl_type::float_type); in TEST_F()
211 dst_reg temp = dst_reg(v, glsl_type::float_type); in TEST_F()
237 dst_reg temp = dst_reg(v, glsl_type::float_type); in TEST_F()
/third_party/spirv-tools/source/opt/
H A Dconst_folding_rules.cpp28 const analysis::Float* float_type = type->AsFloat(); in GetNan() local
29 if (float_type == nullptr) { in GetNan()
33 switch (float_type->width()) { in GetNan()
48 const analysis::Float* float_type = type->AsFloat(); in GetInf() local
49 if (float_type == nullptr) { in GetInf()
53 switch (float_type->width()) { in GetInf()
79 const analysis::Float* float_type = result_type->AsFloat(); in NegateFPConst() local
80 assert(float_type != nullptr); in NegateFPConst()
81 if (float_type->width() == 32) { in NegateFPConst()
84 } else if (float_type in NegateFPConst()
322 const analysis::Float* float_type = element_type->AsFloat(); FoldVectorTimesScalar() local
[all...]
H A Dtype_manager.h161 Float float_type(32); in GetFloatType()
162 return GetRegisteredType(&float_type); in GetFloatType()
168 Float float_type(64); in GetDoubleType()
169 return GetRegisteredType(&float_type); in GetDoubleType()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dconst_folding_rules.cpp29 const analysis::Float* float_type = type->AsFloat(); in GetNan() local
30 if (float_type == nullptr) { in GetNan()
34 switch (float_type->width()) { in GetNan()
49 const analysis::Float* float_type = type->AsFloat(); in GetInf() local
50 if (float_type == nullptr) { in GetInf()
54 switch (float_type->width()) { in GetInf()
80 const analysis::Float* float_type = result_type->AsFloat(); in negateFPConst() local
81 assert(float_type != nullptr); in negateFPConst()
82 if (float_type->width() == 32) { in negateFPConst()
85 } else if (float_type in negateFPConst()
216 const analysis::Float* float_type = element_type->AsFloat(); FoldVectorTimesScalar() local
[all...]
H A Dtype_manager.h157 Float float_type(32); in GetFloatType()
158 return GetRegisteredType(&float_type); in GetFloatType()
164 Float float_type(64); in GetDoubleType()
165 return GetRegisteredType(&float_type); in GetDoubleType()
H A Dconstants.cpp397 if (const auto* float_type = element_type->AsFloat()) in GetNumericVectorConstantWithWords()
398 words_per_element = float_type->width() / 32; in GetNumericVectorConstantWithWords()
429 Type* float_type = context()->get_type_mgr()->GetFloatType(); in GetFloatConst() local
431 const Constant* c = GetConstant(float_type, v.GetWords()); in GetFloatConst()
441 Type* float_type = context()->get_type_mgr()->GetDoubleType(); in GetDoubleConst() local
443 const Constant* c = GetConstant(float_type, v.GetWords()); in GetDoubleConst()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dconst_folding_rules.cpp160 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar() local
161 assert(float_type != nullptr); in FoldVectorTimesScalar()
172 if (float_type->width() == 32) { in FoldVectorTimesScalar()
178 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
182 } else if (float_type->width() == 64) { in FoldVectorTimesScalar()
189 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
375 const analysis::Float* float_type = a->type()->AsFloat();
376 assert(float_type != nullptr);
379 if (float_type->width() == 32) {
386 } else if (float_type
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A Dtransformation_equation_instruction.cpp177 } else if (const auto* float_type = vector->element_type()->AsFloat()) { in MaybeGetResultTypeId()
179 ir_context, float_type->width(), true); in MaybeGetResultTypeId()
184 ir_context, float_type->width(), false); in MaybeGetResultTypeId()
199 } else if (const auto* float_type = operand_type->AsFloat()) { in MaybeGetResultTypeId()
201 ir_context, float_type->width(), true)) { in MaybeGetResultTypeId()
205 return fuzzerutil::MaybeGetIntegerType(ir_context, float_type->width(), in MaybeGetResultTypeId()
H A Dforce_render_red.cpp121 opt::IRContext* ir_context, opt::analysis::Float* float_type) { in FindOrCreateFloatZeroAndOne()
128 MakeUnique<opt::analysis::FloatConstant>(float_type, zero_bytes)); in FindOrCreateFloatZeroAndOne()
130 MakeUnique<opt::analysis::FloatConstant>(float_type, one_bytes)); in FindOrCreateFloatZeroAndOne()
198 opt::analysis::Float* float_type = ir_context->get_type_mgr() in ForceRenderRed() local
202 FindOrCreateFloatZeroAndOne(ir_context.get(), float_type); in ForceRenderRed()
229 auto temp_vec4 = opt::analysis::Vector(float_type, 4); in ForceRenderRed()
262 auto float_type_id = ir_context->get_type_mgr()->GetId(float_type); in ForceRenderRed()
120 FindOrCreateFloatZeroAndOne( opt::IRContext* ir_context, opt::analysis::Float* float_type) FindOrCreateFloatZeroAndOne() argument
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A Dtransformation_equation_instruction.cpp177 } else if (const auto* float_type = vector->element_type()->AsFloat()) { in MaybeGetResultTypeId()
179 ir_context, float_type->width(), true); in MaybeGetResultTypeId()
184 ir_context, float_type->width(), false); in MaybeGetResultTypeId()
199 } else if (const auto* float_type = operand_type->AsFloat()) { in MaybeGetResultTypeId()
201 ir_context, float_type->width(), true)) { in MaybeGetResultTypeId()
205 return fuzzerutil::MaybeGetIntegerType(ir_context, float_type->width(), in MaybeGetResultTypeId()
H A Dforce_render_red.cpp121 opt::IRContext* ir_context, opt::analysis::Float* float_type) { in FindOrCreateFloatZeroAndOne()
128 MakeUnique<opt::analysis::FloatConstant>(float_type, zero_bytes)); in FindOrCreateFloatZeroAndOne()
130 MakeUnique<opt::analysis::FloatConstant>(float_type, one_bytes)); in FindOrCreateFloatZeroAndOne()
198 opt::analysis::Float* float_type = ir_context->get_type_mgr() in ForceRenderRed() local
202 FindOrCreateFloatZeroAndOne(ir_context.get(), float_type); in ForceRenderRed()
229 auto temp_vec4 = opt::analysis::Vector(float_type, 4); in ForceRenderRed()
262 auto float_type_id = ir_context->get_type_mgr()->GetId(float_type); in ForceRenderRed()
120 FindOrCreateFloatZeroAndOne( opt::IRContext* ir_context, opt::analysis::Float* float_type) FindOrCreateFloatZeroAndOne() argument
/third_party/spirv-tools/source/fuzz/
H A Dtransformation_equation_instruction.cpp178 } else if (const auto* float_type = vector->element_type()->AsFloat()) { in MaybeGetResultTypeId()
180 ir_context, float_type->width(), true); in MaybeGetResultTypeId()
185 ir_context, float_type->width(), false); in MaybeGetResultTypeId()
200 } else if (const auto* float_type = operand_type->AsFloat()) { in MaybeGetResultTypeId()
202 ir_context, float_type->width(), true)) { in MaybeGetResultTypeId()
206 return fuzzerutil::MaybeGetIntegerType(ir_context, float_type->width(), in MaybeGetResultTypeId()
H A Dforce_render_red.cpp124 opt::IRContext* ir_context, opt::analysis::Float* float_type) { in FindOrCreateFloatZeroAndOne()
131 MakeUnique<opt::analysis::FloatConstant>(float_type, zero_bytes)); in FindOrCreateFloatZeroAndOne()
133 MakeUnique<opt::analysis::FloatConstant>(float_type, one_bytes)); in FindOrCreateFloatZeroAndOne()
202 opt::analysis::Float* float_type = ir_context->get_type_mgr() in ForceRenderRed() local
206 FindOrCreateFloatZeroAndOne(ir_context.get(), float_type); in ForceRenderRed()
234 auto temp_vec4 = opt::analysis::Vector(float_type, 4); in ForceRenderRed()
267 auto float_type_id = ir_context->get_type_mgr()->GetId(float_type); in ForceRenderRed()
123 FindOrCreateFloatZeroAndOne( opt::IRContext* ir_context, opt::analysis::Float* float_type) FindOrCreateFloatZeroAndOne() argument
/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_idiv.c202 nir_alu_type float_type = nir_type_float | (options->allow_fp16 ? sz * 2 : 32); in convert_instr_small() local
204 nir_ssa_def *p = nir_type_convert(b, numer, int_type, float_type); in convert_instr_small()
205 nir_ssa_def *q = nir_type_convert(b, denom, int_type, float_type); in convert_instr_small()
216 res = nir_type_convert(b, res, float_type, int_type); in convert_instr_small()
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/
H A Dto_toml.py44 self.value = self.float_type(value)
53 return cls(np.frombuffer(value.tobytes(), dtype=cls.float_type)[0])
105 float_type = np.float32 variable in Float32
119 float_type = np.float64 variable in Float64
/third_party/mesa3d/src/compiler/glsl/tests/
H A Dopt_add_neg_to_sub_test.cpp54 var_a = new(mem_ctx) ir_variable(glsl_type::float_type, in SetUp()
58 var_b = new(mem_ctx) ir_variable(glsl_type::float_type, in SetUp()
62 var_c = new(mem_ctx) ir_variable(glsl_type::float_type, in SetUp()

Completed in 225 milliseconds

123