[Mesa-dev] [PATCH v3 2/4] radv: gather if shaders load dynamic offsets separately
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Feb 5 19:21:59 UTC 2019
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
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 00c11eb447a..e7301351d78 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)
--
2.20.1
More information about the mesa-dev
mailing list