[Mesa-dev] [RFC PATCH 2/4] radv: gather if shaders load dynamic offsets separately
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jan 25 16:30:02 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 0f049f9a528..09bc5c2d4a9 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_32bit_push_constants;
diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c
index c9cd5fddc53..cabe2a470a0 100644
--- a/src/amd/vulkan/radv_shader_info.c
+++ b/src/amd/vulkan/radv_shader_info.c
@@ -545,6 +545,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