From 4fcac46cbd720ec88a6762cf5cda5906eb379c9d Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Mon, 3 Jun 2019 08:44:14 +0000 Subject: [PATCH] glsl/lower_instructions: Handle fp16 for MOD_TO_FLOOR Part-of: --- src/compiler/glsl/lower_instructions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2