From b8f3909b73a9b893b6cfed752e65516dff384b6c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 30 Mar 2016 20:37:18 -0700 Subject: [PATCH] nir/gather_info: Handle discard_if Reviewed-by: Nanley Chery --- src/compiler/nir/nir_gather_info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 046836fc534..bff235bb377 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -28,6 +28,7 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader) { switch (instr->intrinsic) { case nir_intrinsic_discard: + case nir_intrinsic_discard_if: assert(shader->stage == MESA_SHADER_FRAGMENT); shader->info.fs.uses_discard = true; break; -- 2.30.2