radeonsi/nir: add nir_intrinsic_load_sample_mask_in to ir scan
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 19 Jan 2018 10:52:24 +0000 (21:52 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 22 Jan 2018 22:11:21 +0000 (09:11 +1100)
Fixes a bunch of ARB_sample_shading piglit tests.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c

index 9a15271bb01a364f8e0937ed3e12577a9c2cab69..56594fcd0e2e41f9b21e04ec9a14d5342a09a8ca 100644 (file)
@@ -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;