From: Hyunjun Ko Date: Mon, 3 Jun 2019 08:44:14 +0000 (+0000) Subject: glsl/lower_instructions: Handle fp16 for MOD_TO_FLOOR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fcac46cbd720ec88a6762cf5cda5906eb379c9d;p=mesa.git glsl/lower_instructions: Handle fp16 for MOD_TO_FLOOR Part-of: --- diff --git a/src/compiler/glsl/lower_instructions.cpp b/src/compiler/glsl/lower_instructions.cpp index 4343159b18f..9aca7c9d8df 100644 --- a/src/compiler/glsl/lower_instructions.cpp +++ b/src/compiler/glsl/lower_instructions.cpp @@ -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;