radeonsi: call nir_lower_int64 later to fix ACO failure with Tomb Raider

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29282>
This commit is contained in:
Marek Olšák
2024-05-18 20:25:04 -04:00
committed by Marge Bot
parent 5a115b1055
commit 8cb254e0b8
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -2484,6 +2484,7 @@ struct nir_shader *si_get_nir_shader(struct si_shader *shader,
progress = true;
}
NIR_PASS(progress, nir, nir_lower_int64);
NIR_PASS(progress, nir, nir_opt_idiv_const, 8);
NIR_PASS(progress, nir, nir_lower_idiv,
&(nir_lower_idiv_options){
@@ -280,8 +280,6 @@ static void si_lower_nir(struct si_screen *sscreen, struct nir_shader *nir)
* - ensure constant offsets for texture instructions are folded
* and copy-propagated
*/
NIR_PASS_V(nir, nir_lower_int64);
const struct nir_lower_tex_options lower_tex_options = {
.lower_txp = ~0u,
.lower_txf_offset = true,