glsl/lower_instructions: Handle fp16 for MOD_TO_FLOOR

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3929>
This commit is contained in:
Hyunjun Ko 2019-06-03 08:44:14 +00:00 committed by Marge Bot
parent 6c1c2b779a
commit 4fcac46cbd
1 changed files with 1 additions and 1 deletions

View File

@ -1789,7 +1789,7 @@ lower_instructions_visitor::visit_leave(ir_expression *ir)
break;
case ir_binop_mod:
if (lowering(MOD_TO_FLOOR) && (ir->type->is_float() || ir->type->is_double()))
if (lowering(MOD_TO_FLOOR) && ir->type->is_float_16_32_64())
mod_to_floor(ir);
break;