Lines Matching refs:inst

368  * Make the execution of \p inst dependent on the evaluation of a possibly
373 vec4_instruction *inst)
375 inst->predicate = pred;
376 inst->predicate_inverse = inverse;
377 return inst;
381 * Make the execution of \p inst dependent on the evaluation of a predicate.
384 set_predicate(enum brw_predicate pred, vec4_instruction *inst)
386 return set_predicate_inv(pred, false, inst);
394 set_condmod(enum brw_conditional_mod mod, vec4_instruction *inst)
396 inst->conditional_mod = mod;
397 return inst;
401 * Clamp the result of \p inst to the saturation range of its destination
405 set_saturate(bool saturate, vec4_instruction *inst)
407 inst->saturate = saturate;
408 return inst;
413 * fully or partially) counted from 'floor(reg_offset(inst->dst) /
418 regs_written(const vec4_instruction *inst)
420 assert(inst->dst.file != UNIFORM && inst->dst.file != IMM);
421 return DIV_ROUND_UP(reg_offset(inst->dst) % REG_SIZE + inst->size_written,
427 * fully or partially) counted from 'floor(reg_offset(inst->src[i]) /
432 regs_read(const vec4_instruction *inst, unsigned i)
435 inst->src[i].file == UNIFORM || inst->src[i].file == IMM ? 16 : REG_SIZE;
436 return DIV_ROUND_UP(reg_offset(inst->src[i]) % reg_size + inst->size_read(i),
441 get_exec_type(const vec4_instruction *inst)
446 if (inst->src[i].file != BAD_FILE) {
447 const brw_reg_type t = get_exec_type(brw_reg_type(inst->src[i].type));
457 exec_type = inst->dst.type;
461 inst->dst.type == BRW_REGISTER_TYPE_HF);
468 get_exec_type_size(const vec4_instruction *inst)
470 return type_sz(get_exec_type(inst));