[Mesa-dev] [PATCH] glsl_to_tgsi: don't create 64-bit integer MAD/FMA
Marek Olšák
maraeo at gmail.com
Tue Oct 30 20:19:03 UTC 2018
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Sun, Oct 21, 2018 at 12:06 PM Rhys Perry <pendingchaos02 at gmail.com>
wrote:
> TGSI has no I64MAD/U64MAD opcode.
>
> Fixes: 278580729a5 ('st/glsl_to_tgsi: add support for 64-bit integers')
> Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
> ---
> src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> index dea91c7a18..e1e00b3e33 100644
> --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> @@ -1274,6 +1274,10 @@ glsl_to_tgsi_visitor::try_emit_mad(ir_expression
> *ir, int mul_operand)
> st_src_reg a, b, c;
> st_dst_reg result_dst;
>
> + // there is no TGSI opcode for this
> + if (ir->type->is_integer_64())
> + return false;
> +
> ir_expression *expr = ir->operands[mul_operand]->as_expression();
> if (!expr || expr->operation != ir_binop_mul)
> return false;
> --
> 2.17.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181030/dc8e768c/attachment.html>
More information about the mesa-dev
mailing list