projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c1c2b7
)
glsl/lower_instructions: Handle fp16 for MOD_TO_FLOOR
author
Hyunjun Ko
<zzoon@igalia.com>
Mon, 3 Jun 2019 08:44:14 +0000
(08:44 +0000)
committer
Marge 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
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/lower_instructions.cpp
b/src/compiler/glsl/lower_instructions.cpp
index 4343159b18fc6032911d084f87cdaff571cba1b8..9aca7c9d8dff79cb0ad3ceedc368c768033de04e 100644
(file)
--- 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;