Home
last modified time | relevance | path

Searched refs:inst (Results 26 - 50 of 3196) sorted by relevance

12345678910>>...128

/third_party/mesa3d/src/intel/compiler/
H A Dbrw_vec4_copy_propagation.cpp44 is_direct_copy(vec4_instruction *inst) in is_direct_copy() argument
46 return (inst->opcode == BRW_OPCODE_MOV && in is_direct_copy()
47 !inst->predicate && in is_direct_copy()
48 inst->dst.file == VGRF && in is_direct_copy()
49 inst->dst.offset % REG_SIZE == 0 && in is_direct_copy()
50 !inst->dst.reladdr && in is_direct_copy()
51 !inst->src[0].reladdr && in is_direct_copy()
52 (inst->dst.type == inst->src[0].type || in is_direct_copy()
53 (inst in is_direct_copy()
58 is_dominated_by_previous_instruction(vec4_instruction *inst) is_dominated_by_previous_instruction() argument
67 is_channel_updated(vec4_instruction *inst, src_reg *values[4], int ch) is_channel_updated() argument
126 try_constant_propagate(vec4_instruction *inst, int arg, const copy_entry *entry) try_constant_propagate() argument
302 try_copy_propagate(const struct brw_compiler *compiler, vec4_instruction *inst, int arg, const copy_entry *entry, int attributes_per_reg) try_copy_propagate() argument
[all...]
H A Dbrw_schedule_instructions.cpp66 schedule_node(backend_instruction *inst, instruction_scheduler *sched);
71 backend_instruction *inst; member in schedule_node
125 switch (inst->opcode) { in set_latency_gfx4()
160 switch (inst->opcode) { in set_latency_gfx7()
384 switch (inst->sfid) { in set_latency_gfx7()
386 unsigned msg_type = (inst->desc >> 12) & 0x1f; in set_latency_gfx7()
403 switch (brw_fb_desc_msg_type(isa->devinfo, inst->desc)) { in set_latency_gfx7()
428 switch ((inst->desc >> 14) & 0x1f) { in set_latency_gfx7()
498 switch ((inst->desc >> 14) & 0x1f) { in set_latency_gfx7()
534 switch (lsc_msg_desc_opcode(isa->devinfo, inst in set_latency_gfx7()
763 is_src_duplicate(fs_inst *inst, int src) is_src_duplicate() argument
775 fs_inst *inst = (fs_inst *)be; count_reads_remaining() local
857 fs_inst *inst = (fs_inst *)be; update_register_pressure() local
883 fs_inst *inst = (fs_inst *)be; get_register_pressure_benefit() local
959 schedule_node(backend_instruction *inst, instruction_scheduler *sched) schedule_node() argument
1094 is_scheduling_barrier(const backend_instruction *inst) is_scheduling_barrier() argument
1135 is_compressed(const fs_inst *inst) is_compressed() argument
1163 fs_inst *inst = (fs_inst *)n->inst; calculate_deps() local
[all...]
H A Dbrw_eu_validate.c82 struct string __msg = func(isa, inst, ##args); \
93 inst_is_send(const struct brw_isa_info *isa, const brw_inst *inst) in inst_is_send() argument
95 switch (brw_inst_opcode(isa, inst)) { in inst_is_send()
107 inst_is_split_send(const struct brw_isa_info *isa, const brw_inst *inst) in inst_is_split_send() argument
112 return inst_is_send(isa, inst); in inst_is_split_send()
114 switch (brw_inst_opcode(isa, inst)) { in inst_is_split_send()
137 inst_dst_type(const struct brw_isa_info *isa, const brw_inst *inst) in inst_dst_type() argument
141 return (devinfo->ver < 12 || !inst_is_send(isa, inst)) ? in inst_dst_type()
142 brw_inst_dst_type(devinfo, inst) : BRW_REGISTER_TYPE_D; in inst_dst_type()
146 inst_is_raw_move(const struct brw_isa_info *isa, const brw_inst *inst) in inst_is_raw_move() argument
171 dst_is_null(const struct intel_device_info *devinfo, const brw_inst *inst) dst_is_null() argument
178 src0_is_null(const struct intel_device_info *devinfo, const brw_inst *inst) src0_is_null() argument
186 src1_is_null(const struct intel_device_info *devinfo, const brw_inst *inst) src1_is_null() argument
193 src0_is_acc(const struct intel_device_info *devinfo, const brw_inst *inst) src0_is_acc() argument
200 src1_is_acc(const struct intel_device_info *devinfo, const brw_inst *inst) src1_is_acc() argument
207 src0_has_scalar_region(const struct intel_device_info *devinfo, const brw_inst *inst) src0_has_scalar_region() argument
216 src1_has_scalar_region(const struct intel_device_info *devinfo, const brw_inst *inst) src1_has_scalar_region() argument
225 num_sources_from_inst(const struct brw_isa_info *isa, const brw_inst *inst) num_sources_from_inst() argument
281 invalid_values(const struct brw_isa_info *isa, const brw_inst *inst) invalid_values() argument
353 sources_not_null(const struct brw_isa_info *isa, const brw_inst *inst) sources_not_null() argument
382 alignment_supported(const struct brw_isa_info *isa, const brw_inst *inst) alignment_supported() argument
395 inst_uses_src_acc(const struct brw_isa_info *isa, const brw_inst *inst) inst_uses_src_acc() argument
418 send_restrictions(const struct brw_isa_info *isa, const brw_inst *inst) send_restrictions() argument
488 is_unsupported_inst(const struct brw_isa_info *isa, const brw_inst *inst) is_unsupported_inst() argument
541 execution_type(const struct brw_isa_info *isa, const brw_inst *inst) execution_type() argument
639 is_half_float_conversion(const struct brw_isa_info *isa, const brw_inst *inst) is_half_float_conversion() argument
666 is_mixed_float(const struct brw_isa_info *isa, const brw_inst *inst) is_mixed_float() argument
703 is_byte_conversion(const struct brw_isa_info *isa, const brw_inst *inst) is_byte_conversion() argument
730 general_restrictions_based_on_operand_types(const struct brw_isa_info *isa, const brw_inst *inst) general_restrictions_based_on_operand_types() argument
1015 general_restrictions_on_region_parameters(const struct brw_isa_info *isa, const brw_inst *inst) general_restrictions_on_region_parameters() argument
1176 special_restrictions_for_mixed_float_mode(const struct brw_isa_info *isa, const brw_inst *inst) special_restrictions_for_mixed_float_mode() argument
1459 region_alignment_rules(const struct brw_isa_info *isa, const brw_inst *inst) region_alignment_rules() argument
1774 vector_immediate_restrictions(const struct brw_isa_info *isa, const brw_inst *inst) vector_immediate_restrictions() argument
1837 special_requirements_for_handling_double_precision_data_types( const struct brw_isa_info *isa, const brw_inst *inst) special_requirements_for_handling_double_precision_data_types() argument
2070 instruction_restrictions(const struct brw_isa_info *isa, const brw_inst *inst) instruction_restrictions() argument
2176 send_descriptor_restrictions(const struct brw_isa_info *isa, const brw_inst *inst) send_descriptor_restrictions() argument
2293 brw_validate_instruction(const struct brw_isa_info *isa, const brw_inst *inst, int offset, unsigned inst_size, struct disasm_info *disasm) brw_validate_instruction() argument
2337 const brw_inst *inst = assembly + src_offset; brw_validate_instructions() local
[all...]
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_pair_translate.c40 static void final_rewrite(struct rc_sub_instruction *inst) in final_rewrite() argument
44 switch(inst->Opcode) { in final_rewrite()
46 inst->SrcReg[2] = inst->SrcReg[1]; in final_rewrite()
47 inst->SrcReg[1].File = RC_FILE_NONE; in final_rewrite()
48 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; in final_rewrite()
49 inst->SrcReg[1].Negate = RC_MASK_NONE; in final_rewrite()
50 inst->Opcode = RC_OPCODE_MAD; in final_rewrite()
53 tmp = inst->SrcReg[2]; in final_rewrite()
54 inst in final_rewrite()
89 classify_instruction(struct rc_sub_instruction * inst, int * needrgb, int * needalpha, int * istranscendent) classify_instruction() argument
151 set_pair_instruction(struct r300_fragment_program_compiler *c, struct rc_pair_instruction * pair, struct rc_sub_instruction * inst) set_pair_instruction() argument
330 check_opcode_support(struct r300_fragment_program_compiler *c, struct rc_sub_instruction *inst) check_opcode_support() argument
[all...]
H A Dradeon_program_alu.c198 static int is_dst_safe_to_reuse(struct rc_instruction *inst) in is_dst_safe_to_reuse() argument
200 const struct rc_opcode_info *info = rc_get_opcode_info(inst->U.I.Opcode); in is_dst_safe_to_reuse()
205 if (inst->U.I.DstReg.File != RC_FILE_TEMPORARY) in is_dst_safe_to_reuse()
209 if (inst->U.I.SrcReg[i].File == RC_FILE_TEMPORARY && in is_dst_safe_to_reuse()
210 inst->U.I.SrcReg[i].Index == inst->U.I.DstReg.Index) in is_dst_safe_to_reuse()
218 struct rc_instruction *inst) in try_to_reuse_dst()
222 if (is_dst_safe_to_reuse(inst)) in try_to_reuse_dst()
223 tmp = inst->U.I.DstReg.Index; in try_to_reuse_dst()
227 return dstregtmpmask(tmp, inst in try_to_reuse_dst()
217 try_to_reuse_dst(struct radeon_compiler *c, struct rc_instruction *inst) try_to_reuse_dst() argument
230 transform_CEIL(struct radeon_compiler* c, struct rc_instruction* inst) transform_CEIL() argument
250 transform_DP2(struct radeon_compiler* c, struct rc_instruction* inst) transform_DP2() argument
269 transform_DST(struct radeon_compiler* c, struct rc_instruction* inst) transform_DST() argument
278 transform_FLR(struct radeon_compiler* c, struct rc_instruction* inst) transform_FLR() argument
288 transform_TRUNC(struct radeon_compiler* c, struct rc_instruction* inst) transform_TRUNC() argument
324 transform_LIT(struct radeon_compiler* c, struct rc_instruction* inst) transform_LIT() argument
389 transform_LRP(struct radeon_compiler* c, struct rc_instruction* inst) transform_LRP() argument
404 transform_POW(struct radeon_compiler* c, struct rc_instruction* inst) transform_POW() argument
428 transform_ROUND(struct radeon_compiler* c, struct rc_instruction* inst) transform_ROUND() argument
456 transform_RSQ(struct radeon_compiler* c, struct rc_instruction* inst) transform_RSQ() argument
462 transform_SEQ(struct radeon_compiler* c, struct rc_instruction* inst) transform_SEQ() argument
474 transform_SGE(struct radeon_compiler* c, struct rc_instruction* inst) transform_SGE() argument
486 transform_SGT(struct radeon_compiler* c, struct rc_instruction* inst) transform_SGT() argument
498 transform_SLE(struct radeon_compiler* c, struct rc_instruction* inst) transform_SLE() argument
510 transform_SLT(struct radeon_compiler* c, struct rc_instruction* inst) transform_SLT() argument
522 transform_SNE(struct radeon_compiler* c, struct rc_instruction* inst) transform_SNE() argument
534 transform_SSG(struct radeon_compiler* c, struct rc_instruction* inst) transform_SSG() argument
572 transform_SUB(struct radeon_compiler* c, struct rc_instruction* inst) transform_SUB() argument
593 radeonTransformALU( struct radeon_compiler * c, struct rc_instruction* inst, void* unused) radeonTransformALU() argument
622 transform_r300_vertex_CMP(struct radeon_compiler* c, struct rc_instruction* inst) transform_r300_vertex_CMP() argument
651 transform_r300_vertex_DP2(struct radeon_compiler* c, struct rc_instruction* inst) transform_r300_vertex_DP2() argument
659 transform_r300_vertex_DP3(struct radeon_compiler* c, struct rc_instruction* inst) transform_r300_vertex_DP3() argument
674 transform_r300_vertex_fix_LIT(struct radeon_compiler* c, struct rc_instruction* inst) transform_r300_vertex_fix_LIT() argument
698 transform_r300_vertex_SEQ(struct radeon_compiler *c, struct rc_instruction *inst) transform_r300_vertex_SEQ() argument
725 transform_r300_vertex_SNE(struct radeon_compiler *c, struct rc_instruction *inst) transform_r300_vertex_SNE() argument
752 transform_r300_vertex_SGT(struct radeon_compiler* c, struct rc_instruction* inst) transform_r300_vertex_SGT() argument
761 transform_r300_vertex_SLE(struct radeon_compiler* c, struct rc_instruction* inst) transform_r300_vertex_SLE() argument
770 transform_r300_vertex_SSG(struct radeon_compiler* c, struct rc_instruction* inst) transform_r300_vertex_SSG() argument
806 transform_vertex_TRUNC(struct radeon_compiler* c, struct rc_instruction* inst) transform_vertex_TRUNC() argument
821 r300_transform_vertex_alu( struct radeon_compiler * c, struct rc_instruction* inst, void* unused) r300_transform_vertex_alu() argument
886 sin_approx( struct radeon_compiler* c, struct rc_instruction * inst, struct rc_dst_register dst, struct rc_src_register src, const unsigned int* constants) sin_approx() argument
914 r300_transform_trig_simple(struct radeon_compiler* c, struct rc_instruction* inst, void* unused) r300_transform_trig_simple() argument
994 r300_transform_SIN_COS(struct radeon_compiler *c, struct rc_instruction *inst, unsigned srctmp) r300_transform_SIN_COS() argument
1017 radeonTransformTrigScale(struct radeon_compiler* c, struct rc_instruction* inst, void* unused) radeonTransformTrigScale() argument
1050 r300_transform_trig_scale_vertex(struct radeon_compiler *c, struct rc_instruction *inst, void *unused) r300_transform_trig_scale_vertex() argument
1094 radeonStubDeriv(struct radeon_compiler* c, struct rc_instruction* inst, void* unused) radeonStubDeriv() argument
1119 radeonTransformDeriv(struct radeon_compiler* c, struct rc_instruction* inst, void* unused) radeonTransformDeriv() argument
1158 struct rc_instruction * inst; rc_transform_KILL() local
1189 rc_force_output_alpha_to_one(struct radeon_compiler *c, struct rc_instruction *inst, void *data) rc_force_output_alpha_to_one() argument
[all...]
H A Dr500_fragprog_emit.c161 static unsigned int translate_arg_rgb(struct rc_pair_instruction *inst, int arg) in translate_arg_rgb() argument
163 unsigned int t = inst->RGB.Arg[arg].Source; in translate_arg_rgb()
165 t |= inst->RGB.Arg[arg].Negate << 11; in translate_arg_rgb()
166 t |= inst->RGB.Arg[arg].Abs << 12; in translate_arg_rgb()
169 t |= fix_hw_swizzle(GET_SWZ(inst->RGB.Arg[arg].Swizzle, comp)) << (3*comp + 2); in translate_arg_rgb()
174 static unsigned int translate_arg_alpha(struct rc_pair_instruction *inst, int i) in translate_arg_alpha() argument
176 unsigned int t = inst->Alpha.Arg[i].Source; in translate_arg_alpha()
177 t |= fix_hw_swizzle(GET_SWZ(inst->Alpha.Arg[i].Swizzle, 0)) << 2; in translate_arg_alpha()
178 t |= inst->Alpha.Arg[i].Negate << 5; in translate_arg_alpha()
179 t |= inst in translate_arg_alpha()
237 emit_paired(struct r300_fragment_program_compiler *c, struct rc_pair_instruction *inst) emit_paired() argument
373 emit_tex(struct r300_fragment_program_compiler *c, struct rc_sub_instruction *inst) emit_tex() argument
445 emit_flowcontrol(struct emit_state * s, struct rc_instruction * inst) emit_flowcontrol() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_mpc.h34 #define MPC_REG_LIST_DCN3_2(inst) \
35 MPC_REG_LIST_DCN3_0(inst),\
36 SRII(MPCC_MOVABLE_CM_LOCATION_CONTROL, MPCC, inst),\
37 SRII(MPCC_MCM_SHAPER_CONTROL, MPCC_MCM, inst),\
38 SRII(MPCC_MCM_SHAPER_OFFSET_R, MPCC_MCM, inst),\
39 SRII(MPCC_MCM_SHAPER_OFFSET_G, MPCC_MCM, inst),\
40 SRII(MPCC_MCM_SHAPER_OFFSET_B, MPCC_MCM, inst),\
41 SRII(MPCC_MCM_SHAPER_SCALE_R, MPCC_MCM, inst),\
42 SRII(MPCC_MCM_SHAPER_SCALE_G_B, MPCC_MCM, inst),\
43 SRII(MPCC_MCM_SHAPER_LUT_INDEX, MPCC_MCM, inst),\
[all...]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_asm.c36 check_uniforms(const struct etna_inst *inst) in check_uniforms() argument
43 const struct etna_inst_src *src = &inst->src[i]; in check_uniforms()
62 etna_assemble(uint32_t *out, const struct etna_inst *inst) in etna_assemble() argument
65 if (inst->imm && inst->src[2].use) in etna_assemble()
68 if (!inst->no_oneconst_limit && !check_uniforms(inst)) in etna_assemble()
71 assert(!(inst->opcode&~0x7f)); in etna_assemble()
73 out[0] = VIV_ISA_WORD_0_OPCODE(inst->opcode & 0x3f) | in etna_assemble()
74 VIV_ISA_WORD_0_COND(inst in etna_assemble()
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_qpu_validate.c30 fail_instr(uint64_t inst, const char *msg) in fail_instr() argument
33 vc4_qpu_disasm(&inst, 1); in fail_instr()
39 writes_reg(uint64_t inst, uint32_t w) in writes_reg() argument
41 return (QPU_GET_FIELD(inst, QPU_WADDR_ADD) == w || in writes_reg()
42 QPU_GET_FIELD(inst, QPU_WADDR_MUL) == w); in writes_reg()
46 _reads_reg(uint64_t inst, uint32_t r, bool ignore_a, bool ignore_b) in _reads_reg() argument
51 { QPU_GET_FIELD(inst, QPU_ADD_A) }, in _reads_reg()
52 { QPU_GET_FIELD(inst, QPU_ADD_B) }, in _reads_reg()
53 { QPU_GET_FIELD(inst, QPU_MUL_A) }, in _reads_reg()
54 { QPU_GET_FIELD(inst, QPU_MUL_ in _reads_reg()
84 reads_reg(uint64_t inst, uint32_t r) reads_reg() argument
90 reads_a_reg(uint64_t inst, uint32_t r) reads_a_reg() argument
96 reads_b_reg(uint64_t inst, uint32_t r) reads_b_reg() argument
102 writes_sfu(uint64_t inst) writes_sfu() argument
129 uint64_t inst = insts[i]; vc4_qpu_validate() local
202 uint64_t inst = insts[i]; vc4_qpu_validate() local
215 uint64_t inst = insts[i]; vc4_qpu_validate() local
231 uint64_t inst = insts[i]; vc4_qpu_validate() local
259 uint64_t inst = insts[i]; vc4_qpu_validate() local
275 uint64_t inst = insts[i]; vc4_qpu_validate() local
332 uint64_t inst = insts[i]; vc4_qpu_validate() local
348 uint64_t inst = insts[i]; vc4_qpu_validate() local
361 uint64_t inst = insts[i]; vc4_qpu_validate() local
384 uint64_t inst = insts[i]; vc4_qpu_validate() local
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_vp8_req_if.c118 static void vdec_vp8_slice_get_pic_info(struct vdec_vp8_slice_inst *inst) in vdec_vp8_slice_get_pic_info() argument
120 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in vdec_vp8_slice_get_pic_info()
126 vpu_dec_get_param(&inst->vpu, data, 3, GET_PARAM_PIC_INFO); in vdec_vp8_slice_get_pic_info()
130 ctx->picinfo.fb_sz[0] = inst->vpu.fb_sz[0]; in vdec_vp8_slice_get_pic_info()
131 ctx->picinfo.fb_sz[1] = inst->vpu.fb_sz[1]; in vdec_vp8_slice_get_pic_info()
133 inst->vsi->pic.pic_w = ctx->picinfo.pic_w; in vdec_vp8_slice_get_pic_info()
134 inst->vsi->pic.pic_h = ctx->picinfo.pic_h; in vdec_vp8_slice_get_pic_info()
135 inst->vsi->pic.buf_w = ctx->picinfo.buf_w; in vdec_vp8_slice_get_pic_info()
136 inst->vsi->pic.buf_h = ctx->picinfo.buf_h; in vdec_vp8_slice_get_pic_info()
137 inst in vdec_vp8_slice_get_pic_info()
146 vdec_vp8_slice_alloc_working_buf(struct vdec_vp8_slice_inst *inst) vdec_vp8_slice_alloc_working_buf() argument
190 vdec_vp8_slice_free_working_buf(struct vdec_vp8_slice_inst *inst) vdec_vp8_slice_free_working_buf() argument
232 vdec_vp8_slice_get_decode_parameters(struct vdec_vp8_slice_inst *inst) vdec_vp8_slice_get_decode_parameters() argument
276 struct vdec_vp8_slice_inst *inst; vdec_vp8_slice_init() local
321 struct vdec_vp8_slice_inst *inst = h_vdec; vdec_vp8_slice_decode() local
399 struct vdec_vp8_slice_inst *inst = h_vdec; vdec_vp8_slice_get_param() local
421 struct vdec_vp8_slice_inst *inst = h_vdec; vdec_vp8_slice_deinit() local
[all...]
H A Dvdec_h264_req_if.c96 static int get_vdec_decode_parameters(struct vdec_h264_slice_inst *inst) in get_vdec_decode_parameters() argument
102 struct mtk_h264_dec_slice_param *slice_param = &inst->h264_slice_param; in get_vdec_decode_parameters()
112 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_DECODE_PARAMS); in get_vdec_decode_parameters()
116 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in get_vdec_decode_parameters()
120 pps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_PPS); in get_vdec_decode_parameters()
125 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SCALING_MATRIX); in get_vdec_decode_parameters()
129 mtk_vdec_h264_update_dpb(dec_params, inst->dpb); in get_vdec_decode_parameters()
135 dec_params, inst->dpb); in get_vdec_decode_parameters()
136 mtk_vdec_h264_fill_dpb_info(inst->ctx, &slice_param->decode_params, in get_vdec_decode_parameters()
141 inst in get_vdec_decode_parameters()
157 allocate_predication_buf(struct vdec_h264_slice_inst *inst) allocate_predication_buf() argument
172 free_predication_buf(struct vdec_h264_slice_inst *inst) free_predication_buf() argument
181 alloc_mv_buf(struct vdec_h264_slice_inst *inst, struct vdec_pic_info *pic) alloc_mv_buf() argument
206 free_mv_buf(struct vdec_h264_slice_inst *inst) free_mv_buf() argument
219 get_pic_info(struct vdec_h264_slice_inst *inst, struct vdec_pic_info *pic) get_pic_info() argument
254 get_crop_info(struct vdec_h264_slice_inst *inst, struct v4l2_rect *cr) get_crop_info() argument
265 get_dpb_size(struct vdec_h264_slice_inst *inst, unsigned int *dpb_sz) get_dpb_size() argument
273 struct vdec_h264_slice_inst *inst; vdec_h264_slice_init() local
320 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_deinit() local
332 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_decode() local
416 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_get_param() local
[all...]
H A Dvdec_vp8_if.c165 static void get_hw_reg_base(struct vdec_vp8_inst *inst) in get_hw_reg_base() argument
167 void __iomem **reg_base = inst->ctx->dev->reg_base; in get_hw_reg_base()
169 inst->reg_base.top = mtk_vcodec_get_reg_addr(reg_base, VDEC_TOP); in get_hw_reg_base()
170 inst->reg_base.cm = mtk_vcodec_get_reg_addr(reg_base, VDEC_CM); in get_hw_reg_base()
171 inst->reg_base.hwd = mtk_vcodec_get_reg_addr(reg_base, VDEC_HWD); in get_hw_reg_base()
172 inst->reg_base.misc = mtk_vcodec_get_reg_addr(reg_base, VDEC_MISC); in get_hw_reg_base()
173 inst->reg_base.ld = mtk_vcodec_get_reg_addr(reg_base, VDEC_LD); in get_hw_reg_base()
174 inst->reg_base.hwb = mtk_vcodec_get_reg_addr(reg_base, VDEC_HWB); in get_hw_reg_base()
177 static void write_hw_segmentation_data(struct vdec_vp8_inst *inst) in write_hw_segmentation_data() argument
182 void __iomem *cm = inst in write_hw_segmentation_data()
198 read_hw_segmentation_data(struct vdec_vp8_inst *inst) read_hw_segmentation_data() argument
220 enable_hw_rw_function(struct vdec_vp8_inst *inst) enable_hw_rw_function() argument
246 store_dec_table(struct vdec_vp8_inst *inst) store_dec_table() argument
263 load_dec_table(struct vdec_vp8_inst *inst) load_dec_table() argument
280 get_pic_info(struct vdec_vp8_inst *inst, struct vdec_pic_info *pic) get_pic_info() argument
290 vp8_dec_finish(struct vdec_vp8_inst *inst) vp8_dec_finish() argument
325 move_fb_list_use_to_free(struct vdec_vp8_inst *inst) move_fb_list_use_to_free() argument
333 init_list(struct vdec_vp8_inst *inst) init_list() argument
350 add_fb_to_free_list(struct vdec_vp8_inst *inst, void *fb) add_fb_to_free_list() argument
362 alloc_working_buf(struct vdec_vp8_inst *inst) alloc_working_buf() argument
378 free_working_buf(struct vdec_vp8_inst *inst) free_working_buf() argument
390 struct vdec_vp8_inst *inst; vdec_vp8_init() local
430 struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; vdec_vp8_decode() local
510 get_disp_fb(struct vdec_vp8_inst *inst, struct vdec_fb **out_fb) get_disp_fb() argument
530 get_free_fb(struct vdec_vp8_inst *inst, struct vdec_fb **out_fb) get_free_fb() argument
550 get_crop_info(struct vdec_vp8_inst *inst, struct v4l2_rect *cr) get_crop_info() argument
563 struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; vdec_vp8_get_param() local
596 struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; vdec_vp8_deinit() local
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/qcom/venus/
H A Dhfi.c164 static int wait_session_msg(struct venus_inst *inst) in wait_session_msg() argument
168 ret = wait_for_completion_timeout(&inst->done, TIMEOUT); in wait_session_msg()
172 if (inst->error != HFI_ERR_NONE) in wait_session_msg()
178 int hfi_session_create(struct venus_inst *inst, const struct hfi_inst_ops *ops) in hfi_session_create() argument
180 struct venus_core *core = inst->core; in hfi_session_create()
187 inst->state = INST_UNINIT; in hfi_session_create()
188 init_completion(&inst->done); in hfi_session_create()
189 inst->ops = ops; in hfi_session_create()
193 if (test_bit(0, &inst->core->sys_error)) { in hfi_session_create()
203 list_add_tail(&inst in hfi_session_create()
214 hfi_session_init(struct venus_inst *inst, u32 pixfmt) hfi_session_init() argument
252 hfi_session_destroy(struct venus_inst *inst) hfi_session_destroy() argument
264 hfi_session_deinit(struct venus_inst *inst) hfi_session_deinit() argument
295 hfi_session_start(struct venus_inst *inst) hfi_session_start() argument
322 hfi_session_stop(struct venus_inst *inst) hfi_session_stop() argument
349 hfi_session_continue(struct venus_inst *inst) hfi_session_continue() argument
363 hfi_session_abort(struct venus_inst *inst) hfi_session_abort() argument
385 hfi_session_load_res(struct venus_inst *inst) hfi_session_load_res() argument
411 hfi_session_unload_res(struct venus_inst *inst) hfi_session_unload_res() argument
438 hfi_session_flush(struct venus_inst *inst, u32 type, bool block) hfi_session_flush() argument
462 hfi_session_set_buffers(struct venus_inst *inst, struct hfi_buffer_desc *bd) hfi_session_set_buffers() argument
472 hfi_session_unset_buffers(struct venus_inst *inst, struct hfi_buffer_desc *bd) hfi_session_unset_buffers() argument
497 hfi_session_get_property(struct venus_inst *inst, u32 ptype, union hfi_get_property *hprop) hfi_session_get_property() argument
525 hfi_session_set_property(struct venus_inst *inst, u32 ptype, void *pdata) hfi_session_set_property() argument
539 hfi_session_process_buf(struct venus_inst *inst, struct hfi_frame_data *fd) hfi_session_process_buf() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/amphion/
H A Dvpu_msgs.c25 void (*done)(struct vpu_inst *inst, struct vpu_rpc_event *pkt);
29 static void vpu_session_handle_start_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_start_done() argument
31 vpu_trace(inst->dev, "[%d]\n", inst->id); in vpu_session_handle_start_done()
34 static void vpu_session_handle_mem_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_mem_request() argument
38 vpu_iface_unpack_msg_data(inst->core, pkt, (void *)&req_data); in vpu_session_handle_mem_request()
39 vpu_trace(inst->dev, "[%d] %d:%d %d:%d %d:%d\n", in vpu_session_handle_mem_request()
40 inst->id, in vpu_session_handle_mem_request()
47 vpu_inst_lock(inst); in vpu_session_handle_mem_request()
48 call_void_vop(inst, mem_reques in vpu_session_handle_mem_request()
58 vpu_session_handle_stop_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_stop_done() argument
65 vpu_session_handle_seq_hdr(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_seq_hdr() argument
77 vpu_session_handle_resolution_change(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_resolution_change() argument
82 vpu_session_handle_enc_frame_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_enc_frame_done() argument
92 vpu_session_handle_frame_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_frame_request() argument
100 vpu_session_handle_frame_release(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_frame_release() argument
118 vpu_session_handle_input_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_input_done() argument
124 vpu_session_handle_pic_decoded(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_pic_decoded() argument
132 vpu_session_handle_pic_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_pic_done() argument
149 vpu_session_handle_eos(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_eos() argument
154 vpu_session_handle_error(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_error() argument
166 vpu_session_handle_firmware_xcpt(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_firmware_xcpt() argument
177 vpu_session_handle_pic_skipped(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_pic_skipped() argument
184 vpu_session_handle_dbg_msg(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_session_handle_dbg_msg() argument
218 vpu_session_handle_msg(struct vpu_inst *inst, struct vpu_rpc_event *msg) vpu_session_handle_msg() argument
251 vpu_inst_receive_msg(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_inst_receive_msg() argument
276 struct vpu_inst *inst = container_of(work, struct vpu_inst, msg_work); vpu_inst_run_work() local
283 vpu_inst_handle_msg(struct vpu_inst *inst, struct vpu_rpc_event *pkt) vpu_inst_handle_msg() argument
302 struct vpu_inst *inst; vpu_handle_msg() local
389 struct vpu_inst *inst = vpu_core_find_instance(core, i); vpu_msg_delayed_work() local
[all...]
H A Dvpu_cmds.c81 static struct vpu_cmd_t *vpu_alloc_cmd(struct vpu_inst *inst, u32 id, void *data) in vpu_alloc_cmd() argument
98 ret = vpu_iface_pack_cmd(inst->core, cmd->pkt, inst->id, id, data); in vpu_alloc_cmd()
100 dev_err(inst->dev, "iface pack cmd %s fail\n", vpu_id_name(id)); in vpu_alloc_cmd()
125 static int vpu_session_process_cmd(struct vpu_inst *inst, struct vpu_cmd_t *cmd) in vpu_session_process_cmd() argument
129 dev_dbg(inst->dev, "[%d]send cmd %s\n", inst->id, vpu_id_name(cmd->id)); in vpu_session_process_cmd()
130 vpu_iface_pre_send_cmd(inst); in vpu_session_process_cmd()
131 ret = vpu_cmd_send(inst->core, cmd->pkt); in vpu_session_process_cmd()
133 vpu_iface_post_send_cmd(inst); in vpu_session_process_cmd()
142 vpu_process_cmd_request(struct vpu_inst *inst) vpu_process_cmd_request() argument
163 vpu_request_cmd(struct vpu_inst *inst, u32 id, void *data, unsigned long *key, int *sync) vpu_request_cmd() argument
191 vpu_clear_pending(struct vpu_inst *inst) vpu_clear_pending() argument
217 vpu_response_cmd(struct vpu_inst *inst, u32 response, u32 handled) vpu_response_cmd() argument
235 vpu_clear_request(struct vpu_inst *inst) vpu_clear_request() argument
251 check_is_responsed(struct vpu_inst *inst, unsigned long key) check_is_responsed() argument
261 sync_session_response(struct vpu_inst *inst, unsigned long key, long timeout, int try) sync_session_response() argument
302 vpu_session_send_cmd(struct vpu_inst *inst, u32 id, void *data) vpu_session_send_cmd() argument
337 vpu_session_configure_codec(struct vpu_inst *inst) vpu_session_configure_codec() argument
342 vpu_session_start(struct vpu_inst *inst) vpu_session_start() argument
349 vpu_session_stop(struct vpu_inst *inst) vpu_session_stop() argument
364 vpu_session_encode_frame(struct vpu_inst *inst, s64 timestamp) vpu_session_encode_frame() argument
369 vpu_session_alloc_fs(struct vpu_inst *inst, struct vpu_fs_info *fs) vpu_session_alloc_fs() argument
374 vpu_session_release_fs(struct vpu_inst *inst, struct vpu_fs_info *fs) vpu_session_release_fs() argument
379 vpu_session_abort(struct vpu_inst *inst) vpu_session_abort() argument
384 vpu_session_rst_buf(struct vpu_inst *inst) vpu_session_rst_buf() argument
389 vpu_session_fill_timestamp(struct vpu_inst *inst, struct vpu_ts_info *info) vpu_session_fill_timestamp() argument
394 vpu_session_update_parameters(struct vpu_inst *inst, void *arg) vpu_session_update_parameters() argument
404 vpu_session_debug(struct vpu_inst *inst) vpu_session_debug() argument
411 struct vpu_inst *inst; vpu_core_snapshot() local
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
H A Dvenc.c63 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format() argument
78 !venus_helper_check_codec(inst, fmt[i].pixfmt)) in find_format()
85 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index() argument
100 venus_helper_check_codec(inst, fmt[i].pixfmt); in find_format_by_index()
151 struct venus_inst *inst = to_inst(file); in venc_enum_fmt() local
154 fmt = find_format_by_index(inst, f->index, f->type); in venc_enum_fmt()
167 venc_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in venc_try_fmt_common() argument
177 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common()
185 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common()
190 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in venc_try_fmt_common()
221 struct venus_inst *inst = to_inst(file); venc_try_fmt() local
230 struct venus_inst *inst = to_inst(file); venc_s_fmt() local
300 struct venus_inst *inst = to_inst(file); venc_g_fmt() local
332 struct venus_inst *inst = to_inst(file); venc_g_selection() local
360 struct venus_inst *inst = to_inst(file); venc_s_selection() local
381 struct venus_inst *inst = to_inst(file); venc_s_parm() local
416 struct venus_inst *inst = to_inst(file); venc_g_parm() local
431 struct venus_inst *inst = to_inst(file); venc_enum_framesizes() local
461 struct venus_inst *inst = to_inst(file); venc_enum_frameintervals() local
532 venc_set_properties(struct venus_inst *inst) venc_set_properties() argument
725 venc_init_session(struct venus_inst *inst) venc_init_session() argument
762 venc_out_num_buffers(struct venus_inst *inst, unsigned int *num) venc_out_num_buffers() argument
784 struct venus_inst *inst = vb2_get_drv_priv(q); venc_queue_setup() local
843 venc_verify_conf(struct venus_inst *inst) venc_verify_conf() argument
873 struct venus_inst *inst = vb2_get_drv_priv(q); venc_start_streaming() local
943 venc_buf_done(struct venus_inst *inst, unsigned int buf_type, u32 tag, u32 bytesused, u32 data_offset, u32 flags, u32 hfi_flags, u64 timestamp_us) venc_buf_done() argument
975 venc_event_notify(struct venus_inst *inst, u32 event, struct hfi_event_data *data) venc_event_notify() argument
999 struct venus_inst *inst = priv; m2m_queue_init() local
1031 venc_inst_init(struct venus_inst *inst) venc_inst_init() argument
1048 struct venus_inst *inst; venc_open() local
1121 struct venus_inst *inst = to_inst(file); venc_close() local
[all...]
/third_party/vk-gl-cts/external/amber/src/src/
H A Dclspv_helper.cc69 const spv_parsed_instruction_t* inst) { in ParseExtendedInst()
70 auto ext_inst = inst->words[inst->operands[3].offset]; in ParseExtendedInst()
74 const auto& name = helper->strings[inst->words[inst->operands[5].offset]]; in ParseExtendedInst()
75 helper->strings[inst->result_id] = name; in ParseExtendedInst()
80 const auto& name = helper->strings[inst->words[inst->operands[4].offset]]; in ParseExtendedInst()
81 helper->strings[inst->result_id] = name; in ParseExtendedInst()
90 auto kernel_id = inst in ParseExtendedInst()
68 ParseExtendedInst(ReflectionHelper* helper, const spv_parsed_instruction_t* inst) ParseExtendedInst() argument
212 ParseReflection(void* user_data, const spv_parsed_instruction_t* inst) ParseReflection() argument
[all...]
/third_party/mesa3d/src/broadcom/qpu/
H A Dqpu_instr.c563 v3d_qpu_waits_on_tmu(const struct v3d_qpu_instr *inst) in v3d_qpu_waits_on_tmu() argument
565 return (inst->sig.ldtmu || in v3d_qpu_waits_on_tmu()
566 (inst->type == V3D_QPU_INSTR_TYPE_ALU && in v3d_qpu_waits_on_tmu()
567 inst->alu.add.op == V3D_QPU_A_TMUWT)); in v3d_qpu_waits_on_tmu()
639 v3d_qpu_uses_tlb(const struct v3d_qpu_instr *inst) in v3d_qpu_uses_tlb() argument
641 if (inst->sig.ldtlb || in v3d_qpu_uses_tlb()
642 inst->sig.ldtlbu) in v3d_qpu_uses_tlb()
645 if (inst->type == V3D_QPU_INSTR_TYPE_ALU) { in v3d_qpu_uses_tlb()
646 if (inst->alu.add.magic_write && in v3d_qpu_uses_tlb()
647 v3d_qpu_magic_waddr_is_tlb(inst in v3d_qpu_uses_tlb()
661 v3d_qpu_uses_sfu(const struct v3d_qpu_instr *inst) v3d_qpu_uses_sfu() argument
682 v3d_qpu_instr_is_sfu(const struct v3d_qpu_instr *inst) v3d_qpu_instr_is_sfu() argument
701 v3d_qpu_writes_tmu(const struct v3d_device_info *devinfo, const struct v3d_qpu_instr *inst) v3d_qpu_writes_tmu() argument
712 v3d_qpu_writes_tmu_not_tmuc(const struct v3d_device_info *devinfo, const struct v3d_qpu_instr *inst) v3d_qpu_writes_tmu_not_tmuc() argument
723 v3d_qpu_reads_vpm(const struct v3d_qpu_instr *inst) v3d_qpu_reads_vpm() argument
737 v3d_qpu_writes_vpm(const struct v3d_qpu_instr *inst) v3d_qpu_writes_vpm() argument
758 v3d_qpu_writes_unifa(const struct v3d_device_info *devinfo, const struct v3d_qpu_instr *inst) v3d_qpu_writes_unifa() argument
782 v3d_qpu_waits_vpm(const struct v3d_qpu_instr *inst) v3d_qpu_waits_vpm() argument
789 v3d_qpu_reads_or_writes_vpm(const struct v3d_qpu_instr *inst) v3d_qpu_reads_or_writes_vpm() argument
795 v3d_qpu_uses_vpm(const struct v3d_qpu_instr *inst) v3d_qpu_uses_vpm() argument
803 qpu_writes_magic_waddr_explicitly(const struct v3d_device_info *devinfo, const struct v3d_qpu_instr *inst, uint32_t waddr) qpu_writes_magic_waddr_explicitly() argument
824 v3d_qpu_writes_r3(const struct v3d_device_info *devinfo, const struct v3d_qpu_instr *inst) v3d_qpu_writes_r3() argument
834 v3d_qpu_writes_r4(const struct v3d_device_info *devinfo, const struct v3d_qpu_instr *inst) v3d_qpu_writes_r4() argument
862 v3d_qpu_writes_r5(const struct v3d_device_info *devinfo, const struct v3d_qpu_instr *inst) v3d_qpu_writes_r5() argument
872 v3d_qpu_writes_accum(const struct v3d_device_info *devinfo, const struct v3d_qpu_instr *inst) v3d_qpu_writes_accum() argument
892 v3d_qpu_uses_mux(const struct v3d_qpu_instr *inst, enum v3d_qpu_mux mux) v3d_qpu_uses_mux() argument
919 v3d_qpu_reads_flags(const struct v3d_qpu_instr *inst) v3d_qpu_reads_flags() argument
949 v3d_qpu_writes_flags(const struct v3d_qpu_instr *inst) v3d_qpu_writes_flags() argument
962 v3d_qpu_unpacks_f32(const struct v3d_qpu_instr *inst) v3d_qpu_unpacks_f32() argument
1003 v3d_qpu_unpacks_f16(const struct v3d_qpu_instr *inst) v3d_qpu_unpacks_f16() argument
1029 v3d_qpu_is_nop(struct v3d_qpu_instr *inst) v3d_qpu_is_nop() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Ddisassemble.h14 static inline unsigned int get_op(u32 inst) in get_op() argument
16 return inst >> 26; in get_op()
19 static inline unsigned int get_xop(u32 inst) in get_xop() argument
21 return (inst >> 1) & 0x3ff; in get_xop()
24 static inline unsigned int get_sprn(u32 inst) in get_sprn() argument
26 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_sprn()
29 static inline unsigned int get_dcrn(u32 inst) in get_dcrn() argument
31 return ((inst >> 16) & 0x1f) | ((inst >> in get_dcrn()
34 get_tmrn(u32 inst) get_tmrn() argument
39 get_rt(u32 inst) get_rt() argument
44 get_rs(u32 inst) get_rs() argument
49 get_ra(u32 inst) get_ra() argument
54 get_rb(u32 inst) get_rb() argument
59 get_rc(u32 inst) get_rc() argument
64 get_ws(u32 inst) get_ws() argument
69 get_d(u32 inst) get_d() argument
74 get_oc(u32 inst) get_oc() argument
79 get_tx_or_sx(u32 inst) get_tx_or_sx() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Ddisassemble.h14 static inline unsigned int get_op(u32 inst) in get_op() argument
16 return inst >> 26; in get_op()
19 static inline unsigned int get_xop(u32 inst) in get_xop() argument
21 return (inst >> 1) & 0x3ff; in get_xop()
24 static inline unsigned int get_sprn(u32 inst) in get_sprn() argument
26 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_sprn()
29 static inline unsigned int get_dcrn(u32 inst) in get_dcrn() argument
31 return ((inst >> 16) & 0x1f) | ((inst >> in get_dcrn()
34 get_tmrn(u32 inst) get_tmrn() argument
39 get_rt(u32 inst) get_rt() argument
44 get_rs(u32 inst) get_rs() argument
49 get_ra(u32 inst) get_ra() argument
54 get_rb(u32 inst) get_rb() argument
59 get_rc(u32 inst) get_rc() argument
64 get_ws(u32 inst) get_ws() argument
69 get_d(u32 inst) get_d() argument
74 get_oc(u32 inst) get_oc() argument
79 get_tx_or_sx(u32 inst) get_tx_or_sx() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/vdec/
H A Dvdec_h264_if.c140 static int allocate_predication_buf(struct vdec_h264_inst *inst) in allocate_predication_buf() argument
144 inst->pred_buf.size = BUF_PREDICTION_SZ; in allocate_predication_buf()
145 err = mtk_vcodec_mem_alloc(inst->ctx, &inst->pred_buf); in allocate_predication_buf()
147 mtk_vcodec_err(inst, "failed to allocate ppl buf"); in allocate_predication_buf()
151 inst->vsi->pred_buf_dma = inst->pred_buf.dma_addr; in allocate_predication_buf()
155 static void free_predication_buf(struct vdec_h264_inst *inst) in free_predication_buf() argument
159 mtk_vcodec_debug_enter(inst); in free_predication_buf()
161 inst in free_predication_buf()
167 alloc_mv_buf(struct vdec_h264_inst *inst, struct vdec_pic_info *pic) alloc_mv_buf() argument
190 free_mv_buf(struct vdec_h264_inst *inst) free_mv_buf() argument
203 check_list_validity(struct vdec_h264_inst *inst, bool disp_list) check_list_validity() argument
221 put_fb_to_free(struct vdec_h264_inst *inst, struct vdec_fb *fb) put_fb_to_free() argument
245 get_pic_info(struct vdec_h264_inst *inst, struct vdec_pic_info *pic) get_pic_info() argument
255 get_crop_info(struct vdec_h264_inst *inst, struct v4l2_rect *cr) get_crop_info() argument
266 get_dpb_size(struct vdec_h264_inst *inst, unsigned int *dpb_sz) get_dpb_size() argument
274 struct vdec_h264_inst *inst = NULL; vdec_h264_init() local
312 struct vdec_h264_inst *inst = (struct vdec_h264_inst *)h_vdec; vdec_h264_deinit() local
338 struct vdec_h264_inst *inst = (struct vdec_h264_inst *)h_vdec; vdec_h264_decode() local
433 vdec_h264_get_fb(struct vdec_h264_inst *inst, struct h264_ring_fb_list *list, bool disp_list, struct vdec_fb **out_fb) vdec_h264_get_fb() argument
467 struct vdec_h264_inst *inst = (struct vdec_h264_inst *)h_vdec; vdec_h264_get_param() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/val/
H A Dvalidate_image.cpp98 const Instruction* inst = _.FindDef(id); in GetImageTypeInfo() local
99 assert(inst); in GetImageTypeInfo()
101 if (inst->opcode() == SpvOpTypeSampledImage) { in GetImageTypeInfo()
102 inst = _.FindDef(inst->word(2)); in GetImageTypeInfo()
103 assert(inst); in GetImageTypeInfo()
106 if (inst->opcode() != SpvOpTypeImage) return false; in GetImageTypeInfo()
108 const size_t num_words = inst->words().size(); in GetImageTypeInfo()
111 info->sampled_type = inst->word(2); in GetImageTypeInfo()
112 info->dim = static_cast<SpvDim>(inst in GetImageTypeInfo()
242 ValidateImageOperands(ValidationState_t& _, const Instruction* inst, const ImageTypeInfo& info, uint32_t word_index) ValidateImageOperands() argument
637 ValidateImageCommon(ValidationState_t& _, const Instruction* inst, const ImageTypeInfo& info) ValidateImageCommon() argument
728 GetActualResultType(ValidationState_t& _, const Instruction* inst, uint32_t* actual_result_type) GetActualResultType() argument
763 ValidateTypeImage(ValidationState_t& _, const Instruction* inst) ValidateTypeImage() argument
896 ValidateTypeSampledImage(ValidationState_t& _, const Instruction* inst) ValidateTypeSampledImage() argument
949 ValidateSampledImage(ValidationState_t& _, const Instruction* inst) ValidateSampledImage() argument
1044 ValidateImageTexelPointer(ValidationState_t& _, const Instruction* inst) ValidateImageTexelPointer() argument
1162 ValidateImageLod(ValidationState_t& _, const Instruction* inst) ValidateImageLod() argument
1257 ValidateImageDrefLod(ValidationState_t& _, const Instruction* inst) ValidateImageDrefLod() argument
1327 ValidateImageFetch(ValidationState_t& _, const Instruction* inst) ValidateImageFetch() argument
1399 ValidateImageGather(ValidationState_t& _, const Instruction* inst) ValidateImageGather() argument
1503 ValidateImageRead(ValidationState_t& _, const Instruction* inst) ValidateImageRead() argument
1628 ValidateImageWrite(ValidationState_t& _, const Instruction* inst) ValidateImageWrite() argument
1713 ValidateImage(ValidationState_t& _, const Instruction* inst) ValidateImage() argument
1737 ValidateImageQuerySizeLod(ValidationState_t& _, const Instruction* inst) ValidateImageQuerySizeLod() argument
1803 ValidateImageQuerySize(ValidationState_t& _, const Instruction* inst) ValidateImageQuerySize() argument
1860 ValidateImageQueryFormatOrOrder(ValidationState_t& _, const Instruction* inst) ValidateImageQueryFormatOrOrder() argument
1874 ValidateImageQueryLod(ValidationState_t& _, const Instruction* inst) ValidateImageQueryLod() argument
1972 ValidateImageSparseLod(ValidationState_t& _, const Instruction* inst) ValidateImageSparseLod() argument
1979 ValidateImageQueryLevelsOrSamples(ValidationState_t& _, const Instruction* inst) ValidateImageQueryLevelsOrSamples() argument
2027 ValidateImageSparseTexelsResident(ValidationState_t& _, const Instruction* inst) ValidateImageSparseTexelsResident() argument
2046 ImagePass(ValidationState_t& _, const Instruction* inst) ImagePass() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
H A Dvalidate_image.cpp98 const Instruction* inst = _.FindDef(id); in GetImageTypeInfo() local
99 assert(inst); in GetImageTypeInfo()
101 if (inst->opcode() == SpvOpTypeSampledImage) { in GetImageTypeInfo()
102 inst = _.FindDef(inst->word(2)); in GetImageTypeInfo()
103 assert(inst); in GetImageTypeInfo()
106 if (inst->opcode() != SpvOpTypeImage) return false; in GetImageTypeInfo()
108 const size_t num_words = inst->words().size(); in GetImageTypeInfo()
111 info->sampled_type = inst->word(2); in GetImageTypeInfo()
112 info->dim = static_cast<SpvDim>(inst in GetImageTypeInfo()
242 ValidateImageOperands(ValidationState_t& _, const Instruction* inst, const ImageTypeInfo& info, uint32_t word_index) ValidateImageOperands() argument
637 ValidateImageCommon(ValidationState_t& _, const Instruction* inst, const ImageTypeInfo& info) ValidateImageCommon() argument
728 GetActualResultType(ValidationState_t& _, const Instruction* inst, uint32_t* actual_result_type) GetActualResultType() argument
763 ValidateTypeImage(ValidationState_t& _, const Instruction* inst) ValidateTypeImage() argument
896 ValidateTypeSampledImage(ValidationState_t& _, const Instruction* inst) ValidateTypeSampledImage() argument
949 ValidateSampledImage(ValidationState_t& _, const Instruction* inst) ValidateSampledImage() argument
1044 ValidateImageTexelPointer(ValidationState_t& _, const Instruction* inst) ValidateImageTexelPointer() argument
1162 ValidateImageLod(ValidationState_t& _, const Instruction* inst) ValidateImageLod() argument
1257 ValidateImageDrefLod(ValidationState_t& _, const Instruction* inst) ValidateImageDrefLod() argument
1327 ValidateImageFetch(ValidationState_t& _, const Instruction* inst) ValidateImageFetch() argument
1399 ValidateImageGather(ValidationState_t& _, const Instruction* inst) ValidateImageGather() argument
1503 ValidateImageRead(ValidationState_t& _, const Instruction* inst) ValidateImageRead() argument
1628 ValidateImageWrite(ValidationState_t& _, const Instruction* inst) ValidateImageWrite() argument
1713 ValidateImage(ValidationState_t& _, const Instruction* inst) ValidateImage() argument
1737 ValidateImageQuerySizeLod(ValidationState_t& _, const Instruction* inst) ValidateImageQuerySizeLod() argument
1803 ValidateImageQuerySize(ValidationState_t& _, const Instruction* inst) ValidateImageQuerySize() argument
1860 ValidateImageQueryFormatOrOrder(ValidationState_t& _, const Instruction* inst) ValidateImageQueryFormatOrOrder() argument
1874 ValidateImageQueryLod(ValidationState_t& _, const Instruction* inst) ValidateImageQueryLod() argument
1972 ValidateImageSparseLod(ValidationState_t& _, const Instruction* inst) ValidateImageSparseLod() argument
1979 ValidateImageQueryLevelsOrSamples(ValidationState_t& _, const Instruction* inst) ValidateImageQueryLevelsOrSamples() argument
2027 ValidateImageSparseTexelsResident(ValidationState_t& _, const Instruction* inst) ValidateImageSparseTexelsResident() argument
2046 ImagePass(ValidationState_t& _, const Instruction* inst) ImagePass() argument
[all...]
/third_party/spirv-tools/source/val/
H A Dvalidate_extensions.cpp39 const Instruction* inst) { in ReflectionInstructionName()
42 inst->word(4), &desc) != SPV_SUCCESS || in ReflectionInstructionName()
75 auto inst = _.FindDef(id); in IsUint32Constant() local
76 if (!inst || inst->opcode() != spv::Op::OpConstant) { in IsUint32Constant()
80 return IsIntScalar(_, inst->type_id(), true, true); in IsUint32Constant()
84 auto inst = _.FindDef(id); in GetUint32Constant() local
85 return inst->word(3); in GetUint32Constant()
88 // Check that the operand of a debug info instruction |inst| at |word_index|
92 spv::Op expected_opcode, const Instruction* inst, uint32_ in ValidateOperandForDebugInfo()
38 ReflectionInstructionName(ValidationState_t& _, const Instruction* inst) ReflectionInstructionName() argument
90 ValidateOperandForDebugInfo( ValidationState_t& _, const std::string& operand_name, spv::Op expected_opcode, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandForDebugInfo() argument
115 ValidateUint32ConstantOperandForDebugInfo( ValidationState_t& _, const std::string& operand_name, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateUint32ConstantOperandForDebugInfo() argument
144 DoesDebugInfoOperandMatchExpectation( const ValidationState_t& _, const std::function<bool(CommonDebugInfoInstructions)>& expectation, const Instruction* inst, uint32_t word_index) DoesDebugInfoOperandMatchExpectation() argument
161 DoesDebugInfoOperandMatchExpectation( const ValidationState_t& _, const std::function<bool(NonSemanticShaderDebugInfo100Instructions)>& expectation, const Instruction* inst, uint32_t word_index) DoesDebugInfoOperandMatchExpectation() argument
181 ValidateDebugInfoOperand( ValidationState_t& _, const std::string& debug_inst_name, CommonDebugInfoInstructions expected_debug_inst, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateDebugInfoOperand() argument
215 ValidateOperandBaseType( ValidationState_t& _, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandBaseType() argument
226 ValidateOperandLexicalScope( ValidationState_t& _, const std::string& debug_inst_name, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandLexicalScope() argument
249 ValidateOperandDebugType( ValidationState_t& _, const std::string& debug_inst_name, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name, bool allow_template_param) ValidateOperandDebugType() argument
285 ValidateClspvReflectionKernel(ValidationState_t& _, const Instruction* inst, uint32_t version) ValidateClspvReflectionKernel() argument
372 ValidateClspvReflectionArgumentInfo(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentInfo() argument
409 ValidateKernelDecl(ValidationState_t& _, const Instruction* inst) ValidateKernelDecl() argument
432 ValidateArgInfo(ValidationState_t& _, const Instruction* inst, uint32_t info_index) ValidateArgInfo() argument
454 ValidateClspvReflectionArgumentBuffer(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentBuffer() argument
485 ValidateClspvReflectionArgumentOffsetBuffer( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentOffsetBuffer() argument
526 ValidateClspvReflectionArgumentPushConstant( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentPushConstant() argument
557 ValidateClspvReflectionArgumentWorkgroup(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentWorkgroup() argument
588 ValidateClspvReflectionSpecConstantTriple( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantTriple() argument
608 ValidateClspvReflectionSpecConstantWorkDim( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantWorkDim() argument
618 ValidateClspvReflectionPushConstant(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPushConstant() argument
633 ValidateClspvReflectionInitializedData(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionInitializedData() argument
652 ValidateClspvReflectionSampler(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSampler() argument
672 ValidateClspvReflectionPropertyRequiredWorkgroupSize( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPropertyRequiredWorkgroupSize() argument
696 ValidateClspvReflectionSubgroupMaxSize(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSubgroupMaxSize() argument
707 ValidateClspvReflectionPointerRelocation(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPointerRelocation() argument
727 ValidateClspvReflectionImageMetadataPushConstant( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionImageMetadataPushConstant() argument
751 ValidateClspvReflectionImageMetadataUniform( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionImageMetadataUniform() argument
785 ValidateClspvReflectionPushConstantData(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPushConstantData() argument
804 ValidateClspvReflectionPrintfInfo(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPrintfInfo() argument
826 ValidateClspvReflectionPrintfStorageBuffer( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPrintfStorageBuffer() argument
846 ValidateClspvReflectionPrintfPushConstant( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPrintfPushConstant() argument
866 ValidateClspvReflectionInstruction(ValidationState_t& _, const Instruction* inst, uint32_t version) ValidateClspvReflectionInstruction() argument
1013 IsConstWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsConstWithIntScalarType() argument
1023 IsDebugVariableWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsDebugVariableWithIntScalarType() argument
1054 ValidateExtension(ValidationState_t& _, const Instruction* inst) ValidateExtension() argument
1069 ValidateExtInstImport(ValidationState_t& _, const Instruction* inst) ValidateExtInstImport() argument
1085 ValidateExtInst(ValidationState_t& _, const Instruction* inst) ValidateExtInst() argument
3705 ExtensionPass(ValidationState_t& _, const Instruction* inst) ExtensionPass() argument
[all...]
H A Dvalidate_type.cpp47 spv_result_t ValidateUniqueness(ValidationState_t& _, const Instruction* inst) { in ValidateUniqueness() argument
51 const auto opcode = inst->opcode(); in ValidateUniqueness()
54 !_.RegisterUniqueTypeDeclaration(inst)) { in ValidateUniqueness()
55 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateUniqueness()
58 << spvOpcodeString(opcode) << " id: " << inst->id(); in ValidateUniqueness()
64 spv_result_t ValidateTypeInt(ValidationState_t& _, const Instruction* inst) { in ValidateTypeInt() argument
69 auto num_bits = inst->GetOperandAs<const uint32_t>(1); in ValidateTypeInt()
75 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateTypeInt()
82 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateTypeInt()
89 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateTypeInt()
119 ValidateTypeFloat(ValidationState_t& _, const Instruction* inst) ValidateTypeFloat() argument
149 ValidateTypeVector(ValidationState_t& _, const Instruction* inst) ValidateTypeVector() argument
182 ValidateTypeMatrix(ValidationState_t& _, const Instruction* inst) ValidateTypeMatrix() argument
212 ValidateTypeArray(ValidationState_t& _, const Instruction* inst) ValidateTypeArray() argument
281 ValidateTypeRuntimeArray(ValidationState_t& _, const Instruction* inst) ValidateTypeRuntimeArray() argument
309 ValidateTypeStruct(ValidationState_t& _, const Instruction* inst) ValidateTypeStruct() argument
433 ValidateTypePointer(ValidationState_t& _, const Instruction* inst) ValidateTypePointer() argument
468 ValidateTypeFunction(ValidationState_t& _, const Instruction* inst) ValidateTypeFunction() argument
520 ValidateTypeForwardPointer(ValidationState_t& _, const Instruction* inst) ValidateTypeForwardPointer() argument
555 ValidateTypeCooperativeMatrix(ValidationState_t& _, const Instruction* inst) ValidateTypeCooperativeMatrix() argument
615 TypePass(ValidationState_t& _, const Instruction* inst) TypePass() argument
[all...]

Completed in 17 milliseconds

12345678910>>...128