radeonsi: enable nir pass for 64 bit operations

Enables optimisations for divide-by-constant which are
required in some shaders. e.g. si_create_query_result_cs()

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25972>
This commit is contained in:
Ganesh Belgur Ramachandra 2023-11-15 01:12:40 -06:00 committed by Marge Bot
parent b88ac6b381
commit d5ef8a0ac0

View file

@ -283,6 +283,7 @@ 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,