radv: gather if shaders load dynamic offsets separately
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -162,6 +162,7 @@ struct radv_streamout_info {
|
|||||||
|
|
||||||
struct radv_shader_info {
|
struct radv_shader_info {
|
||||||
bool loads_push_constants;
|
bool loads_push_constants;
|
||||||
|
bool loads_dynamic_offsets;
|
||||||
uint8_t min_push_constant_used;
|
uint8_t min_push_constant_used;
|
||||||
uint8_t max_push_constant_used;
|
uint8_t max_push_constant_used;
|
||||||
bool has_only_32bit_push_constants;
|
bool has_only_32bit_push_constants;
|
||||||
|
@@ -550,6 +550,7 @@ radv_nir_shader_info_pass(const struct nir_shader *nir,
|
|||||||
if (options->layout && options->layout->dynamic_offset_count &&
|
if (options->layout && options->layout->dynamic_offset_count &&
|
||||||
(options->layout->dynamic_shader_stages & mesa_to_vk_shader_stage(nir->info.stage))) {
|
(options->layout->dynamic_shader_stages & mesa_to_vk_shader_stage(nir->info.stage))) {
|
||||||
info->loads_push_constants = true;
|
info->loads_push_constants = true;
|
||||||
|
info->loads_dynamic_offsets = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
nir_foreach_variable(variable, &nir->inputs)
|
nir_foreach_variable(variable, &nir->inputs)
|
||||||
|
Reference in New Issue
Block a user