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:
Christian Gmeiner 2023-07-19 10:45:59 +02:00 committed by Marge Bot
parent 8d89e78cf5
commit f3be07cb2d

View file

@ -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)