nir: add nir_load_rasterization_samples_amd
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 15 Sep 2022 12:47:03 +0000 (14:47 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 21 Sep 2022 10:30:33 +0000 (10:30 +0000)
commitdd30e7bfa03cf34b615ea3c253d340820617c9d6
tree9a1faad26b4644dd1160d9485f4aa359bf03d07e
parent2a0e4b5ef7c8298a5aab6349d63cc100381ea2f3
nir: add nir_load_rasterization_samples_amd

This will be used to load the number of rasterization samples when a
fragment shader is compiled inside a library without the MSAA state.
RADV needs to know the number of samples for loading sample positions
with interpolateAtSample().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18677>
src/compiler/nir/nir_divergence_analysis.c
src/compiler/nir/nir_intrinsics.py