diff options
author | Jason Ekstrand <[email protected]> | 2015-02-03 12:41:36 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-02-03 12:46:38 -0800 |
commit | c0df85cca4da06e3d27bfdee3d3d6bd84d432d2a (patch) | |
tree | 0756416940519df82c07cc0b87cd7184b1c0c0a5 /src/glsl | |
parent | 8776b1b14b229d110f283f5da8c3c36261068ede (diff) |
nir/lower_source_mods: Don't lower saturate for non-float outputs
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/nir_lower_to_source_mods.c | 4 |
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; |