summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-06-26 15:05:32 -0400
committerRob Clark <[email protected]>2015-07-03 08:56:09 -0400
commit959b47262b339ad6d1a072c17a1abe9735ead41d (patch)
tree7801f7d0500a0556d5205ac039bd8f9649df8fd7 /src/glsl
parent29addf50e038d7323a7ac8093d93422c28ad8635 (diff)
nir/lower_phis_to_scalar: undef is trivially scalarizable
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/nir_lower_phis_to_scalar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_lower_phis_to_scalar.c b/src/glsl/nir/nir_lower_phis_to_scalar.c
index a57d253975d..739170d61fd 100644
--- a/src/glsl/nir/nir_lower_phis_to_scalar.c
+++ b/src/glsl/nir/nir_lower_phis_to_scalar.c
@@ -75,6 +75,7 @@ is_phi_src_scalarizable(nir_phi_src *src,
return should_lower_phi(nir_instr_as_phi(src_instr), state);
case nir_instr_type_load_const:
+ case nir_instr_type_ssa_undef:
/* These are trivially scalarizable */
return true;