diff options
author | Samuel Pitoiset <[email protected]> | 2017-12-18 19:38:57 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-12-19 21:22:16 +0100 |
commit | 39097282f738f00ad1e5e44791907db43d3e4c7c (patch) | |
tree | 258039072ed7894b555d383fbaa1f7b1e27d588c | |
parent | ca8f3a8d558e5d7ff0d27edeaf226222b500cead (diff) |
radv: change the needs_push_constants logic
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/common/ac_shader_info.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/amd/common/ac_shader_info.c b/src/amd/common/ac_shader_info.c index 4df428ae81f..6aadb5032e2 100644 --- a/src/amd/common/ac_shader_info.c +++ b/src/amd/common/ac_shader_info.c @@ -148,10 +148,10 @@ 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->push_constant_size && - !options->layout->dynamic_offset_count) - info->needs_push_constants = false; + info->needs_push_constants = false; + if (options->layout->push_constant_size || + options->layout->dynamic_offset_count) + info->needs_push_constants = true; nir_foreach_variable(variable, &nir->inputs) gather_info_input_decl(nir, options, variable, info); |