intel/compiler: adjust task payload offsets as late as possible
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Mon, 23 May 2022 15:09:33 +0000 (17:09 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 27 Jun 2022 14:14:41 +0000 (14:14 +0000)
commit42b551fe7f970c8fd6e530e3d2169abb934c72c2
treec9d09cc0de5f2cb252c1943c8bb602943be3febd
parent3dc6a98d78c669b28ee600b9da7086febb859e8f
intel/compiler: adjust task payload offsets as late as possible

Otherwise passes which expect offsets to be in bytes (like
brw_nir_lower_mem_access_bit_sizes, called from brw_postprocess_nir)
may produce incorrect results.

Fixes 64-bit load/stores in task/mesh shaders.

Fixes: c36ae42e4cc ("intel/compiler: Use nir_var_mem_task_payload")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16196>
src/intel/compiler/brw_mesh.cpp