summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir')
-rw-r--r--src/glsl/nir/nir_lower_to_source_mods.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_lower_to_source_mods.c b/src/glsl/nir/nir_lower_to_source_mods.c
index c3f39bcd19f..d6bf77f17c1 100644
--- a/src/glsl/nir/nir_lower_to_source_mods.c
+++ b/src/glsl/nir/nir_lower_to_source_mods.c
@@ -120,6 +120,10 @@ nir_lower_to_source_mods_block(nir_block *block, void *state)
if (!alu->dest.dest.is_ssa)
continue;
+ /* We can only saturate float destinations */
+ if (nir_op_infos[alu->op].output_type != nir_type_float)
+ continue;
+
if (alu->dest.dest.ssa.if_uses->entries != 0)
continue;