From 5f9379ca35be681fa12425d66b8b8bcf2b17481c Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 5 Feb 2019 20:21:59 +0100 Subject: radv: gather if shaders load dynamic offsets separately Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_shader.h | 1 + src/amd/vulkan/radv_shader_info.c | 1 + 2 files changed, 2 insertions(+) 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) -- cgit v1.2.3