Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 8 ++++---- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp index d6db6ef..83d2e56 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp @@ -1408,8 +1408,8 @@ brw_blorp_blit_program::translate_dst_to_src() /* Store the fractional parts to be used as bilinear interpolation * coefficients. */ - brw_FRC(&func, x_frac, X_f); - brw_FRC(&func, y_frac, Y_f); + emit_frc(x_frac, X_f); + emit_frc(y_frac, Y_f); /* Round the float coordinates down to nearest integer */ brw_RNDD(&func, Xp_f, X_f); @@ -1643,8 +1643,8 @@ brw_blorp_blit_program::manual_blend_bilinear(unsigned num_samples) * | 6 | 7 | | 7 | 1 | * --------- --------- */ - brw_FRC(&func, vec16(t1_f), x_sample_coords); - brw_FRC(&func, vec16(t2_f), y_sample_coords); + emit_frc(vec16(t1_f), x_sample_coords); + emit_frc(vec16(t2_f), y_sample_coords); emit_mul(vec16(t1_f), t1_f, brw_imm_f(key->x_scale)); emit_mul(vec16(t2_f), t2_f, brw_imm_f(key->x_scale * key->y_scale)); emit_add(vec16(t1_f), t1_f, t2_f); 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 17208eb..c9606b1 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h +++ b/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h @@ -150,6 +150,12 @@ protected: brw_OR(&func, dst, src1, src2); } + inline void emit_frc(const struct brw_reg& dst, + const struct brw_reg& src) + { + brw_FRC(&func, dst, src); + } + void *mem_ctx; struct brw_compile func; }; -- 1.8.3.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev