i965/blorp: wrap RNDD (/brw_RNDD(&func, /emit_rndd(/)
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 29 Nov 2013 11:29:56 +0000 (13:29 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 23 Jan 2014 06:45:51 +0000 (08:45 +0200)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h

index 4d0b882f3479dc468170a2fcafd77e1116817152..aae07048fea3c862fb678ac69197f7146a86b38e 100644 (file)
@@ -1417,8 +1417,8 @@ brw_blorp_blit_program::translate_dst_to_src()
       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();
index f22207ddf83a5426fa634096c39e0889a23835ad..07c96b07daad0fc0ebfdd304b31d13968ee6d539 100644 (file)
@@ -143,6 +143,12 @@ protected:
       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;
 };