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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user