diff options
author | Samuel Pitoiset <[email protected]> | 2019-02-05 20:21:59 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-02-12 17:25:49 +0100 |
commit | 5f9379ca35be681fa12425d66b8b8bcf2b17481c (patch) | |
tree | 60f0335ce97e574ce60db0858842494ea9186f05 | |
parent | 5806d99984a4dd276e277b3615e2194adad70b18 (diff) |
radv: gather if shaders load dynamic offsets separately
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_shader.h | 1 | ||||
-rw-r--r-- | src/amd/vulkan/radv_shader_info.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 92886188459..c194401c02d 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -162,6 +162,7 @@ struct radv_streamout_info { struct radv_shader_info { bool loads_push_constants; + bool loads_dynamic_offsets; uint8_t min_push_constant_used; uint8_t max_push_constant_used; bool has_only_32bit_push_constants; diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index bece7b20f02..7f97da7d209 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -550,6 +550,7 @@ radv_nir_shader_info_pass(const struct nir_shader *nir, if (options->layout && options->layout->dynamic_offset_count && (options->layout->dynamic_shader_stages & mesa_to_vk_shader_stage(nir->info.stage))) { info->loads_push_constants = true; + info->loads_dynamic_offsets = true; } nir_foreach_variable(variable, &nir->inputs) |