/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_qpu_schedule.c | 49 struct queued_qpu_inst *inst; member 133 qpu_writes_r4(uint64_t inst) in qpu_writes_r4() argument 135 uint32_t sig = QPU_GET_FIELD(inst, QPU_SIG); in qpu_writes_r4() 204 reads_uniform(uint64_t inst) in reads_uniform() argument 206 if (QPU_GET_FIELD(inst, QPU_SIG) == QPU_SIG_LOAD_IMM) in reads_uniform() 209 return (QPU_GET_FIELD(inst, QPU_RADDR_A) == QPU_R_UNIF || in reads_uniform() 210 (QPU_GET_FIELD(inst, QPU_RADDR_B) == QPU_R_UNIF && in reads_uniform() 211 QPU_GET_FIELD(inst, QPU_SIG) != QPU_SIG_SMALL_IMM) || in reads_uniform() 212 is_tmu_write(QPU_GET_FIELD(inst, QPU_WADDR_ADD)) || in reads_uniform() 213 is_tmu_write(QPU_GET_FIELD(inst, QPU_WADDR_MU in reads_uniform() 229 uint64_t inst = n->inst->inst; process_waddr_deps() local 325 uint64_t inst = n->inst->inst; calculate_deps() local 454 reads_too_soon_after_write(struct choose_scoreboard *scoreboard, uint64_t inst) reads_too_soon_after_write() argument 511 pixel_scoreboard_too_soon(struct choose_scoreboard *scoreboard, uint64_t inst) pixel_scoreboard_too_soon() argument 517 get_instruction_priority(uint64_t inst) get_instruction_priority() argument 571 uint64_t inst = n->inst->inst; choose_instruction_to_schedule() local 657 update_scoreboard_for_chosen(struct choose_scoreboard *scoreboard, uint64_t inst) update_scoreboard_for_chosen() argument 826 emit_thrsw(struct vc4_compile *c, struct choose_scoreboard *scoreboard, uint64_t inst) emit_thrsw() argument 887 uint64_t inst = chosen ? chosen->inst->inst : qpu_NOP(); schedule_instructions() local 999 struct queued_qpu_inst *inst = qpu_schedule_instructions_block() local [all...] |
H A D | vc4_qir.c | 103 qir_get_non_sideband_nsrc(struct qinst *inst) in qir_get_non_sideband_nsrc() argument 105 assert(qir_op_info[inst->op].name); in qir_get_non_sideband_nsrc() 106 return qir_op_info[inst->op].nsrc; in qir_get_non_sideband_nsrc() 110 qir_get_nsrc(struct qinst *inst) in qir_get_nsrc() argument 112 assert(qir_op_info[inst->op].name); in qir_get_nsrc() 114 int nsrc = qir_get_non_sideband_nsrc(inst); in qir_get_nsrc() 119 if (qir_is_tex(inst) && inst->dst.file != QFILE_TEX_S_DIRECT) in qir_get_nsrc() 129 qir_get_tex_uniform_src(struct qinst *inst) in qir_get_tex_uniform_src() argument 131 return qir_get_nsrc(inst) in qir_get_tex_uniform_src() 139 qir_has_side_effects(struct vc4_compile *c, struct qinst *inst) qir_has_side_effects() argument 160 qir_has_side_effect_reads(struct vc4_compile *c, struct qinst *inst) qir_has_side_effect_reads() argument 184 qir_has_uniform_read(struct qinst *inst) qir_has_uniform_read() argument 195 qir_is_mul(struct qinst *inst) qir_is_mul() argument 214 qir_is_float_input(struct qinst *inst) qir_is_float_input() argument 233 qir_is_raw_mov(struct qinst *inst) qir_is_raw_mov() argument 244 qir_is_tex(struct qinst *inst) qir_is_tex() argument 259 qir_has_implicit_tex_uniform(struct qinst *inst) qir_has_implicit_tex_uniform() argument 273 qir_depends_on_flags(struct qinst *inst) qir_depends_on_flags() argument 284 qir_writes_r4(struct qinst *inst) qir_writes_r4() argument 300 qir_channels_written(struct qinst *inst) qir_channels_written() argument 466 qir_dump_inst(struct vc4_compile *c, struct qinst *inst) qir_dump_inst() argument 590 struct qinst *inst = CALLOC_STRUCT(qinst); qir_inst() local 602 qir_emit(struct vc4_compile *c, struct qinst *inst) qir_emit() argument 609 qir_emit_def(struct vc4_compile *c, struct qinst *inst) qir_emit_def() argument 624 qir_emit_nondef(struct vc4_compile *c, struct qinst *inst) qir_emit_nondef() argument [all...] |
H A D | vc4_qir_schedule.c | 47 struct qinst *inst; member 161 struct qinst *inst = n->inst; in calculate_deps() local 169 for (int i = 0; i < qir_get_nsrc(inst); i++) { in calculate_deps() 170 switch (inst->src[i].file) { in calculate_deps() 173 state->last_temp_write[inst->src[i].index], n); in calculate_deps() 189 switch (inst->op) { in calculate_deps() 232 switch (inst->dst.file) { in calculate_deps() 238 add_write_dep(dir, &state->last_temp_write[inst->dst.index], n); in calculate_deps() 264 if (qir_depends_on_flags(inst)) in calculate_deps() 283 struct qinst *inst = n->inst; calculate_forward_deps() local 407 get_register_pressure_cost(struct schedule_state *state, struct qinst *inst) get_register_pressure_cost() argument 436 locks_scoreboard(struct qinst *inst) locks_scoreboard() argument 627 struct qinst *inst = chosen->inst; schedule_instructions() local [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | validate_conversion.cpp | 29 spv_result_t ConversionPass(ValidationState_t& _, const Instruction* inst) { in ConversionPass() argument 30 const SpvOp opcode = inst->opcode(); in ConversionPass() 31 const uint32_t result_type = inst->type_id(); in ConversionPass() 38 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ConversionPass() 42 const uint32_t input_type = _.GetOperandTypeId(inst, 2); in ConversionPass() 46 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ConversionPass() 53 _.CooperativeMatrixShapesMatch(inst, result_type, input_type); in ConversionPass() 57 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ConversionPass() 68 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ConversionPass() 72 const uint32_t input_type = _.GetOperandTypeId(inst, in ConversionPass() [all...] |
H A D | validate_arithmetics.cpp | 30 spv_result_t ArithmeticsPass(ValidationState_t& _, const Instruction* inst) { in ArithmeticsPass() argument 31 const SpvOp opcode = inst->opcode(); in ArithmeticsPass() 32 const uint32_t result_type = inst->type_id(); in ArithmeticsPass() 47 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ArithmeticsPass() 51 for (size_t operand_index = 2; operand_index < inst->operands().size(); in ArithmeticsPass() 53 if (_.GetOperandTypeId(inst, operand_index) != result_type) in ArithmeticsPass() 54 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ArithmeticsPass() 69 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ArithmeticsPass() 73 for (size_t operand_index = 2; operand_index < inst->operands().size(); in ArithmeticsPass() 75 if (_.GetOperandTypeId(inst, operand_inde in ArithmeticsPass() [all...] |
H A D | validate_annotation.cpp | 231 const Instruction* inst, in ValidateDecorationTarget() 233 auto fail = [&_, dec, inst, target](uint32_t vuid = 0) -> DiagnosticStream { in ValidateDecorationTarget() 235 _.diag(SPV_ERROR_INVALID_ID, inst) in ValidateDecorationTarget() 265 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateDecorationTarget() 270 inst->GetOperandAs<SpvBuiltIn>(2) == SpvBuiltInWorkgroupSize) { in ValidateDecorationTarget() 373 spv_result_t ValidateDecorate(ValidationState_t& _, const Instruction* inst) { in ValidateDecorate() argument 374 const auto decoration = inst->GetOperandAs<SpvDecoration>(1); in ValidateDecorate() 375 const auto target_id = inst->GetOperandAs<uint32_t>(0); in ValidateDecorate() 378 return _.diag(SPV_ERROR_INVALID_ID, inst) << "target is not defined"; in ValidateDecorate() 384 return _.diag(SPV_ERROR_INVALID_ID, inst) in ValidateDecorate() 230 ValidateDecorationTarget(ValidationState_t& _, SpvDecoration dec, const Instruction* inst, const Instruction* target) ValidateDecorationTarget() argument 413 ValidateDecorateId(ValidationState_t& _, const Instruction* inst) ValidateDecorateId() argument 429 ValidateMemberDecorate(ValidationState_t& _, const Instruction* inst) ValidateMemberDecorate() argument 460 ValidateDecorationGroup(ValidationState_t& _, const Instruction* inst) ValidateDecorationGroup() argument 479 ValidateGroupDecorate(ValidationState_t& _, const Instruction* inst) ValidateGroupDecorate() argument 501 ValidateGroupMemberDecorate(ValidationState_t& _, const Instruction* inst) ValidateGroupMemberDecorate() argument 539 RegisterDecorations(ValidationState_t& _, const Instruction* inst) RegisterDecorations() argument 613 AnnotationPass(ValidationState_t& _, const Instruction* inst) AnnotationPass() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
H A D | validate_conversion.cpp | 29 spv_result_t ConversionPass(ValidationState_t& _, const Instruction* inst) { in ConversionPass() argument 30 const SpvOp opcode = inst->opcode(); in ConversionPass() 31 const uint32_t result_type = inst->type_id(); in ConversionPass() 38 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ConversionPass() 42 const uint32_t input_type = _.GetOperandTypeId(inst, 2); in ConversionPass() 46 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ConversionPass() 53 _.CooperativeMatrixShapesMatch(inst, result_type, input_type); in ConversionPass() 57 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ConversionPass() 68 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ConversionPass() 72 const uint32_t input_type = _.GetOperandTypeId(inst, in ConversionPass() [all...] |
H A D | validate_arithmetics.cpp | 30 spv_result_t ArithmeticsPass(ValidationState_t& _, const Instruction* inst) { in ArithmeticsPass() argument 31 const SpvOp opcode = inst->opcode(); in ArithmeticsPass() 32 const uint32_t result_type = inst->type_id(); in ArithmeticsPass() 47 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ArithmeticsPass() 51 for (size_t operand_index = 2; operand_index < inst->operands().size(); in ArithmeticsPass() 53 if (_.GetOperandTypeId(inst, operand_index) != result_type) in ArithmeticsPass() 54 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ArithmeticsPass() 69 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ArithmeticsPass() 73 for (size_t operand_index = 2; operand_index < inst->operands().size(); in ArithmeticsPass() 75 if (_.GetOperandTypeId(inst, operand_inde in ArithmeticsPass() [all...] |
H A D | validate_annotation.cpp | 231 const Instruction* inst, in ValidateDecorationTarget() 233 auto fail = [&_, dec, inst, target](uint32_t vuid) -> DiagnosticStream { in ValidateDecorationTarget() 235 _.diag(SPV_ERROR_INVALID_ID, inst) in ValidateDecorationTarget() 265 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateDecorationTarget() 270 inst->GetOperandAs<SpvBuiltIn>(2) == SpvBuiltInWorkgroupSize) { in ValidateDecorationTarget() 373 spv_result_t ValidateDecorate(ValidationState_t& _, const Instruction* inst) { in ValidateDecorate() argument 374 const auto decoration = inst->GetOperandAs<SpvDecoration>(1); in ValidateDecorate() 375 const auto target_id = inst->GetOperandAs<uint32_t>(0); in ValidateDecorate() 378 return _.diag(SPV_ERROR_INVALID_ID, inst) << "target is not defined"; in ValidateDecorate() 384 return _.diag(SPV_ERROR_INVALID_ID, inst) in ValidateDecorate() 230 ValidateDecorationTarget(ValidationState_t& _, SpvDecoration dec, const Instruction* inst, const Instruction* target) ValidateDecorationTarget() argument 413 ValidateDecorateId(ValidationState_t& _, const Instruction* inst) ValidateDecorateId() argument 429 ValidateMemberDecorate(ValidationState_t& _, const Instruction* inst) ValidateMemberDecorate() argument 460 ValidateDecorationGroup(ValidationState_t& _, const Instruction* inst) ValidateDecorationGroup() argument 479 ValidateGroupDecorate(ValidationState_t& _, const Instruction* inst) ValidateGroupDecorate() argument 501 ValidateGroupMemberDecorate(ValidationState_t& _, const Instruction* inst) ValidateGroupMemberDecorate() argument 539 RegisterDecorations(ValidationState_t& _, const Instruction* inst) RegisterDecorations() argument 613 AnnotationPass(ValidationState_t& _, const Instruction* inst) AnnotationPass() argument [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | fix_storage_class.cpp | 28 get_module()->ForEachInst([this, &modified](Instruction* inst) { in Process() 29 if (inst->opcode() == SpvOpVariable) { in Process() 32 get_def_use_mgr()->ForEachUse(inst, in Process() 40 static_cast<SpvStorageClass>(inst->GetSingleWordInOperand(0)), in Process() 44 PropagateType(use.first, inst->type_id(), use.second, &seen); in Process() 52 bool FixStorageClass::PropagateStorageClass(Instruction* inst, in PropagateStorageClass() argument 55 if (!IsPointerResultType(inst)) { in PropagateStorageClass() 59 if (IsPointerToStorageClass(inst, storage_class)) { in PropagateStorageClass() 60 if (inst->opcode() == SpvOpPhi) { in PropagateStorageClass() 61 if (!seen->insert(inst in PropagateStorageClass() 112 FixInstructionStorageClass(Instruction* inst, SpvStorageClass storage_class, std::set<uint32_t>* seen) FixInstructionStorageClass() argument 128 ChangeResultStorageClass( Instruction* inst, SpvStorageClass storage_class) const ChangeResultStorageClass() argument 140 IsPointerResultType(Instruction* inst) IsPointerResultType() argument 149 IsPointerToStorageClass(Instruction* inst, SpvStorageClass storage_class) IsPointerToStorageClass() argument 162 ChangeResultType(Instruction* inst, uint32_t new_type_id) ChangeResultType() argument 174 PropagateType(Instruction* inst, uint32_t type_id, uint32_t op_idx, std::set<uint32_t>* seen) PropagateType() argument 288 WalkAccessChainType(Instruction* inst, uint32_t id) WalkAccessChainType() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | fix_storage_class.cpp | 28 get_module()->ForEachInst([this, &modified](Instruction* inst) { in Process() 29 if (inst->opcode() == SpvOpVariable) { in Process() 32 get_def_use_mgr()->ForEachUse(inst, in Process() 40 static_cast<SpvStorageClass>(inst->GetSingleWordInOperand(0)), in Process() 44 PropagateType(use.first, inst->type_id(), use.second, &seen); in Process() 52 bool FixStorageClass::PropagateStorageClass(Instruction* inst, in PropagateStorageClass() argument 55 if (!IsPointerResultType(inst)) { in PropagateStorageClass() 59 if (IsPointerToStorageClass(inst, storage_class)) { in PropagateStorageClass() 60 if (inst->opcode() == SpvOpPhi) { in PropagateStorageClass() 61 if (!seen->insert(inst in PropagateStorageClass() 112 FixInstructionStorageClass(Instruction* inst, SpvStorageClass storage_class, std::set<uint32_t>* seen) FixInstructionStorageClass() argument 128 ChangeResultStorageClass( Instruction* inst, SpvStorageClass storage_class) const ChangeResultStorageClass() argument 140 IsPointerResultType(Instruction* inst) IsPointerResultType() argument 149 IsPointerToStorageClass(Instruction* inst, SpvStorageClass storage_class) IsPointerToStorageClass() argument 162 ChangeResultType(Instruction* inst, uint32_t new_type_id) ChangeResultType() argument 174 PropagateType(Instruction* inst, uint32_t type_id, uint32_t op_idx, std::set<uint32_t>* seen) PropagateType() argument 288 WalkAccessChainType(Instruction* inst, uint32_t id) WalkAccessChainType() argument [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | fix_storage_class.cpp | 28 get_module()->ForEachInst([this, &modified](Instruction* inst) { in Process() 29 if (inst->opcode() == spv::Op::OpVariable) { in Process() 32 get_def_use_mgr()->ForEachUse(inst, in Process() 40 static_cast<spv::StorageClass>(inst->GetSingleWordInOperand(0)), in Process() 44 PropagateType(use.first, inst->type_id(), use.second, &seen); in Process() 52 bool FixStorageClass::PropagateStorageClass(Instruction* inst, in PropagateStorageClass() argument 55 if (!IsPointerResultType(inst)) { in PropagateStorageClass() 59 if (IsPointerToStorageClass(inst, storage_class)) { in PropagateStorageClass() 60 if (inst->opcode() == spv::Op::OpPhi) { in PropagateStorageClass() 61 if (!seen->insert(inst in PropagateStorageClass() 112 FixInstructionStorageClass( Instruction* inst, spv::StorageClass storage_class, std::set<uint32_t>* seen) FixInstructionStorageClass() argument 128 ChangeResultStorageClass( Instruction* inst, spv::StorageClass storage_class) const ChangeResultStorageClass() argument 140 IsPointerResultType(Instruction* inst) IsPointerResultType() argument 149 IsPointerToStorageClass(Instruction* inst, spv::StorageClass storage_class) IsPointerToStorageClass() argument 162 ChangeResultType(Instruction* inst, uint32_t new_type_id) ChangeResultType() argument 174 PropagateType(Instruction* inst, uint32_t type_id, uint32_t op_idx, std::set<uint32_t>* seen) PropagateType() argument 288 WalkAccessChainType(Instruction* inst, uint32_t id) WalkAccessChainType() argument [all...] |
H A D | folding_rules.cpp | 42 int32_t ImageOperandsMaskInOperandIndex(Instruction* inst) { in ImageOperandsMaskInOperandIndex() argument 43 const auto opcode = inst->opcode(); in ImageOperandsMaskInOperandIndex() 57 return inst->NumOperands() > 4 ? 2 : -1; in ImageOperandsMaskInOperandIndex() 70 return inst->NumOperands() > 5 ? 3 : -1; in ImageOperandsMaskInOperandIndex() 72 return inst->NumOperands() > 3 ? 3 : -1; in ImageOperandsMaskInOperandIndex() 121 Instruction* inst) { in NonConstInput() 124 inst->GetSingleWordInOperand(in_op)); in NonConstInput() 304 return [](IRContext* context, Instruction* inst, in ReciprocalFDiv() 306 assert(inst->opcode() == spv::Op::OpFDiv); in ReciprocalFDiv() 309 context->get_type_mgr()->GetType(inst in ReciprocalFDiv() 120 NonConstInput(IRContext* context, const analysis::Constant* c, Instruction* inst) NonConstInput() argument [all...] |
/third_party/spirv-tools/source/val/ |
H A D | validate_ray_query.cpp | 27 const Instruction* inst, in ValidateRayQueryPointer() 29 const uint32_t ray_query_id = inst->GetOperandAs<uint32_t>(ray_query_index); in ValidateRayQueryPointer() 35 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateRayQueryPointer() 40 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateRayQueryPointer() 45 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateRayQueryPointer() 52 const Instruction* inst, in ValidateIntersectionId() 55 inst->GetOperandAs<uint32_t>(intersection_index); in ValidateIntersectionId() 61 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateIntersectionId() 70 spv_result_t RayQueryPass(ValidationState_t& _, const Instruction* inst) { in RayQueryPass() argument 71 const spv::Op opcode = inst in RayQueryPass() 26 ValidateRayQueryPointer(ValidationState_t& _, const Instruction* inst, uint32_t ray_query_index) ValidateRayQueryPointer() argument 51 ValidateIntersectionId(ValidationState_t& _, const Instruction* inst, uint32_t intersection_index) ValidateIntersectionId() argument [all...] |
H A D | validate_ray_tracing.cpp | 25 spv_result_t RayTracingPass(ValidationState_t& _, const Instruction* inst) { in RayTracingPass() argument 26 const spv::Op opcode = inst->opcode(); in RayTracingPass() 27 const uint32_t result_type = inst->type_id(); in RayTracingPass() 31 _.function(inst->function()->id()) in RayTracingPass() 47 if (_.GetIdOpcode(_.GetOperandTypeId(inst, 0)) != in RayTracingPass() 49 return _.diag(SPV_ERROR_INVALID_DATA, inst) in RayTracingPass() 54 const uint32_t ray_flags = _.GetOperandTypeId(inst, 1); in RayTracingPass() 56 return _.diag(SPV_ERROR_INVALID_DATA, inst) in RayTracingPass() 60 const uint32_t cull_mask = _.GetOperandTypeId(inst, 2); in RayTracingPass() 62 return _.diag(SPV_ERROR_INVALID_DATA, inst) in RayTracingPass() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_optc.h | 31 #define OPTC_COMMON_REG_LIST_DCN3_1(inst) \ 32 SRI(OTG_VSTARTUP_PARAM, OTG, inst),\ 33 SRI(OTG_VUPDATE_PARAM, OTG, inst),\ 34 SRI(OTG_VREADY_PARAM, OTG, inst),\ 35 SRI(OTG_MASTER_UPDATE_LOCK, OTG, inst),\ 36 SRI(OTG_GLOBAL_CONTROL0, OTG, inst),\ 37 SRI(OTG_GLOBAL_CONTROL1, OTG, inst),\ 38 SRI(OTG_GLOBAL_CONTROL2, OTG, inst),\ 39 SRI(OTG_GLOBAL_CONTROL4, OTG, inst),\ 40 SRI(OTG_DOUBLE_BUFFER_CONTROL, OTG, inst),\ [all...] |
/third_party/mesa3d/src/gallium/drivers/virgl/ |
H A D | virgl_tgsi.c | 235 struct tgsi_full_instruction inst = tgsi_default_full_instruction(); in virgl_tgsi_transform_prolog() local 236 inst.Instruction.Opcode = TGSI_OPCODE_MOV; in virgl_tgsi_transform_prolog() 237 inst.Instruction.NumDstRegs = 1; in virgl_tgsi_transform_prolog() 238 inst.Dst[0].Register.File = TGSI_FILE_TEMPORARY, in virgl_tgsi_transform_prolog() 239 inst.Dst[0].Register.Index = vtctx->input_temp[INPUT_TEMP_BLOCK_ID].temp; in virgl_tgsi_transform_prolog() 240 inst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_XYZ; in virgl_tgsi_transform_prolog() 241 inst.Instruction.NumSrcRegs = 1; in virgl_tgsi_transform_prolog() 242 tgsi_transform_src_reg_xyzw(&inst.Src[0], in virgl_tgsi_transform_prolog() 245 inst.Src[0].Register.SwizzleX = TGSI_SWIZZLE_X; in virgl_tgsi_transform_prolog() 246 inst in virgl_tgsi_transform_prolog() 267 virgl_tgsi_transform_instruction(struct tgsi_transform_context *ctx, struct tgsi_full_instruction *inst) virgl_tgsi_transform_instruction() argument [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_inst.h | 51 static inline uint64_t brw_inst_bits(const brw_inst *inst, 53 static inline void brw_inst_set_bits(brw_inst *inst, 60 brw_inst *inst, uint64_t v) \ 64 brw_inst_set_bits(inst, hi12, lo12, v); \ 66 brw_inst_set_bits(inst, hi4, lo4, v); \ 70 const brw_inst *inst) \ 74 return brw_inst_bits(inst, hi12, lo12); \ 76 return brw_inst_bits(inst, hi4, lo4); \ 112 brw_inst *inst, uint64_t value) \ 116 brw_inst_set_bits(inst, hig 532 brw_inst_set_uip(const struct intel_device_info *devinfo, brw_inst *inst, int32_t value) brw_inst_set_uip() argument 550 brw_inst_uip(const struct intel_device_info *devinfo, const brw_inst *inst) brw_inst_uip() argument 562 brw_inst_set_jip(const struct intel_device_info *devinfo, brw_inst *inst, int32_t value) brw_inst_set_jip() argument 580 brw_inst_jip(const struct intel_device_info *devinfo, const brw_inst *inst) brw_inst_jip() argument 645 brw_inst_set_send_desc(const struct intel_device_info *devinfo, brw_inst *inst, uint32_t value) brw_inst_set_send_desc() argument 672 brw_inst_send_desc(const struct intel_device_info *devinfo, const brw_inst *inst) brw_inst_send_desc() argument 700 brw_inst_set_send_ex_desc(const struct intel_device_info *devinfo, brw_inst *inst, uint32_t value) brw_inst_set_send_ex_desc() argument 730 brw_inst_set_sends_ex_desc(const struct intel_device_info *devinfo, brw_inst *inst, uint32_t value) brw_inst_set_sends_ex_desc() argument 749 brw_inst_send_ex_desc(const struct intel_device_info *devinfo, const brw_inst *inst) brw_inst_send_ex_desc() argument 773 brw_inst_sends_ex_desc(const struct intel_device_info *devinfo, const brw_inst *inst) brw_inst_sends_ex_desc() argument 1279 brw_inst_bits(const brw_inst *inst, unsigned high, unsigned low) brw_inst_bits() argument 1301 brw_inst_set_bits(brw_inst *inst, unsigned high, unsigned low, uint64_t value) brw_inst_set_bits() argument 1338 brw_compact_inst_bits(const brw_compact_inst *inst, unsigned high, unsigned low) brw_compact_inst_bits() argument 1351 brw_compact_inst_set_bits(brw_compact_inst *inst, unsigned high, unsigned low, uint64_t value) brw_compact_inst_set_bits() argument 1409 brw_compact_inst_imm(const struct intel_device_info *devinfo, const brw_compact_inst *inst) brw_compact_inst_imm() argument 1449 brw_inst_set_opcode(const struct brw_isa_info *isa, struct brw_inst *inst, enum opcode opcode) brw_inst_set_opcode() argument 1456 brw_inst_opcode(const struct brw_isa_info *isa, const struct brw_inst *inst) brw_inst_opcode() argument [all...] |
H A D | brw_fs_generator.cpp | 58 brw_reg_from_fs_reg(const struct intel_device_info *devinfo, fs_inst *inst, in brw_reg_from_fs_reg() argument 86 const unsigned phys_width = compressed ? inst->exec_size / 2 : in brw_reg_from_fs_reg() 87 inst->exec_size; in brw_reg_from_fs_reg() 98 assert(reg != &inst->dst); in brw_reg_from_fs_reg() 143 if (reg == &inst->dst && get_exec_type_size(inst) == 8 && in brw_reg_from_fs_reg() 144 type_sz(inst->dst.type) < 8) { in brw_reg_from_fs_reg() 321 fs_generator::generate_send(fs_inst *inst, in generate_send() argument 330 const unsigned rlen = dst_is_null ? 0 : inst->size_written / REG_SIZE; in generate_send() 332 uint32_t desc_imm = inst in generate_send() 357 fire_fb_write(fs_inst *inst, struct brw_reg payload, struct brw_reg implied_header, GLuint nr) fire_fb_write() argument 399 generate_fb_write(fs_inst *inst, struct brw_reg payload) generate_fb_write() argument 442 generate_fb_read(fs_inst *inst, struct brw_reg dst, struct brw_reg payload) generate_fb_read() argument 456 generate_mov_indirect(fs_inst *inst, struct brw_reg dst, struct brw_reg reg, struct brw_reg indirect_byte_offset) generate_mov_indirect() argument 599 generate_shuffle(fs_inst *inst, struct brw_reg dst, struct brw_reg src, struct brw_reg idx) generate_shuffle() argument 718 generate_quad_swizzle(const fs_inst *inst, struct brw_reg dst, struct brw_reg src, unsigned swiz) generate_quad_swizzle() argument 788 generate_cs_terminate(fs_inst *inst, struct brw_reg payload) generate_cs_terminate() argument 840 generate_linterp(fs_inst *inst, struct brw_reg dst, struct brw_reg *src) generate_linterp() argument 946 generate_get_buffer_size(fs_inst *inst, struct brw_reg dst, struct brw_reg src, struct brw_reg surf_index) generate_get_buffer_size() argument 991 generate_tex(fs_inst *inst, struct brw_reg dst, struct brw_reg surface_index, struct brw_reg sampler_index) generate_tex() argument 1245 generate_ddx(const fs_inst *inst, struct brw_reg dst, struct brw_reg src) generate_ddx() argument 1301 generate_ddy(const fs_inst *inst, struct brw_reg dst, struct brw_reg src) generate_ddy() argument 1384 generate_scratch_write(fs_inst *inst, struct brw_reg src) generate_scratch_write() argument 1424 generate_scratch_read(fs_inst *inst, struct brw_reg dst) generate_scratch_read() argument 1434 generate_scratch_read_gfx7(fs_inst *inst, struct brw_reg dst) generate_scratch_read_gfx7() argument 1480 generate_scratch_header(fs_inst *inst, struct brw_reg dst) generate_scratch_header() argument 1512 generate_uniform_pull_constant_load(fs_inst *inst, struct brw_reg dst, struct brw_reg index, struct brw_reg offset) generate_uniform_pull_constant_load() argument 1533 generate_uniform_pull_constant_load_gfx7(fs_inst *inst, struct brw_reg dst, struct brw_reg index, struct brw_reg payload) generate_uniform_pull_constant_load_gfx7() argument 1594 generate_varying_pull_constant_load_gfx4(fs_inst *inst, struct brw_reg dst, struct brw_reg index) generate_varying_pull_constant_load_gfx4() argument 1652 generate_pixel_interpolator_query(fs_inst *inst, struct brw_reg dst, struct brw_reg src, struct brw_reg msg_data, unsigned msg_type) generate_pixel_interpolator_query() argument 1680 generate_set_sample_id(fs_inst *inst, struct brw_reg dst, struct brw_reg src0, struct brw_reg src1) generate_set_sample_id() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
H A D | helpers.c | 28 bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt) in venus_helper_check_codec() argument 30 struct venus_core *core = inst->core; in venus_helper_check_codec() 31 u32 session_type = inst->session_type; in venus_helper_check_codec() 80 int venus_helper_queue_dpb_bufs(struct venus_inst *inst) in venus_helper_queue_dpb_bufs() argument 85 list_for_each_entry(buf, &inst->dpbbufs, list) { in venus_helper_queue_dpb_bufs() 93 ret = hfi_session_process_buf(inst, &fdata); in venus_helper_queue_dpb_bufs() 103 int venus_helper_free_dpb_bufs(struct venus_inst *inst) in venus_helper_free_dpb_bufs() argument 107 list_for_each_entry_safe(buf, n, &inst->dpbbufs, list) { in venus_helper_free_dpb_bufs() 109 dma_free_attrs(inst->core->dev, buf->size, buf->va, buf->da, in venus_helper_free_dpb_bufs() 114 INIT_LIST_HEAD(&inst in venus_helper_free_dpb_bufs() 120 venus_helper_alloc_dpb_bufs(struct venus_inst *inst) venus_helper_alloc_dpb_bufs() argument 181 intbufs_set_buffer(struct venus_inst *inst, u32 type) intbufs_set_buffer() argument 240 intbufs_unset_buffers(struct venus_inst *inst) intbufs_unset_buffers() argument 280 venus_helper_intbufs_alloc(struct venus_inst *inst) venus_helper_intbufs_alloc() argument 308 venus_helper_intbufs_free(struct venus_inst *inst) venus_helper_intbufs_free() argument 314 venus_helper_intbufs_realloc(struct venus_inst *inst) venus_helper_intbufs_realloc() argument 371 return_buf_error(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) return_buf_error() argument 385 put_ts_metadata(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) put_ts_metadata() argument 413 venus_helper_get_ts_metadata(struct venus_inst *inst, u64 timestamp_us, struct vb2_v4l2_buffer *vbuf) venus_helper_get_ts_metadata() argument 436 session_process_buf(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) session_process_buf() argument 480 is_dynamic_bufmode(struct venus_inst *inst) is_dynamic_bufmode() argument 499 venus_helper_unregister_bufs(struct venus_inst *inst) venus_helper_unregister_bufs() argument 518 session_register_bufs(struct venus_inst *inst) session_register_bufs() argument 555 venus_helper_get_bufreq(struct venus_inst *inst, u32 type, struct hfi_buffer_requirements *req) venus_helper_get_bufreq() argument 797 venus_helper_get_profile_level(struct venus_inst *inst, u32 *profile, u32 *level) venus_helper_get_profile_level() argument 813 venus_helper_set_profile_level(struct venus_inst *inst, u32 profile, u32 level) venus_helper_set_profile_level() argument 1000 venus_helper_set_input_resolution(struct venus_inst *inst, unsigned int width, unsigned int height) venus_helper_set_input_resolution() argument 1014 venus_helper_set_output_resolution(struct venus_inst *inst, unsigned int width, unsigned int height, u32 buftype) venus_helper_set_output_resolution() argument 1029 venus_helper_set_work_mode(struct venus_inst *inst, u32 mode) venus_helper_set_work_mode() argument 1043 venus_helper_init_codec_freq_data(struct venus_inst *inst) venus_helper_init_codec_freq_data() argument 1073 venus_helper_set_num_bufs(struct venus_inst *inst, unsigned int input_bufs, unsigned int output_bufs, unsigned int output2_bufs) venus_helper_set_num_bufs() argument 1106 venus_helper_set_raw_format(struct venus_inst *inst, u32 hfi_format, u32 buftype) venus_helper_set_raw_format() argument 1119 venus_helper_set_color_format(struct venus_inst *inst, u32 pixfmt) venus_helper_set_color_format() argument 1138 venus_helper_set_multistream(struct venus_inst *inst, bool out_en, bool out2_en) venus_helper_set_multistream() argument 1159 venus_helper_set_dyn_bufmode(struct venus_inst *inst) venus_helper_set_dyn_bufmode() argument 1181 venus_helper_set_bufsize(struct venus_inst *inst, u32 bufsize, u32 buftype) venus_helper_set_bufsize() argument 1193 venus_helper_get_opb_size(struct venus_inst *inst) venus_helper_get_opb_size() argument 1211 struct venus_inst *inst; delayed_process_buf_func() local 1235 venus_helper_release_buf_ref(struct venus_inst *inst, unsigned int idx) venus_helper_release_buf_ref() argument 1257 is_buf_refed(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) is_buf_refed() argument 1271 venus_helper_find_buf(struct venus_inst *inst, unsigned int type, u32 idx) venus_helper_find_buf() argument 1284 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); venus_helper_vb2_buf_init() local 1305 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); venus_helper_vb2_buf_prepare() local 1330 cache_payload(struct venus_inst *inst, struct vb2_buffer *vb) cache_payload() argument 1342 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); venus_helper_vb2_buf_queue() local 1377 venus_helper_buffers_done(struct venus_inst *inst, unsigned int type, enum vb2_buffer_state state) venus_helper_buffers_done() argument 1394 struct venus_inst *inst = vb2_get_drv_priv(q); venus_helper_vb2_stop_streaming() local 1435 venus_helper_process_initial_cap_bufs(struct venus_inst *inst) venus_helper_process_initial_cap_bufs() argument 1453 venus_helper_process_initial_out_bufs(struct venus_inst *inst) venus_helper_process_initial_out_bufs() argument 1471 venus_helper_vb2_start_streaming(struct venus_inst *inst) venus_helper_vb2_start_streaming() argument 1507 struct venus_inst *inst = priv; venus_helper_m2m_device_run() local 1532 struct venus_inst *inst = priv; venus_helper_m2m_job_abort() local 1538 venus_helper_init_instance(struct venus_inst *inst) venus_helper_init_instance() argument 1561 venus_helper_get_out_fmts(struct venus_inst *inst, u32 v4l2_fmt, u32 *out_fmt, u32 *out2_fmt, bool ubwc) venus_helper_get_out_fmts() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn314/ |
H A D | dcn314_optc.h | 32 #define OPTC_COMMON_REG_LIST_DCN3_14(inst) \ 33 SRI(OTG_VSTARTUP_PARAM, OTG, inst),\ 34 SRI(OTG_VUPDATE_PARAM, OTG, inst),\ 35 SRI(OTG_VREADY_PARAM, OTG, inst),\ 36 SRI(OTG_MASTER_UPDATE_LOCK, OTG, inst),\ 37 SRI(OTG_GLOBAL_CONTROL0, OTG, inst),\ 38 SRI(OTG_GLOBAL_CONTROL1, OTG, inst),\ 39 SRI(OTG_GLOBAL_CONTROL2, OTG, inst),\ 40 SRI(OTG_GLOBAL_CONTROL4, OTG, inst),\ 41 SRI(OTG_DOUBLE_BUFFER_CONTROL, OTG, inst),\ [all...] |
/third_party/mesa3d/src/broadcom/compiler/ |
H A D | qpu_validate.c | 64 vir_for_each_inst_inorder(inst, c) { in fail_instr() 65 v3d_qpu_dump(c->devinfo, &inst->qpu); in fail_instr() 90 qpu_magic_waddr_matches(const struct v3d_qpu_instr *inst, in qpu_magic_waddr_matches() argument 93 if (inst->type == V3D_QPU_INSTR_TYPE_ALU) in qpu_magic_waddr_matches() 96 if (inst->alu.add.op != V3D_QPU_A_NOP && in qpu_magic_waddr_matches() 97 inst->alu.add.magic_write && in qpu_magic_waddr_matches() 98 predicate(inst->alu.add.waddr)) in qpu_magic_waddr_matches() 101 if (inst->alu.mul.op != V3D_QPU_M_NOP && in qpu_magic_waddr_matches() 102 inst->alu.mul.magic_write && in qpu_magic_waddr_matches() 103 predicate(inst in qpu_magic_waddr_matches() 113 const struct v3d_qpu_instr *inst = &qinst->qpu; qpu_validate_inst() local [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | radeon_vert_fc.c | 60 static void mark_write(void * userdata, struct rc_instruction * inst, in mark_write() argument 78 struct rc_instruction * inst; in reserve_predicate_reg() local 80 for(inst = fc_state->C->Program.Instructions.Next; in reserve_predicate_reg() 81 inst != &fc_state->C->Program.Instructions; in reserve_predicate_reg() 82 inst = inst->Next) { in reserve_predicate_reg() 83 rc_for_all_writes_mask(inst, mark_write, writemasks); in reserve_predicate_reg() 107 struct rc_instruction * inst, in lower_bgnloop() 111 rc_insert_new_instruction(fc_state->C, inst->Prev); in lower_bgnloop() 158 struct rc_instruction * inst, in lower_brk() 106 lower_bgnloop( struct rc_instruction * inst, struct vert_fc_state * fc_state) lower_bgnloop() argument 157 lower_brk( struct rc_instruction * inst, struct vert_fc_state * fc_state) lower_brk() argument 175 lower_endloop( struct rc_instruction * inst, struct vert_fc_state * fc_state) lower_endloop() argument 189 lower_if( struct rc_instruction * inst, struct vert_fc_state * fc_state) lower_if() argument 224 struct rc_instruction * inst; rc_vert_fc() local [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
H A D | cm33xx.c | 51 static inline u32 am33xx_cm_read_reg(u16 inst, u16 idx) in am33xx_cm_read_reg() argument 53 return readl_relaxed(cm_base.va + inst + idx); in am33xx_cm_read_reg() 57 static inline void am33xx_cm_write_reg(u32 val, u16 inst, u16 idx) in am33xx_cm_write_reg() argument 59 writel_relaxed(val, cm_base.va + inst + idx); in am33xx_cm_write_reg() 63 static inline u32 am33xx_cm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) in am33xx_cm_rmw_reg_bits() argument 67 v = am33xx_cm_read_reg(inst, idx); in am33xx_cm_rmw_reg_bits() 70 am33xx_cm_write_reg(v, inst, idx); in am33xx_cm_rmw_reg_bits() 75 static inline u32 am33xx_cm_read_reg_bits(u16 inst, s16 idx, u32 mask) in am33xx_cm_read_reg_bits() argument 79 v = am33xx_cm_read_reg(inst, idx); in am33xx_cm_read_reg_bits() 88 * @inst 94 _clkctrl_idlest(u16 inst, u16 clkctrl_offs) _clkctrl_idlest() argument 110 _is_module_ready(u16 inst, u16 clkctrl_offs) _is_module_ready() argument 129 _clktrctrl_write(u8 c, u16 inst, u16 cdoffs) _clktrctrl_write() argument 149 am33xx_cm_is_clkdm_in_hwsup(u16 inst, u16 cdoffs) am33xx_cm_is_clkdm_in_hwsup() argument 168 am33xx_cm_clkdm_enable_hwsup(u16 inst, u16 cdoffs) am33xx_cm_clkdm_enable_hwsup() argument 182 am33xx_cm_clkdm_disable_hwsup(u16 inst, u16 cdoffs) am33xx_cm_clkdm_disable_hwsup() argument 195 am33xx_cm_clkdm_force_sleep(u16 inst, u16 cdoffs) am33xx_cm_clkdm_force_sleep() argument 208 am33xx_cm_clkdm_force_wakeup(u16 inst, u16 cdoffs) am33xx_cm_clkdm_force_wakeup() argument 229 am33xx_cm_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs, u8 bit_shift) am33xx_cm_wait_module_ready() argument 252 am33xx_cm_wait_module_idle(u8 part, s16 inst, u16 clkctrl_offs, u8 bit_shift) am33xx_cm_wait_module_idle() argument 273 am33xx_cm_module_enable(u8 mode, u8 part, u16 inst, u16 clkctrl_offs) am33xx_cm_module_enable() argument 292 am33xx_cm_module_disable(u8 part, u16 inst, u16 clkctrl_offs) am33xx_cm_module_disable() argument 347 am33xx_cm_xlate_clkctrl(u8 part, u16 inst, u16 offset) am33xx_cm_xlate_clkctrl() argument [all...] |
/kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
H A D | cm33xx.c | 43 static inline u32 am33xx_cm_read_reg(u16 inst, u16 idx) in am33xx_cm_read_reg() argument 45 return readl_relaxed(cm_base.va + inst + idx); in am33xx_cm_read_reg() 49 static inline void am33xx_cm_write_reg(u32 val, u16 inst, u16 idx) in am33xx_cm_write_reg() argument 51 writel_relaxed(val, cm_base.va + inst + idx); in am33xx_cm_write_reg() 55 static inline u32 am33xx_cm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) in am33xx_cm_rmw_reg_bits() argument 59 v = am33xx_cm_read_reg(inst, idx); in am33xx_cm_rmw_reg_bits() 62 am33xx_cm_write_reg(v, inst, idx); in am33xx_cm_rmw_reg_bits() 67 static inline u32 am33xx_cm_read_reg_bits(u16 inst, s16 idx, u32 mask) in am33xx_cm_read_reg_bits() argument 71 v = am33xx_cm_read_reg(inst, idx); in am33xx_cm_read_reg_bits() 80 * @inst 86 _clkctrl_idlest(u16 inst, u16 clkctrl_offs) _clkctrl_idlest() argument 102 _is_module_ready(u16 inst, u16 clkctrl_offs) _is_module_ready() argument 121 _clktrctrl_write(u8 c, u16 inst, u16 cdoffs) _clktrctrl_write() argument 141 am33xx_cm_is_clkdm_in_hwsup(u16 inst, u16 cdoffs) am33xx_cm_is_clkdm_in_hwsup() argument 160 am33xx_cm_clkdm_enable_hwsup(u16 inst, u16 cdoffs) am33xx_cm_clkdm_enable_hwsup() argument 174 am33xx_cm_clkdm_disable_hwsup(u16 inst, u16 cdoffs) am33xx_cm_clkdm_disable_hwsup() argument 187 am33xx_cm_clkdm_force_sleep(u16 inst, u16 cdoffs) am33xx_cm_clkdm_force_sleep() argument 200 am33xx_cm_clkdm_force_wakeup(u16 inst, u16 cdoffs) am33xx_cm_clkdm_force_wakeup() argument 221 am33xx_cm_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs, u8 bit_shift) am33xx_cm_wait_module_ready() argument 244 am33xx_cm_wait_module_idle(u8 part, s16 inst, u16 clkctrl_offs, u8 bit_shift) am33xx_cm_wait_module_idle() argument 265 am33xx_cm_module_enable(u8 mode, u8 part, u16 inst, u16 clkctrl_offs) am33xx_cm_module_enable() argument 284 am33xx_cm_module_disable(u8 part, u16 inst, u16 clkctrl_offs) am33xx_cm_module_disable() argument 339 am33xx_cm_xlate_clkctrl(u8 part, u16 inst, u16 offset) am33xx_cm_xlate_clkctrl() argument [all...] |