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-Tag: upstream/20.1.8~2651 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fcac46cbd720ec88a6762cf5cda5906eb379c9d;p=platform%2Fupstream%2Fmesa.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 4343159..9aca7c9 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;