/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_fs_lower_regioning.cpp | 39 is_byte_raw_mov(const fs_inst *inst) in is_byte_raw_mov() argument 41 return type_sz(inst->dst.type) == 1 && in is_byte_raw_mov() 42 inst->opcode == BRW_OPCODE_MOV && in is_byte_raw_mov() 43 inst->src[0].type == inst->dst.type && in is_byte_raw_mov() 44 !inst->saturate && in is_byte_raw_mov() 45 !inst->src[0].negate && in is_byte_raw_mov() 46 !inst->src[0].abs; in is_byte_raw_mov() 54 required_dst_byte_stride(const fs_inst *inst) in required_dst_byte_stride() argument 56 if (inst in required_dst_byte_stride() 110 required_dst_byte_offset(const fs_inst *inst) required_dst_byte_offset() argument 127 required_exec_type(const intel_device_info *devinfo, const fs_inst *inst) required_exec_type() argument 207 has_invalid_src_region(const intel_device_info *devinfo, const fs_inst *inst, unsigned i) has_invalid_src_region() argument 248 has_invalid_dst_region(const intel_device_info *devinfo, const fs_inst *inst) has_invalid_dst_region() argument 371 lower_src_modifiers(fs_visitor *v, bblock_t *block, fs_inst *inst, unsigned i) lower_src_modifiers() argument 399 lower_dst_modifiers(fs_visitor *v, bblock_t *block, fs_inst *inst) lower_dst_modifiers() argument 448 lower_src_region(fs_visitor *v, bblock_t *block, fs_inst *inst, unsigned i) lower_src_region() argument 490 lower_dst_region(fs_visitor *v, bblock_t *block, fs_inst *inst) lower_dst_region() argument 548 lower_exec_type(fs_visitor *v, bblock_t *block, fs_inst *inst) lower_exec_type() argument 595 lower_instruction(fs_visitor *v, bblock_t *block, fs_inst *inst) lower_instruction() argument [all...] |
H A D | brw_lower_logical_sends.cpp | 34 lower_urb_read_logical_send(const fs_builder &bld, fs_inst *inst) in lower_urb_read_logical_send() argument 38 inst->src[URB_LOGICAL_SRC_PER_SLOT_OFFSETS].file != BAD_FILE; in lower_urb_read_logical_send() 40 assert(inst->size_written % REG_SIZE == 0); in lower_urb_read_logical_send() 41 assert(inst->header_size == 0); in lower_urb_read_logical_send() 43 fs_reg *payload_sources = new fs_reg[inst->mlen]; in lower_urb_read_logical_send() 44 fs_reg payload = fs_reg(VGRF, bld.shader->alloc.allocate(inst->mlen), in lower_urb_read_logical_send() 48 payload_sources[header_size++] = inst->src[URB_LOGICAL_SRC_HANDLE]; in lower_urb_read_logical_send() 50 payload_sources[header_size++] = inst->src[URB_LOGICAL_SRC_PER_SLOT_OFFSETS]; in lower_urb_read_logical_send() 52 bld.LOAD_PAYLOAD(payload, payload_sources, inst->mlen, header_size); in lower_urb_read_logical_send() 56 inst in lower_urb_read_logical_send() 79 lower_urb_write_logical_send(const fs_builder &bld, fs_inst *inst) lower_urb_write_logical_send() argument 151 lower_fb_write_logical_send(const fs_builder &bld, fs_inst *inst, const struct brw_wm_prog_data *prog_data, const brw_wm_prog_key *key, const fs_visitor::thread_payload &payload) lower_fb_write_logical_send() argument 413 lower_fb_read_logical_send(const fs_builder &bld, fs_inst *inst) lower_fb_read_logical_send() argument 467 lower_sampler_logical_send_gfx4(const fs_builder &bld, fs_inst *inst, opcode op, const fs_reg &coordinate, const fs_reg &shadow_c, const fs_reg &lod, const fs_reg &lod2, const fs_reg &surface, const fs_reg &sampler, unsigned coord_components, unsigned grad_components) lower_sampler_logical_send_gfx4() argument 574 lower_sampler_logical_send_gfx5(const fs_builder &bld, fs_inst *inst, opcode op, const fs_reg &coordinate, const fs_reg &shadow_c, const fs_reg &lod, const fs_reg &lod2, const fs_reg &sample_index, const fs_reg &surface, const fs_reg &sampler, unsigned coord_components, unsigned grad_components) lower_sampler_logical_send_gfx5() argument 776 fs_inst *inst = bld.LOAD_PAYLOAD(dst, src_comps, length, header_size); emit_load_payload_with_padding() local 783 lower_sampler_logical_send_gfx7(const fs_builder &bld, fs_inst *inst, opcode op, const fs_reg &coordinate, const fs_reg &shadow_c, fs_reg lod, const fs_reg &lod2, const fs_reg &min_lod, const fs_reg &sample_index, const fs_reg &mcs, const fs_reg &surface, const fs_reg &sampler, const fs_reg &surface_handle, const fs_reg &sampler_handle, const fs_reg &tg4_offset, unsigned payload_type_bit_size, unsigned coord_components, unsigned grad_components) lower_sampler_logical_send_gfx7() argument 1243 lower_sampler_logical_send(const fs_builder &bld, fs_inst *inst, opcode op) lower_sampler_logical_send() argument 1295 emit_predicate_on_vector_mask(const fs_builder &bld, fs_inst *inst) emit_predicate_on_vector_mask() argument 1326 setup_surface_descriptors(const fs_builder &bld, fs_inst *inst, uint32_t desc, const fs_reg &surface, const fs_reg &surface_handle) setup_surface_descriptors() argument 1359 lower_surface_logical_send(const fs_builder &bld, fs_inst *inst) lower_surface_logical_send() argument 1672 lower_lsc_surface_logical_send(const fs_builder &bld, fs_inst *inst) lower_lsc_surface_logical_send() argument 1833 lower_surface_block_logical_send(const fs_builder &bld, fs_inst *inst) lower_surface_block_logical_send() argument 1929 emit_fragment_mask(const fs_builder &bld, fs_inst *inst) emit_fragment_mask() argument 1949 lower_lsc_a64_logical_send(const fs_builder &bld, fs_inst *inst) lower_lsc_a64_logical_send() argument 2059 lower_a64_logical_send(const fs_builder &bld, fs_inst *inst) lower_a64_logical_send() argument 2215 lower_lsc_varying_pull_constant_logical_send(const fs_builder &bld, fs_inst *inst) lower_lsc_varying_pull_constant_logical_send() argument 2294 lower_varying_pull_constant_logical_send(const fs_builder &bld, fs_inst *inst) lower_varying_pull_constant_logical_send() argument 2386 lower_math_logical_send(const fs_builder &bld, fs_inst *inst) lower_math_logical_send() argument 2416 lower_btd_logical_send(const fs_builder &bld, fs_inst *inst) lower_btd_logical_send() argument 2486 lower_trace_ray_logical_send(const fs_builder &bld, fs_inst *inst) lower_trace_ray_logical_send() argument [all...] |
H A D | brw_fs_cmod_propagation.cpp | 55 fs_inst *inst) in cmod_propagate_cmp_to_add() 58 const unsigned flags_written = inst->flags_written(devinfo); in cmod_propagate_cmp_to_add() 60 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { in cmod_propagate_cmp_to_add() 63 scan_inst->exec_size == inst->exec_size) { in cmod_propagate_cmp_to_add() 71 if ((inst->src[0].equals(scan_inst->src[0]) && in cmod_propagate_cmp_to_add() 72 inst->src[1].negative_equals(scan_inst->src[1])) || in cmod_propagate_cmp_to_add() 73 (inst->src[0].equals(scan_inst->src[1]) && in cmod_propagate_cmp_to_add() 74 inst->src[1].negative_equals(scan_inst->src[0]))) { in cmod_propagate_cmp_to_add() 76 } else if ((inst->src[0].negative_equals(scan_inst->src[0]) && in cmod_propagate_cmp_to_add() 77 inst in cmod_propagate_cmp_to_add() 54 cmod_propagate_cmp_to_add(const intel_device_info *devinfo, bblock_t *block, fs_inst *inst) cmod_propagate_cmp_to_add() argument 170 cmod_propagate_not(const intel_device_info *devinfo, bblock_t *block, fs_inst *inst) cmod_propagate_not() argument [all...] |
H A D | brw_vec4.cpp | 409 foreach_inst_in_block_safe(vec4_instruction, inst, block) { in opt_vector_float() 418 if (inst->opcode == BRW_OPCODE_MOV && in opt_vector_float() 419 inst->src[0].file == IMM && in opt_vector_float() 420 inst->predicate == BRW_PREDICATE_NONE && in opt_vector_float() 421 inst->dst.writemask != WRITEMASK_XYZW && in opt_vector_float() 422 type_sz(inst->src[0].type) < 8 && in opt_vector_float() 423 (inst->src[0].type == inst->dst.type || inst->src[0].d == 0)) { in opt_vector_float() 425 vf = brw_float_to_vf(inst in opt_vector_float() 723 is_dep_ctrl_unsafe(const vec4_instruction *inst) is_dep_ctrl_unsafe() argument 1314 const vec4_instruction *inst = (const vec4_instruction *)be_inst; dump_instruction() local 1673 is_align1_df(vec4_instruction *inst) is_align1_df() argument 1866 get_lowered_simd_width(const struct intel_device_info *devinfo, enum shader_dispatch_mode dispatch_mode, unsigned stage, const vec4_instruction *inst) get_lowered_simd_width() argument 1928 dst_src_regions_overlap(vec4_instruction *inst) dst_src_regions_overlap() argument 2077 is_gfx7_supported_64bit_swizzle(vec4_instruction *inst, unsigned arg) is_gfx7_supported_64bit_swizzle() argument 2107 is_supported_64bit_region(vec4_instruction *inst, unsigned arg) is_supported_64bit_region() argument 2266 apply_logical_swizzle(struct brw_reg *hw_reg, vec4_instruction *inst, int arg) apply_logical_swizzle() argument [all...] |
H A D | brw_vec4_copy_propagation.cpp | 44 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 D | brw_schedule_instructions.cpp | 66 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...] |
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_opt_algebraic.c | 41 dump_from(struct vc4_compile *c, struct qinst *inst) in dump_from() argument 47 qir_dump_inst(c, inst); in dump_from() 52 dump_to(struct vc4_compile *c, struct qinst *inst) in dump_to() argument 58 qir_dump_inst(c, inst); in dump_to() 94 replace_with_mov(struct vc4_compile *c, struct qinst *inst, struct qreg arg) in replace_with_mov() argument 96 dump_from(c, inst); in replace_with_mov() 98 inst->src[0] = arg; in replace_with_mov() 99 if (qir_has_implicit_tex_uniform(inst)) in replace_with_mov() 100 inst->src[1] = inst in replace_with_mov() 112 replace_x_0_with_x(struct vc4_compile *c, struct qinst *inst, int arg) replace_x_0_with_x() argument 123 replace_x_0_with_0(struct vc4_compile *c, struct qinst *inst, int arg) replace_x_0_with_0() argument 134 fmul_replace_one(struct vc4_compile *c, struct qinst *inst, int arg) fmul_replace_one() argument [all...] |
H A D | vc4_qpu.c | 33 set_src_raddr(uint64_t inst, struct qpu_reg src) in set_src_raddr() argument 36 assert(QPU_GET_FIELD(inst, QPU_RADDR_A) == QPU_R_NOP || in set_src_raddr() 37 QPU_GET_FIELD(inst, QPU_RADDR_A) == src.addr); in set_src_raddr() 38 return QPU_UPDATE_FIELD(inst, src.addr, QPU_RADDR_A); in set_src_raddr() 42 assert((QPU_GET_FIELD(inst, QPU_RADDR_B) == QPU_R_NOP || in set_src_raddr() 43 QPU_GET_FIELD(inst, QPU_RADDR_B) == src.addr) && in set_src_raddr() 44 QPU_GET_FIELD(inst, QPU_SIG) != QPU_SIG_SMALL_IMM); in set_src_raddr() 45 return QPU_UPDATE_FIELD(inst, src.addr, QPU_RADDR_B); in set_src_raddr() 49 if (QPU_GET_FIELD(inst, QPU_SIG) == QPU_SIG_SMALL_IMM) { in set_src_raddr() 50 assert(QPU_GET_FIELD(inst, QPU_RADDR_ in set_src_raddr() 65 uint64_t inst = 0; qpu_NOP() local 83 uint64_t inst = 0; qpu_a_dst() local 100 uint64_t inst = 0; qpu_m_dst() local 117 uint64_t inst = 0; qpu_a_MOV() local 136 uint64_t inst = 0; qpu_m_MOV() local 155 uint64_t inst = 0; qpu_load_imm_ui() local 184 uint64_t inst = 0; qpu_branch() local 199 uint64_t inst = 0; qpu_a_alu2() local 220 uint64_t inst = 0; qpu_m_alu2() local 240 uint64_t inst = 0; qpu_m_rot() local 268 qpu_num_sf_accesses(uint64_t inst) qpu_num_sf_accesses() argument 405 convert_mov(uint64_t *inst) convert_mov() argument 445 writes_a_file(uint64_t inst) writes_a_file() argument 454 reads_r4(uint64_t inst) reads_r4() argument 636 qpu_set_sig(uint64_t inst, uint32_t sig) qpu_set_sig() argument 643 qpu_set_cond_add(uint64_t inst, uint32_t cond) qpu_set_cond_add() argument 650 qpu_set_cond_mul(uint64_t inst, uint32_t cond) qpu_set_cond_mul() argument 670 qpu_inst_is_tlb(uint64_t inst) qpu_inst_is_tlb() argument 731 qpu_serialize_one_inst(struct vc4_compile *c, uint64_t inst) qpu_serialize_one_inst() argument [all...] |
H A D | vc4_qpu_validate.c | 30 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...] |
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | r500_fragprog.c | 66 struct rc_instruction * inst; in r500_transform_IF() local 86 for (inst = writer->Inst; inst != inst_if; inst = inst->Next) { in r500_transform_IF() 88 rc_get_opcode_info(inst->U.I.Opcode); in r500_transform_IF() 373 uint32_t inst; in r500FragmentProgramDump() local 379 inst0 = inst = code->inst[n].inst0; in r500FragmentProgramDump() 380 fprintf(stderr,"%d\t0:CMN_INST 0x%08x:", n, inst); in r500FragmentProgramDump() [all...] |
H A D | radeon_pair_translate.c | 40 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 D | radeon_program_alu.c | 198 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 D | r500_fragprog_emit.c | 161 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...] |
/third_party/spirv-tools/source/val/ |
H A D | validate_non_uniform.cpp | 30 const Instruction* inst) { in ValidateGroupNonUniformElect() 31 if (!_.IsBoolScalarType(inst->type_id())) { in ValidateGroupNonUniformElect() 32 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateGroupNonUniformElect() 40 const Instruction* inst) { in ValidateGroupNonUniformAnyAll() 41 if (!_.IsBoolScalarType(inst->type_id())) { in ValidateGroupNonUniformAnyAll() 42 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateGroupNonUniformAnyAll() 46 if (!_.IsBoolScalarType(_.GetOperandTypeId(inst, 3))) { in ValidateGroupNonUniformAnyAll() 47 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateGroupNonUniformAnyAll() 55 const Instruction* inst) { in ValidateGroupNonUniformAllEqual() 56 if (!_.IsBoolScalarType(inst in ValidateGroupNonUniformAllEqual() 29 ValidateGroupNonUniformElect(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformElect() argument 39 ValidateGroupNonUniformAnyAll(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformAnyAll() argument 54 ValidateGroupNonUniformAllEqual(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformAllEqual() argument 73 ValidateGroupNonUniformBroadcastShuffle(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBroadcastShuffle() argument 141 ValidateGroupNonUniformBroadcastFirst(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBroadcastFirst() argument 161 ValidateGroupNonUniformBallot(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBallot() argument 182 ValidateGroupNonUniformInverseBallot(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformInverseBallot() argument 203 ValidateGroupNonUniformBallotBitExtract(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBallotBitExtract() argument 230 ValidateGroupNonUniformBallotBitCount(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBallotBitCount() argument 264 ValidateGroupNonUniformBallotFind(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBallotFind() argument 285 ValidateGroupNonUniformArithmetic(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformArithmetic() argument 365 ValidateGroupNonUniformRotateKHR(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformRotateKHR() argument 421 NonUniformPass(ValidationState_t& _, const Instruction* inst) NonUniformPass() argument [all...] |
H A D | validate_extensions.cpp | 39 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...] |
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | validate_extensions.cpp | 65 auto inst = _.FindDef(id); in IsUint32Constant() local 66 if (!inst || inst->opcode() != SpvOpConstant) { in IsUint32Constant() 70 return IsIntScalar(_, inst->type_id(), true, true); in IsUint32Constant() 74 auto inst = _.FindDef(id); in GetUint32Constant() local 75 return inst->word(3); in GetUint32Constant() 78 // Check that the operand of a debug info instruction |inst| at |word_index| 82 SpvOp expected_opcode, const Instruction* inst, uint32_t word_index, in ValidateOperandForDebugInfo() 84 auto* operand = _.FindDef(inst->word(word_index)); in ValidateOperandForDebugInfo() 89 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateOperandForDebugInfo() 80 ValidateOperandForDebugInfo( ValidationState_t& _, const std::string& operand_name, SpvOp expected_opcode, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandForDebugInfo() argument 105 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 134 DoesDebugInfoOperandMatchExpectation( const ValidationState_t& _, const std::function<bool(CommonDebugInfoInstructions)>& expectation, const Instruction* inst, uint32_t word_index) DoesDebugInfoOperandMatchExpectation() argument 153 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 187 ValidateOperandBaseType( ValidationState_t& _, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandBaseType() argument 198 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 221 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 245 ValidateClspvReflectionKernel(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionKernel() argument 300 ValidateClspvReflectionArgumentInfo(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentInfo() argument 337 ValidateKernelDecl(ValidationState_t& _, const Instruction* inst) ValidateKernelDecl() argument 360 ValidateArgInfo(ValidationState_t& _, const Instruction* inst, uint32_t info_index) ValidateArgInfo() argument 382 ValidateClspvReflectionArgumentBuffer(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentBuffer() argument 413 ValidateClspvReflectionArgumentPodBuffer(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentPodBuffer() argument 454 ValidateClspvReflectionArgumentPodPushConstant( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentPodPushConstant() argument 485 ValidateClspvReflectionArgumentWorkgroup(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentWorkgroup() argument 516 ValidateClspvReflectionSpecConstantTriple( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantTriple() argument 536 ValidateClspvReflectionSpecConstantWorkDim( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantWorkDim() argument 546 ValidateClspvReflectionPushConstant(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPushConstant() argument 561 ValidateClspvReflectionConstantData(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionConstantData() argument 580 ValidateClspvReflectionSampler(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSampler() argument 600 ValidateClspvReflectionPropertyRequiredWorkgroupSize( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPropertyRequiredWorkgroupSize() argument 624 ValidateClspvReflectionInstruction(ValidationState_t& _, const Instruction* inst, uint32_t ) ValidateClspvReflectionInstruction() argument 685 IsConstWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsConstWithIntScalarType() argument 695 IsDebugVariableWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsDebugVariableWithIntScalarType() argument 726 ValidateExtension(ValidationState_t& _, const Instruction* inst) ValidateExtension() argument 740 ValidateExtInstImport(ValidationState_t& _, const Instruction* inst) ValidateExtInstImport() argument 756 ValidateExtInst(ValidationState_t& _, const Instruction* inst) ValidateExtInst() argument 3294 ExtensionPass(ValidationState_t& _, const Instruction* inst) ExtensionPass() argument [all...] |
H A D | validate_image.cpp | 98 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 D | validate_extensions.cpp | 65 auto inst = _.FindDef(id); in IsUint32Constant() local 66 if (!inst || inst->opcode() != SpvOpConstant) { in IsUint32Constant() 70 return IsIntScalar(_, inst->type_id(), true, true); in IsUint32Constant() 74 auto inst = _.FindDef(id); in GetUint32Constant() local 75 return inst->word(3); in GetUint32Constant() 78 // Check that the operand of a debug info instruction |inst| at |word_index| 82 SpvOp expected_opcode, const Instruction* inst, uint32_t word_index, in ValidateOperandForDebugInfo() 84 auto* operand = _.FindDef(inst->word(word_index)); in ValidateOperandForDebugInfo() 89 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateOperandForDebugInfo() 80 ValidateOperandForDebugInfo( ValidationState_t& _, const std::string& operand_name, SpvOp expected_opcode, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandForDebugInfo() argument 105 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 134 DoesDebugInfoOperandMatchExpectation( const ValidationState_t& _, const std::function<bool(CommonDebugInfoInstructions)>& expectation, const Instruction* inst, uint32_t word_index) DoesDebugInfoOperandMatchExpectation() argument 153 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 187 ValidateOperandBaseType( ValidationState_t& _, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandBaseType() argument 198 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 221 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 245 ValidateClspvReflectionKernel(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionKernel() argument 300 ValidateClspvReflectionArgumentInfo(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentInfo() argument 337 ValidateKernelDecl(ValidationState_t& _, const Instruction* inst) ValidateKernelDecl() argument 360 ValidateArgInfo(ValidationState_t& _, const Instruction* inst, uint32_t info_index) ValidateArgInfo() argument 382 ValidateClspvReflectionArgumentBuffer(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentBuffer() argument 413 ValidateClspvReflectionArgumentPodBuffer(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentPodBuffer() argument 454 ValidateClspvReflectionArgumentPodPushConstant( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentPodPushConstant() argument 485 ValidateClspvReflectionArgumentWorkgroup(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentWorkgroup() argument 516 ValidateClspvReflectionSpecConstantTriple( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantTriple() argument 536 ValidateClspvReflectionSpecConstantWorkDim( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantWorkDim() argument 546 ValidateClspvReflectionPushConstant(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPushConstant() argument 561 ValidateClspvReflectionConstantData(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionConstantData() argument 580 ValidateClspvReflectionSampler(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSampler() argument 600 ValidateClspvReflectionPropertyRequiredWorkgroupSize( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPropertyRequiredWorkgroupSize() argument 624 ValidateClspvReflectionInstruction(ValidationState_t& _, const Instruction* inst, uint32_t ) ValidateClspvReflectionInstruction() argument 685 IsConstWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsConstWithIntScalarType() argument 695 IsDebugVariableWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsDebugVariableWithIntScalarType() argument 726 ValidateExtension(ValidationState_t& _, const Instruction* inst) ValidateExtension() argument 740 ValidateExtInstImport(ValidationState_t& _, const Instruction* inst) ValidateExtInstImport() argument 756 ValidateExtInst(ValidationState_t& _, const Instruction* inst) ValidateExtInst() argument 3294 ExtensionPass(ValidationState_t& _, const Instruction* inst) ExtensionPass() argument [all...] |
H A D | validate_image.cpp | 98 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/vulkan-loader/loader/ |
H A D | unknown_function_handling.c | 44 void loader_init_dispatch_dev_ext_entry(struct loader_instance *inst, struct loader_device *dev, uint32_t idx, const char *funcName) in loader_init_dispatch_dev_ext_entry() argument 52 for (struct loader_icd_term *icd_term = inst->icd_terms; icd_term != NULL; icd_term = icd_term->next) { in loader_init_dispatch_dev_ext_entry() 65 void loader_init_dispatch_dev_ext(struct loader_instance *inst, struct loader_device *dev) { in loader_init_dispatch_dev_ext() argument 67 if (inst->dev_ext_disp_functions[i] != NULL) in loader_init_dispatch_dev_ext() 68 loader_init_dispatch_dev_ext_entry(inst, dev, i, inst->dev_ext_disp_functions[i]); in loader_init_dispatch_dev_ext() 72 bool loader_check_icds_for_dev_ext_address(struct loader_instance *inst, const char *funcName) { in loader_check_icds_for_dev_ext_address() argument 74 icd_term = inst->icd_terms; in loader_check_icds_for_dev_ext_address() 87 bool loader_check_layer_list_for_dev_ext_address(struct loader_instance *inst, const char *funcName) { in loader_check_layer_list_for_dev_ext_address() argument 89 for (uint32_t layer = 0; layer < inst in loader_check_layer_list_for_dev_ext_address() 115 loader_free_dev_ext_table(struct loader_instance *inst) loader_free_dev_ext_table() argument 139 loader_dev_ext_gpa_impl(struct loader_instance *inst, const char *funcName, bool is_tramp) loader_dev_ext_gpa_impl() argument 175 loader_dev_ext_gpa_tramp(struct loader_instance *inst, const char *funcName) loader_dev_ext_gpa_tramp() argument 179 loader_dev_ext_gpa_term(struct loader_instance *inst, const char *funcName) loader_dev_ext_gpa_term() argument 185 loader_check_icds_for_phys_dev_ext_address(struct loader_instance *inst, const char *funcName) loader_check_icds_for_phys_dev_ext_address() argument 200 loader_check_layer_list_for_phys_dev_ext_address(struct loader_instance *inst, const char *funcName) loader_check_layer_list_for_phys_dev_ext_address() argument 216 loader_free_phys_dev_ext_table(struct loader_instance *inst) loader_free_phys_dev_ext_table() argument 235 loader_phys_dev_ext_gpa_impl(struct loader_instance *inst, const char *funcName, bool is_tramp) loader_phys_dev_ext_gpa_impl() argument 334 loader_phys_dev_ext_gpa_tramp(struct loader_instance *inst, const char *funcName) loader_phys_dev_ext_gpa_tramp() argument 337 loader_phys_dev_ext_gpa_term(struct loader_instance *inst, const char *funcName) loader_phys_dev_ext_gpa_term() argument [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | eliminate_dead_members_pass.cpp | 43 for (auto& inst : get_module()->types_values()) { in FindLiveMembers() 44 if (inst.opcode() == SpvOpSpecConstantOp) { in FindLiveMembers() 45 switch (inst.GetSingleWordInOperand(kSpecConstOpOpcodeIdx)) { in FindLiveMembers() 47 MarkMembersAsLiveForExtract(&inst); in FindLiveMembers() 61 } else if (inst.opcode() == SpvOpVariable) { in FindLiveMembers() 62 switch (inst.GetSingleWordInOperand(0)) { in FindLiveMembers() 65 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers() 70 if (inst.IsVulkanStorageBufferVariable()) in FindLiveMembers() 71 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers() 84 [this](const Instruction* inst) { FindLiveMember in FindLiveMembers() 87 FindLiveMembers(const Instruction* inst) FindLiveMembers() argument 128 MarkMembersAsLiveForStore( const Instruction* inst) MarkMembersAsLiveForStore() argument 169 MarkMembersAsLiveForCopyMemory( const Instruction* inst) MarkMembersAsLiveForCopyMemory() argument 179 MarkMembersAsLiveForExtract( const Instruction* inst) MarkMembersAsLiveForExtract() argument 211 MarkMembersAsLiveForAccessChain( const Instruction* inst) MarkMembersAsLiveForAccessChain() argument 257 MarkOperandTypeAsFullyUsed( const Instruction* inst, uint32_t in_idx) MarkOperandTypeAsFullyUsed() argument 264 MarkMembersAsLiveForArrayLength( const Instruction* inst) MarkMembersAsLiveForArrayLength() argument 346 UpdateOpTypeStruct(Instruction* inst) UpdateOpTypeStruct() argument 364 UpdateOpMemberNameOrDecorate(Instruction* inst) UpdateOpMemberNameOrDecorate() argument 390 UpdateOpGroupMemberDecorate(Instruction* inst) UpdateOpGroupMemberDecorate() argument 431 UpdateConstantComposite(Instruction* inst) UpdateConstantComposite() argument 452 UpdateAccessChain(Instruction* inst) UpdateAccessChain() argument 490 context(), inst, UpdateAccessChain() local 541 UpdateCompsiteExtract(Instruction* inst) UpdateCompsiteExtract() argument 596 UpdateCompositeInsert(Instruction* inst) UpdateCompositeInsert() argument 657 UpdateOpArrayLength(Instruction* inst) UpdateOpArrayLength() argument 677 MarkStructOperandsAsFullyUsed( const Instruction* inst) MarkStructOperandsAsFullyUsed() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | eliminate_dead_members_pass.cpp | 43 for (auto& inst : get_module()->types_values()) { in FindLiveMembers() 44 if (inst.opcode() == SpvOpSpecConstantOp) { in FindLiveMembers() 45 switch (inst.GetSingleWordInOperand(kSpecConstOpOpcodeIdx)) { in FindLiveMembers() 47 MarkMembersAsLiveForExtract(&inst); in FindLiveMembers() 61 } else if (inst.opcode() == SpvOpVariable) { in FindLiveMembers() 62 switch (inst.GetSingleWordInOperand(0)) { in FindLiveMembers() 65 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers() 70 if (inst.IsVulkanStorageBufferVariable()) in FindLiveMembers() 71 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers() 84 [this](const Instruction* inst) { FindLiveMember in FindLiveMembers() 87 FindLiveMembers(const Instruction* inst) FindLiveMembers() argument 128 MarkMembersAsLiveForStore( const Instruction* inst) MarkMembersAsLiveForStore() argument 169 MarkMembersAsLiveForCopyMemory( const Instruction* inst) MarkMembersAsLiveForCopyMemory() argument 179 MarkMembersAsLiveForExtract( const Instruction* inst) MarkMembersAsLiveForExtract() argument 211 MarkMembersAsLiveForAccessChain( const Instruction* inst) MarkMembersAsLiveForAccessChain() argument 257 MarkOperandTypeAsFullyUsed( const Instruction* inst, uint32_t in_idx) MarkOperandTypeAsFullyUsed() argument 264 MarkMembersAsLiveForArrayLength( const Instruction* inst) MarkMembersAsLiveForArrayLength() argument 346 UpdateOpTypeStruct(Instruction* inst) UpdateOpTypeStruct() argument 364 UpdateOpMemberNameOrDecorate(Instruction* inst) UpdateOpMemberNameOrDecorate() argument 390 UpdateOpGroupMemberDecorate(Instruction* inst) UpdateOpGroupMemberDecorate() argument 431 UpdateConstantComposite(Instruction* inst) UpdateConstantComposite() argument 452 UpdateAccessChain(Instruction* inst) UpdateAccessChain() argument 490 context(), inst, UpdateAccessChain() local 541 UpdateCompsiteExtract(Instruction* inst) UpdateCompsiteExtract() argument 596 UpdateCompositeInsert(Instruction* inst) UpdateCompositeInsert() argument 657 UpdateOpArrayLength(Instruction* inst) UpdateOpArrayLength() argument 677 MarkStructOperandsAsFullyUsed( const Instruction* inst) MarkStructOperandsAsFullyUsed() argument [all...] |
/third_party/mesa3d/src/broadcom/qpu/ |
H A D | qpu_instr.c | 563 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...] |
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
H A D | etnaviv_asm.c | 36 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/vk-gl-cts/external/amber/src/src/ |
H A D | clspv_helper.cc | 69 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...] |