Lines Matching refs:inst
36 dump_instruction(inst, stderr); \
45 foreach_block_and_inst (block, fs_inst, inst, cfg) {
46 if (inst->opcode == SHADER_OPCODE_URB_WRITE_LOGICAL) {
48 unsigned(inst->src[URB_LOGICAL_SRC_PER_SLOT_OFFSETS].file != BAD_FILE) +
49 unsigned(inst->src[URB_LOGICAL_SRC_CHANNEL_MASK].file != BAD_FILE);
52 for (unsigned i = header_size, j = 0; i < inst->mlen; i++, j++) {
53 fsv_assert(type_sz(offset(inst->src[URB_LOGICAL_SRC_DATA], bld, j).type) == 4);
57 fsv_assert(header_size + data_size == inst->mlen);
60 if (inst->dst.file == VGRF) {
61 fsv_assert(inst->dst.offset / REG_SIZE + regs_written(inst) <=
62 alloc.sizes[inst->dst.nr]);
65 for (unsigned i = 0; i < inst->sources; i++) {
66 if (inst->src[i].file == VGRF) {
67 fsv_assert(inst->src[i].offset / REG_SIZE + regs_read(inst, i) <=
68 alloc.sizes[inst->src[i].nr]);