anv: add analysis for push descriptor uses and store it in shader cache
We'll use this information to avoid : - binding table emission - allocation of surface states v2: Fix anv_nir_push_desc_ubo_fully_promoted() Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19050>
This commit is contained in:

committed by
Marge Bot

parent
01e282f23f
commit
ff91c5ca42
@@ -82,6 +82,17 @@ void anv_nir_validate_push_layout(struct brw_stage_prog_data *prog_data,
|
||||
|
||||
bool anv_nir_add_base_work_group_id(nir_shader *shader);
|
||||
|
||||
uint32_t anv_nir_compute_used_push_descriptors(nir_shader *shader,
|
||||
const struct anv_pipeline_layout *layout);
|
||||
|
||||
bool anv_nir_loads_push_desc_buffer(nir_shader *nir,
|
||||
const struct anv_pipeline_layout *layout,
|
||||
const struct anv_pipeline_bind_map *bind_map);
|
||||
|
||||
uint32_t anv_nir_push_desc_ubo_fully_promoted(nir_shader *nir,
|
||||
const struct anv_pipeline_layout *layout,
|
||||
const struct anv_pipeline_bind_map *bind_map);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user