summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-12-18 19:38:55 +0100
committerSamuel Pitoiset <[email protected]>2017-12-19 21:22:12 +0100
commit1cecaa9174a0d3c14163ca276e39ac6771f81601 (patch)
treecc881f74f1e68b4951bcbce9f7dede27d16b570e
parentf9a07474a1eb4b276c75cfb27d040358139562d1 (diff)
radv: remove one useless check in ac_nir_shader_info_pass()
pipeline->layout can't be NULL now. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/common/ac_shader_info.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/amd/common/ac_shader_info.c b/src/amd/common/ac_shader_info.c
index 3299b47e6b8..4df428ae81f 100644
--- a/src/amd/common/ac_shader_info.c
+++ b/src/amd/common/ac_shader_info.c
@@ -149,10 +149,8 @@ ac_nir_shader_info_pass(struct nir_shader *nir,
struct nir_function *func = (struct nir_function *)exec_list_get_head(&nir->functions);
info->needs_push_constants = true;
- if (!options->layout)
- info->needs_push_constants = false;
- else if (!options->layout->push_constant_size &&
- !options->layout->dynamic_offset_count)
+ if (!options->layout->push_constant_size &&
+ !options->layout->dynamic_offset_count)
info->needs_push_constants = false;
nir_foreach_variable(variable, &nir->inputs)