aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2013-11-29 13:29:56 +0200
committerTopi Pohjolainen <[email protected]>2014-01-23 08:45:51 +0200
commit8c0030678aa39b4e2c080887023818eed6c1f5a0 (patch)
tree241de3ad534a18a8bb4b4b28f0b524ddc7ff0379 /src/mesa/drivers/dri/i965
parent44524cb42f9a2ce6571b8ca344cd5a7c6afd5702 (diff)
i965/blorp: wrap RNDD (/brw_RNDD(&func, /emit_rndd(/)
Signed-off-by: Topi Pohjolainen <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp_blit.cpp4
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
index 4d0b882f347..aae07048fea 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
@@ -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();
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h b/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h
index f22207ddf83..07c96b07daa 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h
+++ b/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h
@@ -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;
};