nir/lower_io: Set interpolated_input dest_type
authorAlyssa Rosenzweig <alyssa@collabora.com>
Sat, 15 Oct 2022 01:27:21 +0000 (21:27 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 18 Oct 2022 21:08:54 +0000 (21:08 +0000)
commit78adf448390e3866e0ccda7762bd869dd6d9ce0f
treed5ac1dcfffa3a03053450d86ab1a40075dc2e5f2
parent0191b067568b87fc21841b8e2a38ca3bbf49bd16
nir/lower_io: Set interpolated_input dest_type

...even for non-pixel interpolation, for consistency. Otherwise backends get
funny intrinsics with interpolateAt:

   vec4 32 ssa_4 = intrinsic load_interpolated_input (ssa_3, ssa_2) (base=1, component=0, dest_type=invalid /*0*/, io location=33 slots=1 /*161*/)

We know it'll be a float, but backends shouldn't need to special case this. (Or
maybe interpolated_input shouldn't have a dest_type index. I'd be ok with that
resolution too. But having one and not setting it consistently is wrong.)

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19085>
src/compiler/nir/nir_lower_io.c