mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
etnaviv: do not clear all pass_flags before RA
We only need to clear the 'dead' bits. The others are used for source mods. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24216>
This commit is contained in:
parent
8d89e78cf5
commit
f3be07cb2d
1 changed files with 8 additions and 1 deletions
|
|
@ -124,7 +124,14 @@ etna_ra_assign(struct etna_compile *c, nir_shader *shader)
|
|||
|
||||
nir_index_blocks(impl);
|
||||
nir_index_ssa_defs(impl);
|
||||
nir_shader_clear_pass_flags(shader);
|
||||
|
||||
nir_foreach_function_impl(impl, shader) {
|
||||
nir_foreach_block(block, impl) {
|
||||
nir_foreach_instr(instr, block) {
|
||||
instr->pass_flags &= ~PASS_FLAGS_IS_DEAD_MASK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* this gives an approximation/upper limit on how many nodes are needed
|
||||
* (some ssa values do not represent an allocated register)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue