pipeline->layout can't be NULL now.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
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)