Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
emit_frc(y_frac, Y_f);
/* Round the float coordinates down to nearest integer */
- brw_RNDD(&func, Xp_f, X_f);
- brw_RNDD(&func, Yp_f, Y_f);
+ emit_rndd(Xp_f, X_f);
+ emit_rndd(Yp_f, Y_f);
emit_mul(X_f, Xp_f, brw_imm_f(1 / key->x_scale));
emit_mul(Y_f, Yp_f, brw_imm_f(1 / key->y_scale));
SWAP_XY_AND_XPYP();
brw_FRC(&func, dst, src);
}
+ inline void emit_rndd(const struct brw_reg& dst,
+ const struct brw_reg& src)
+ {
+ brw_RNDD(&func, dst, src);
+ }
+
void *mem_ctx;
struct brw_compile func;
};