From: Timothy Arceri Date: Fri, 19 Jan 2018 10:52:24 +0000 (+1100) Subject: radeonsi/nir: add nir_intrinsic_load_sample_mask_in to ir scan X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6a0ce7e5479f9bb8ed6135df685b0e34681c189;p=mesa.git radeonsi/nir: add nir_intrinsic_load_sample_mask_in to ir scan Fixes a bunch of ARB_sample_shading piglit tests. Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 9a15271bb01..56594fcd0e2 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -98,6 +98,9 @@ static void scan_instruction(struct tgsi_shader_info *info, case nir_intrinsic_load_primitive_id: info->uses_primid = 1; break; + case nir_intrinsic_load_sample_mask_in: + info->reads_samplemask = true; + break; case nir_intrinsic_load_tess_level_inner: case nir_intrinsic_load_tess_level_outer: info->reads_tess_factors = true;