From: Samuel Pitoiset Date: Tue, 1 Sep 2020 07:43:03 +0000 (+0200) Subject: spirv: fix retrieving dest type for OpFragmentMaskFetchAMD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=abbfc5b8db7412fa2e6f8c1b66ff97b886c4ac70;p=mesa.git 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 Reviewed-by: Jesse Natalie Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 399e5ea3ede..d39f2a0d4f1 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -2569,6 +2569,7 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp opcode, case SpvOpFragmentMaskFetchAMD: texop = nir_texop_fragment_mask_fetch; + dest_type = nir_type_uint; break; default: