Home
last modified time | relevance | path

Searched refs:bool_type (Results 1 – 25 of 27) sorted by relevance

12

/external/mesa3d/src/compiler/glsl/
Dir_expression_operation.py86 bool_type = type("bool", "b", "GLSL_TYPE_BOOL") variable
88 all_types = (uint_type, int_type, float_type, double_type, uint64_type, int64_type, bool_type)
417 operation("logic_not", 1, printable_name="!", source_types=(bool_type,), c_expression="!{src0}"),
436 …operation("f2b", 1, source_types=(float_type,), dest_type=bool_type, c_expression="{src0} != 0.0F …
438 …operation("b2f", 1, source_types=(bool_type,), dest_type=float_type, c_expression="{src0} ? 1.0F :…
440 …operation("i2b", 1, source_types=(uint_type, int_type), dest_type=bool_type, c_expression="{src0} …
442 … operation("b2i", 1, source_types=(bool_type,), dest_type=int_type, c_expression="{src0} ? 1 : 0"),
462 …operation("d2b", 1, source_types=(double_type,), dest_type=bool_type, c_expression="{src0} != 0.0"…
485 …operation("i642b", 1, source_types=(int64_type,), dest_type=bool_type, c_expression="{src0} != 0"),
492 operation("b2i64", 1, source_types=(bool_type,), dest_type=int64_type, c_expression="{src0}"),
[all …]
Dlower_if_to_cond_assign.cpp196 glsl_type::bool_type, in move_block_to_cond_assign()
205 glsl_type::bool_type, in move_block_to_cond_assign()
278 new(mem_ctx) ir_variable(glsl_type::bool_type, in visit_leave()
305 new(mem_ctx) ir_variable(glsl_type::bool_type, in visit_leave()
Dlower_discard.cpp178 ir_variable *temp = new(mem_ctx) ir_variable(glsl_type::bool_type, in visit_leave()
Dlower_jumps.cpp191 …this->execute_flag = new(this->signature) ir_variable(glsl_type::bool_type, "execute_flag", ir_var… in get_execute_flag()
202 …this->break_flag = new(this->signature) ir_variable(glsl_type::bool_type, "break_flag", ir_var_tem… in get_break_flag()
231 …this->return_flag = new(this->signature) ir_variable(glsl_type::bool_type, "return_flag", ir_var_t… in get_return_flag()
Dlower_discard_flow.cpp145 ir_variable *var = new(mem_ctx) ir_variable(glsl_type::bool_type, in lower_discard_flow()
Dlower_vector_insert.cpp121 factory.make_temp(glsl_type::bool_type, "index_condition"); in handle_rvalue()
Dloop_analysis.cpp159 ? new(mem_ctx) ir_expression(op, glsl_type::bool_type, to, add) in calculate_iterations()
160 : new(mem_ctx) ir_expression(op, glsl_type::bool_type, add, to); in calculate_iterations()
Dir_builder_print_visitor.cpp101 ir->type == glsl_type::bool_type) in is_simple_operand()
353 ir->type == glsl_type::bool_type) { in visit()
Dir_validate.cpp142 if (ir->condition && ir->condition->type != glsl_type::bool_type) { in visit_enter()
156 if (ir->condition->type != glsl_type::bool_type) { in visit_enter()
671 assert(ir->type == glsl_type::bool_type); in visit_leave()
Dbuiltin_functions.cpp1560 _mix_sel(v130, glsl_type::float_type, glsl_type::bool_type), in create_builtins()
1565 _mix_sel(fp64, glsl_type::double_type, glsl_type::bool_type), in create_builtins()
1570 _mix_sel(shader_integer_mix, glsl_type::int_type, glsl_type::bool_type), in create_builtins()
1575 _mix_sel(shader_integer_mix, glsl_type::uint_type, glsl_type::bool_type), in create_builtins()
1580 _mix_sel(shader_integer_mix, glsl_type::bool_type, glsl_type::bool_type), in create_builtins()
1585 _mix_sel(int64, glsl_type::int64_t_type, glsl_type::bool_type), in create_builtins()
1590 _mix_sel(int64, glsl_type::uint64_t_type, glsl_type::bool_type), in create_builtins()
5024 MAKE_SIG(glsl_type::bool_type, always_available, 1, v); in _any()
5036 MAKE_SIG(glsl_type::bool_type, always_available, 1, v); in _all()
5378 const glsl_type *return_type = glsl_type::bool_type; in _textureSamplesIdentical()
[all …]
Dast_to_hir.cpp715 return glsl_type::bool_type; in relational_result_type()
1552 assert(result->type == glsl_type::bool_type); in do_hir()
1593 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type, in do_hir()
1627 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type, in do_hir()
1663 result = new(ctx) ir_expression(operations[this->oper], glsl_type::bool_type, in do_hir()
1671 result = new(ctx) ir_expression(operations[this->oper], glsl_type::bool_type, in do_hir()
6431 new(ctx) ir_variable(glsl_type::bool_type, in hir()
6444 new(ctx) ir_variable(glsl_type::bool_type, in hir()
6456 new(ctx) ir_variable(glsl_type::bool_type, in hir()
Dir.cpp445 this->type = glsl_type::bool_type; in ir_expression()
1490 assert(type == glsl_type::bool_type); in set_sampler()
Dbuiltin_int64.h491 ir_variable *const r0060 = new(mem_ctx) ir_variable(glsl_type::bool_type, "negate", ir_var_auto); in idiv64()
955 ir_variable *const r00C3 = new(mem_ctx) ir_variable(glsl_type::bool_type, "negate", ir_var_auto); in imod64()
Dbuiltin_variables.cpp445 bool_t(glsl_type::bool_type), int_t(glsl_type::int_type), in builtin_variable_generator()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dmerge_return_pass.cpp414 analysis::Bool bool_type; in BreakFromConstruct() local
415 uint32_t bool_id = context()->get_type_mgr()->GetId(&bool_type); in BreakFromConstruct()
450 const analysis::Bool* bool_type = in RecordReturned() local
455 const_mgr->GetConstant(bool_type, {true}); in RecordReturned()
528 analysis::Bool* bool_type = type_mgr->GetType(bool_id)->AsBool(); in AddReturnFlag() local
531 const_mgr->GetConstant(bool_type, {false}); in AddReturnFlag()
Dir_builder.h273 analysis::Bool bool_type; in AddULessThan() local
274 uint32_t type = GetContext()->get_type_mgr()->GetId(&bool_type); in AddULessThan()
287 analysis::Bool bool_type; in AddSLessThan() local
288 uint32_t type = GetContext()->get_type_mgr()->GetId(&bool_type); in AddSLessThan()
Dconst_folding_rules.cpp771 const analysis::Type* bool_type = in FoldFClampFeedingCompare() local
774 const_mgr->GetConstant(bool_type, {static_cast<uint32_t>(result)}); in FoldFClampFeedingCompare()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dmerge_return_pass.cpp428 analysis::Bool bool_type; in BreakFromConstruct() local
429 uint32_t bool_id = context()->get_type_mgr()->GetId(&bool_type); in BreakFromConstruct()
466 const analysis::Bool* bool_type = in RecordReturned() local
471 const_mgr->GetConstant(bool_type, {true}); in RecordReturned()
544 analysis::Bool* bool_type = type_mgr->GetType(bool_id)->AsBool(); in AddReturnFlag() local
547 const_mgr->GetConstant(bool_type, {false}); in AddReturnFlag()
Dir_builder.h273 analysis::Bool bool_type; in AddULessThan() local
274 uint32_t type = GetContext()->get_type_mgr()->GetId(&bool_type); in AddULessThan()
287 analysis::Bool bool_type; in AddSLessThan() local
288 uint32_t type = GetContext()->get_type_mgr()->GetId(&bool_type); in AddSLessThan()
Dconst_folding_rules.cpp771 const analysis::Type* bool_type = in FoldFClampFeedingCompare() local
774 const_mgr->GetConstant(bool_type, {static_cast<uint32_t>(result)}); in FoldFClampFeedingCompare()
/external/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dstructured_loop_to_selection_reduction_opportunity.cpp221 const analysis::Bool* bool_type = in ChangeLoopToSelection() local
224 auto true_const = const_mgr->GetConstant(bool_type, {true}); in ChangeLoopToSelection()
/external/deqp-deps/SPIRV-Tools/source/reduce/
Dstructured_loop_to_selection_reduction_opportunity.cpp219 const analysis::Bool* bool_type = in ChangeLoopToSelection() local
222 auto true_const = const_mgr->GetConstant(bool_type, {true}); in ChangeLoopToSelection()
/external/mesa3d/src/compiler/
Dnir_types.cpp345 return glsl_type::bool_type; in glsl_bool_type()
Dglsl_types.cpp358 return bool_type; in get_base_type()
394 return bool_type; in get_scalar_type()
566 bool_type, bvec2_type, bvec3_type, bvec4_type in bvec()
/external/flatbuffers/src/
Didl_gen_general.cpp38 std::string bool_type; member
865 code += lang_.bool_type + struct_def.name; in GenStruct()
1238 code += struct_def.fixed ? "void " : lang_.bool_type; in GenStruct()

12