mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
radv: remove one useless check in ac_nir_shader_info_pass()
pipeline->layout can't be NULL now. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
f9a07474a1
commit
1cecaa9174
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue