spirv: fix retrieving dest type for OpFragmentMaskFetchAMD
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 1 Sep 2020 07:43:03 +0000 (09:43 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 2 Sep 2020 06:54:22 +0000 (08:54 +0200)
commitabbfc5b8db7412fa2e6f8c1b66ff97b886c4ac70
tree15e862a39aba411c56317ff77b0b81c739d46f2e
parent4500e6e460dca068157862b95c7534d7d163c42c
spirv: fix retrieving dest type for OpFragmentMaskFetchAMD

Since the dest type is retrieved from the SPIR-V return type now,
we have to set it manually for OpFragmentMaskFetchAMD. The result
type must be a 32-bit unsigned integer type scalar.

Fix dEQP-VK.pipeline.multisample.shader_fragment_mask.* with RADV.

Fixes: a196f05fc22 ("nir/vtn: Use return type rather than image type for tex ops")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6533>
src/compiler/spirv/spirv_to_nir.c