diff options
author | Jason Ekstrand <[email protected]> | 2018-03-26 18:14:24 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-22 20:54:00 -0700 |
commit | c6fc65323237a77c0957b9afa6c940e9efa89e50 (patch) | |
tree | ddea8c647ab121639b994b3cd1e7396debc5d5d4 /src | |
parent | 47ffb893e60c114119351f2da176e5574f5e8e5f (diff) |
nir: Remove deref chain support from lower_phis_to_scalar
Acked-by: Rob Clark <[email protected]>
Acked-by: Bas Nieuwenhuizen <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/nir/nir_lower_phis_to_scalar.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/compiler/nir/nir_lower_phis_to_scalar.c b/src/compiler/nir/nir_lower_phis_to_scalar.c index 6cb9420d0f2..46f308e9e67 100644 --- a/src/compiler/nir/nir_lower_phis_to_scalar.c +++ b/src/compiler/nir/nir_lower_phis_to_scalar.c @@ -89,16 +89,9 @@ is_phi_src_scalarizable(nir_phi_src *src, deref->mode == nir_var_uniform; } - case nir_intrinsic_load_var: - return src_intrin->variables[0]->var->data.mode == nir_var_shader_in || - src_intrin->variables[0]->var->data.mode == nir_var_uniform; - case nir_intrinsic_interp_deref_at_centroid: case nir_intrinsic_interp_deref_at_sample: case nir_intrinsic_interp_deref_at_offset: - case nir_intrinsic_interp_var_at_centroid: - case nir_intrinsic_interp_var_at_sample: - case nir_intrinsic_interp_var_at_offset: case nir_intrinsic_load_uniform: case nir_intrinsic_load_ubo: case nir_intrinsic_load_ssbo: @@ -308,6 +301,8 @@ nir_lower_phis_to_scalar(nir_shader *shader) { bool progress = false; + nir_assert_unlowered_derefs(shader, nir_lower_load_store_derefs); + nir_foreach_function(function, shader) { if (function->impl) progress = lower_phis_to_scalar_impl(function->impl) || progress; |