<div class="gmail_quote">On 14 June 2012 05:10, Jose Fonseca <span dir="ltr"><<a href="mailto:jfonseca@vmware.com" target="_blank">jfonseca@vmware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
lp_build_utrunc() doesn't exists yet. For now, please use lp_build_itrunc() and add a /* FIXME: implement and use lp_build_utrunc() */ comment. It's not perfect, but it's no worse what's there now.<br>
<br>
Jose<br></blockquote><div><br></div><div>Ok, will do. Thank you.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5"><br>
----- Original Message -----<br>
> ---<br>
> src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c | 12<br>
> ++++++++++++<br>
> 1 files changed, 12 insertions(+), 0 deletions(-)<br>
><br>
> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c<br>
> b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c<br>
> index e0a5180..e48a0fd 100644<br>
> --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c<br>
> +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c<br>
> @@ -984,6 +984,17 @@ f2i_emit_cpu(<br>
> emit_data->args[0]);<br>
> }<br>
><br>
> +/* TGSI_OPCODE_F2U (CPU Only) */<br>
> +static void<br>
> +f2u_emit_cpu(<br>
> + const struct lp_build_tgsi_action * action,<br>
> + struct lp_build_tgsi_context * bld_base,<br>
> + struct lp_build_emit_data * emit_data)<br>
> +{<br>
> + emit_data->output[emit_data->chan] =<br>
> lp_build_utrunc(&bld_base->base,<br>
> +<br>
> emit_data->args[0]);<br>
> +}<br>
> +<br>
> /* TGSI_OPCODE_FLR (CPU Only) */<br>
><br>
> static void<br>
> @@ -1561,6 +1572,7 @@ lp_set_default_actions_cpu(<br>
> bld_base->op_actions[TGSI_OPCODE_EX2].emit = ex2_emit_cpu;<br>
> bld_base->op_actions[TGSI_OPCODE_EXP].emit = exp_emit_cpu;<br>
> bld_base->op_actions[TGSI_OPCODE_F2I].emit = f2i_emit_cpu;<br>
> + bld_base->op_actions[TGSI_OPCODE_F2U].emit = f2u_emit_cpu;<br>
> bld_base->op_actions[TGSI_OPCODE_FLR].emit = flr_emit_cpu;<br>
><br>
> bld_base->op_actions[TGSI_OPCODE_I2F].emit = i2f_emit_cpu;<br>
> --<br>
> 1.7.7.6<br>
><br>
</div></div>> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
><br>
</blockquote></div><br>