mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
glsl_to_tgsi: don't create 64-bit integer MAD/FMA
TGSI has no I64MAD/U64MAD opcode.
Fixes: 278580729a ('st/glsl_to_tgsi: add support for 64-bit integers')
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
26cb93e229
commit
5172eb231d
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue