Lines Matching refs:inst
67 * before instruction \p inst in basic block \p block. The default
71 fs_builder(backend_shader *shader, bblock_t *block, fs_inst *inst) :
72 shader(shader), block(block), cursor(inst),
73 _dispatch_width(inst->exec_size),
74 _group(inst->group),
75 force_writemask_all(inst->force_writemask_all)
77 annotation.str = inst->annotation;
78 annotation.ir = inst->ir;
249 emit(const instruction &inst) const
251 return emit(new(shader->mem_ctx) instruction(inst));
363 emit(instruction *inst) const
365 assert(inst->exec_size <= 32);
366 assert(inst->exec_size == dispatch_width() ||
369 inst->group = _group;
370 inst->force_writemask_all = force_writemask_all;
371 inst->annotation = annotation.str;
372 inst->ir = annotation.ir;
375 static_cast<instruction *>(cursor)->insert_before(block, inst);
377 cursor->insert_before(inst);
379 return inst;
590 instruction *inst = emit(BRW_OPCODE_##op, dst, src0, src1); \
591 inst->writes_accumulator = true; \
592 return inst; \
770 instruction *inst = emit(SHADER_OPCODE_LOAD_PAYLOAD, dst, src, sources);
771 inst->header_size = header_size;
772 inst->size_written = header_size * REG_SIZE;
774 inst->size_written += dispatch_width() * type_sz(src[i].type) *
778 return inst;
785 instruction *inst = emit(SHADER_OPCODE_UNDEF,
787 inst->size_written = shader->alloc.sizes[dst.nr] * REG_SIZE;
789 return inst;