nir: add image fragment mask load intrinsic
authorQiang Yu <yuq825@gmail.com>
Wed, 7 Sep 2022 09:53:33 +0000 (17:53 +0800)
committerQiang Yu <yuq825@gmail.com>
Mon, 19 Dec 2022 01:22:11 +0000 (09:22 +0800)
commit1461b5f61b42c1085f260ab71529a2f05ebbd35f
tree591376bfa7b4609c9bb5c565df2ee08b62cb12bd
parent88f6ca39a7fa9c4b082293efaf2ca3115aa18e17
nir: add image fragment mask load intrinsic

Like nir_texop_fragment_mask_fetch_amd, this is used to load multi
sample image fmask data for AMD GPU.

We will lower multi sample image load and samples_identical intrinsics
to use it latter for radeonsi. RADV does not need this because it
always expand fmask images before dispatch compute shader.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18666>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_divergence_analysis.c
src/compiler/nir/nir_group_loads.c
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_lower_non_uniform_access.c
src/compiler/nir/nir_opt_non_uniform_access.c