mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
gallium: Add support for ir_unop_f2u to tgsi backend.
Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
fa584c50cf
commit
1be7661110
1 changed files with 6 additions and 0 deletions
|
|
@ -1762,6 +1762,12 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir)
|
|||
else
|
||||
emit(ir, TGSI_OPCODE_TRUNC, result_dst, op[0]);
|
||||
break;
|
||||
case ir_unop_f2u:
|
||||
if (native_integers)
|
||||
emit(ir, TGSI_OPCODE_F2U, result_dst, op[0]);
|
||||
else
|
||||
emit(ir, TGSI_OPCODE_TRUNC, result_dst, op[0]);
|
||||
break;
|
||||
case ir_unop_bitcast_f2i:
|
||||
case ir_unop_bitcast_f2u:
|
||||
case ir_unop_bitcast_i2f:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue