glsl/lower_instructions: Handle fp16 for MOD_TO_FLOOR
authorHyunjun Ko <zzoon@igalia.com>
Mon, 3 Jun 2019 08:44:14 +0000 (08:44 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Mar 2020 16:31:08 +0000 (16:31 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3929>

src/compiler/glsl/lower_instructions.cpp

index 4343159b18fc6032911d084f87cdaff571cba1b8..9aca7c9d8dff79cb0ad3ceedc368c768033de04e 100644 (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;