mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
anv: run a single impl loop for apply_pipeline_layout
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41047>
This commit is contained in:
parent
bbeb6be6eb
commit
fc44be9762
1 changed files with 4 additions and 10 deletions
|
|
@ -2536,17 +2536,11 @@ anv_nir_apply_pipeline_layout(nir_shader *shader,
|
|||
lower_direct_buffer_instr,
|
||||
nir_metadata_control_flow,
|
||||
&state);
|
||||
}
|
||||
/* We just got rid of all the direct access. Delete it so it's not in the
|
||||
* way when we do our indirect lowering.
|
||||
*/
|
||||
progress |= nir_opt_dce_impl(impl);
|
||||
|
||||
/* We just got rid of all the direct access. Delete it so it's not in the
|
||||
* way when we do our indirect lowering.
|
||||
*/
|
||||
progress |= nir_opt_dce(shader);
|
||||
|
||||
nir_foreach_function_impl(impl, shader) {
|
||||
nir_builder _b = nir_builder_at(nir_before_impl(impl)), *b = &_b;
|
||||
state.set_idx_to_bti = build_descriptor_sets_bti_array(b, &state);
|
||||
state.set_idx_to_offset = build_descriptor_sets_offset_array(b, &state);
|
||||
progress |= nir_function_instructions_pass(impl,
|
||||
apply_pipeline_layout,
|
||||
nir_metadata_control_flow,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue