/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | transformation_add_type_vector.cpp | 38 auto component_type = in IsApplicable() local 40 if (!component_type) { in IsApplicable() 43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable() 44 component_type->AsInteger(); in IsApplicable() 49 const auto* component_type = in Apply() local 51 (void)component_type; // Make compiler happy in release mode. in Apply() 52 assert(component_type && in Apply() 53 (component_type->AsInteger() || component_type in Apply() [all...] |
H A D | transformation_composite_construct.cpp | 166 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForArrayConstructionAreOK() local 167 assert(component_type); in ComponentsForArrayConstructionAreOK() 168 if (component_type != array_type.element_type()) { in ComponentsForArrayConstructionAreOK() 193 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForMatrixConstructionAreOK() local 194 assert(component_type); in ComponentsForMatrixConstructionAreOK() 195 if (component_type != matrix_type.element_type()) { in ComponentsForMatrixConstructionAreOK() 222 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForStructConstructionAreOK() local 223 assert(component_type); in ComponentsForStructConstructionAreOK() 224 if (component_type != struct_type.element_types()[field_index]) { in ComponentsForStructConstructionAreOK() 244 auto component_type in ComponentsForVectorConstructionAreOK() local 292 auto component_type = ir_context->get_type_mgr()->GetType( AddDataSynonymFacts() local [all...] |
H A D | fuzzer_pass_interchange_signedness_of_integer_operands.cpp | 107 !constant->AsVectorConstant()->component_type()->AsInteger())) { in FindOrCreateToggledIntegerConstant() 122 auto component_type = in FindOrCreateToggledIntegerConstant() local 123 constant->AsVectorConstant()->component_type()->AsInteger(); in FindOrCreateToggledIntegerConstant() 127 component_type->width(), !component_type->IsSigned()); in FindOrCreateToggledIntegerConstant() 131 // the constant and component_type variables invalid. in FindOrCreateToggledIntegerConstant() 137 uint32_t width = component_type->width(); in FindOrCreateToggledIntegerConstant() 138 bool is_signed = !component_type->IsSigned(); in FindOrCreateToggledIntegerConstant()
|
H A D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply() 171 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply() 186 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply() 188 ->component_type() in Apply()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
H A D | transformation_add_type_vector.cpp | 38 auto component_type = in IsApplicable() local 40 if (!component_type) { in IsApplicable() 43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable() 44 component_type->AsInteger(); in IsApplicable() 49 const auto* component_type = in Apply() local 51 (void)component_type; // Make compiler happy in release mode. in Apply() 52 assert(component_type && in Apply() 53 (component_type->AsInteger() || component_type in Apply() [all...] |
H A D | transformation_composite_construct.cpp | 166 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForArrayConstructionAreOK() local 167 assert(component_type); in ComponentsForArrayConstructionAreOK() 168 if (component_type != array_type.element_type()) { in ComponentsForArrayConstructionAreOK() 193 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForMatrixConstructionAreOK() local 194 assert(component_type); in ComponentsForMatrixConstructionAreOK() 195 if (component_type != matrix_type.element_type()) { in ComponentsForMatrixConstructionAreOK() 222 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForStructConstructionAreOK() local 223 assert(component_type); in ComponentsForStructConstructionAreOK() 224 if (component_type != struct_type.element_types()[field_index]) { in ComponentsForStructConstructionAreOK() 244 auto component_type in ComponentsForVectorConstructionAreOK() local 292 auto component_type = ir_context->get_type_mgr()->GetType( AddDataSynonymFacts() local [all...] |
H A D | fuzzer_pass_interchange_signedness_of_integer_operands.cpp | 107 !constant->AsVectorConstant()->component_type()->AsInteger())) { in FindOrCreateToggledIntegerConstant() 122 auto component_type = in FindOrCreateToggledIntegerConstant() local 123 constant->AsVectorConstant()->component_type()->AsInteger(); in FindOrCreateToggledIntegerConstant() 127 component_type->width(), !component_type->IsSigned()); in FindOrCreateToggledIntegerConstant() 131 // the constant and component_type variables invalid. in FindOrCreateToggledIntegerConstant() 137 uint32_t width = component_type->width(); in FindOrCreateToggledIntegerConstant() 138 bool is_signed = !component_type->IsSigned(); in FindOrCreateToggledIntegerConstant()
|
H A D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply() 171 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply() 186 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply() 188 ->component_type() in Apply()
|
/third_party/spirv-tools/source/fuzz/ |
H A D | transformation_add_type_vector.cpp | 38 auto component_type = in IsApplicable() local 40 if (!component_type) { in IsApplicable() 43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable() 44 component_type->AsInteger(); in IsApplicable() 49 const auto* component_type = in Apply() local 51 (void)component_type; // Make compiler happy in release mode. in Apply() 52 assert(component_type && in Apply() 53 (component_type->AsInteger() || component_type in Apply() [all...] |
H A D | transformation_composite_construct.cpp | 166 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForArrayConstructionAreOK() local 167 assert(component_type); in ComponentsForArrayConstructionAreOK() 168 if (component_type != array_type.element_type()) { in ComponentsForArrayConstructionAreOK() 193 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForMatrixConstructionAreOK() local 194 assert(component_type); in ComponentsForMatrixConstructionAreOK() 195 if (component_type != matrix_type.element_type()) { in ComponentsForMatrixConstructionAreOK() 222 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForStructConstructionAreOK() local 223 assert(component_type); in ComponentsForStructConstructionAreOK() 224 if (component_type != struct_type.element_types()[field_index]) { in ComponentsForStructConstructionAreOK() 244 auto component_type in ComponentsForVectorConstructionAreOK() local 292 auto component_type = ir_context->get_type_mgr()->GetType( AddDataSynonymFacts() local [all...] |
H A D | fuzzer_pass_interchange_signedness_of_integer_operands.cpp | 107 !constant->AsVectorConstant()->component_type()->AsInteger())) { in FindOrCreateToggledIntegerConstant() 122 auto component_type = in FindOrCreateToggledIntegerConstant() local 123 constant->AsVectorConstant()->component_type()->AsInteger(); in FindOrCreateToggledIntegerConstant() 127 component_type->width(), !component_type->IsSigned()); in FindOrCreateToggledIntegerConstant() 131 // the constant and component_type variables invalid. in FindOrCreateToggledIntegerConstant() 137 uint32_t width = component_type->width(); in FindOrCreateToggledIntegerConstant() 138 bool is_signed = !component_type->IsSigned(); in FindOrCreateToggledIntegerConstant()
|
H A D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply() 171 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply() 186 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply() 188 ->component_type() in Apply()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
H A D | angle_format.py | 168 component_type, bits, channels = get_format_info(format_id) 183 elif component_type == 'uint' and bits['R'] == 8: 185 elif component_type == 'unorm' and bits['R'] == 8: 187 elif component_type == 'unorm' and bits['R'] == 16: 189 elif component_type == 'int' and bits['R'] == 8: 191 elif component_type == 'snorm' and bits['R'] == 8: 193 elif component_type == 'snorm' and bits['R'] == 16: 195 elif component_type == 'float' and bits['R'] == 16: 197 elif component_type == 'uint' and bits['R'] == 16: 199 elif component_type [all...] |
H A D | gen_angle_format_table.py | 200 def get_named_component_type(component_type): 201 if component_type == "snorm": 203 elif component_type == "unorm": 205 elif component_type == "float": 207 elif component_type == "uint": 209 elif component_type == "int": 211 elif component_type == "none": 214 raise ValueError("Unknown component type for " + component_type)
|
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | gen_uniform_type_table.py | 104 type_info_data_template = """{{{type}, {component_type}, {texture_type}, {transposed_type}, {bool_type}, {sampler_format}, {rows}, {columns}, {components}, {component_size}, {internal_size}, {external_size}, {is_sampler}, {is_matrix}, {is_image} }}""" 192 component_type = get_component_type(uniform_type) 193 if component_type == "GL_BOOL": 195 elif component_type == "GL_FLOAT": 197 elif component_type == "GL_INT": 199 elif component_type == "GL_UNSIGNED_INT": 201 elif component_type == "GL_NONE": 204 raise "Invalid component type: " + component_type 230 component_type=get_component_type(uniform_type),
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | gen_texture_format_table.py | 117 component_type = angle_format['componentType'] 121 if component_type == 'uint': 123 elif component_type == 'int': 125 elif component_type == 'unorm': 128 elif component_type == 'snorm': 132 elif component_type == 'float':
|
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | validate_constants.cpp | 60 const auto component_type = in ValidateConstantComposite() local 62 if (!component_type) { in ValidateConstantComposite() 80 component_type->opcode() != constituent_result_type->opcode()) { in ValidateConstantComposite() 106 const auto component_type = in ValidateConstantComposite() local 108 if (!component_type) { in ValidateConstantComposite() 141 if (component_type->id() != vector_component_type->id()) { in ValidateConstantComposite() 268 const auto component_type = _.FindDef(component_type_id); in ValidateConstantComposite() local 269 if (!component_type || component_type->id() != constituent_type->id()) { in ValidateConstantComposite()
|
H A D | validate_type.cpp | 152 const auto component_type = _.FindDef(component_id); in ValidateTypeVector() local 153 if (!component_type || !spvOpcodeIsScalarType(component_type->opcode())) { in ValidateTypeVector() 564 const auto component_type = _.FindDef(component_type_id); in ValidateTypeCooperativeMatrixNV() local 565 if (!component_type || (SpvOpTypeFloat != component_type->opcode() && in ValidateTypeCooperativeMatrixNV() 566 SpvOpTypeInt != component_type->opcode())) { in ValidateTypeCooperativeMatrixNV()
|
H A D | validate_arithmetics.cpp | 146 const uint32_t component_type = _.GetComponentType(type_id); in ArithmeticsPass() local 147 if (component_type != result_type) in ArithmeticsPass() 177 const uint32_t component_type = _.GetComponentType(vector_type_id); in ArithmeticsPass() local 180 if (component_type != scalar_type_id) in ArithmeticsPass() 201 const uint32_t component_type = _.GetComponentType(matrix_type_id); in ArithmeticsPass() local 204 if (component_type != scalar_type_id) in ArithmeticsPass()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
H A D | validate_constants.cpp | 60 const auto component_type = in ValidateConstantComposite() local 62 if (!component_type) { in ValidateConstantComposite() 80 component_type->opcode() != constituent_result_type->opcode()) { in ValidateConstantComposite() 106 const auto component_type = in ValidateConstantComposite() local 108 if (!component_type) { in ValidateConstantComposite() 141 if (component_type->id() != vector_component_type->id()) { in ValidateConstantComposite() 268 const auto component_type = _.FindDef(component_type_id); in ValidateConstantComposite() local 269 if (!component_type || component_type->id() != constituent_type->id()) { in ValidateConstantComposite()
|
H A D | validate_type.cpp | 152 const auto component_type = _.FindDef(component_id); in ValidateTypeVector() local 153 if (!component_type || !spvOpcodeIsScalarType(component_type->opcode())) { in ValidateTypeVector() 564 const auto component_type = _.FindDef(component_type_id); in ValidateTypeCooperativeMatrixNV() local 565 if (!component_type || (SpvOpTypeFloat != component_type->opcode() && in ValidateTypeCooperativeMatrixNV() 566 SpvOpTypeInt != component_type->opcode())) { in ValidateTypeCooperativeMatrixNV()
|
H A D | validate_arithmetics.cpp | 146 const uint32_t component_type = _.GetComponentType(type_id); in ArithmeticsPass() local 147 if (component_type != result_type) in ArithmeticsPass() 177 const uint32_t component_type = _.GetComponentType(vector_type_id); in ArithmeticsPass() local 180 if (component_type != scalar_type_id) in ArithmeticsPass() 201 const uint32_t component_type = _.GetComponentType(matrix_type_id); in ArithmeticsPass() local 204 if (component_type != scalar_type_id) in ArithmeticsPass()
|
/third_party/spirv-tools/source/val/ |
H A D | validate_constants.cpp | 59 const auto component_type = in ValidateConstantComposite() local 61 if (!component_type) { in ValidateConstantComposite() 79 component_type->id() != constituent_result_type->id()) { in ValidateConstantComposite() 105 const auto component_type = in ValidateConstantComposite() local 107 if (!component_type) { in ValidateConstantComposite() 140 if (component_type->id() != vector_component_type->id()) { in ValidateConstantComposite() 267 const auto component_type = _.FindDef(component_type_id); in ValidateConstantComposite() local 268 if (!component_type || component_type->id() != constituent_type->id()) { in ValidateConstantComposite()
|
H A D | validate_type.cpp | 152 const auto component_type = _.FindDef(component_id); in ValidateTypeVector() local 153 if (!component_type || !spvOpcodeIsScalarType(component_type->opcode())) { in ValidateTypeVector() 560 const auto component_type = _.FindDef(component_type_id); in ValidateTypeCooperativeMatrix() local 561 if (!component_type || (spv::Op::OpTypeFloat != component_type->opcode() && in ValidateTypeCooperativeMatrix() 562 spv::Op::OpTypeInt != component_type->opcode())) { in ValidateTypeCooperativeMatrix()
|
/third_party/spirv-tools/source/opt/ |
H A D | type_manager.cpp | 412 uint32_t const component_type = in GetTypeInstruction() local 413 GetTypeInstruction(coop_mat->component_type()); in GetTypeInstruction() 414 if (component_type == 0) { in GetTypeInstruction() 420 {SPV_OPERAND_TYPE_ID, {component_type}}, in GetTypeInstruction() 428 uint32_t const component_type = in GetTypeInstruction() local 429 GetTypeInstruction(coop_mat->component_type()); in GetTypeInstruction() 430 if (component_type == 0) { in GetTypeInstruction() 436 {SPV_OPERAND_TYPE_ID, {component_type}}, in GetTypeInstruction() 642 const Type* component_type = cm_type->component_type(); in RebuildType() local 650 const Type* component_type = cm_type->component_type(); RebuildType() local [all...] |