From: Jason Ekstrand Date: Thu, 31 Mar 2016 03:37:18 +0000 (-0700) Subject: nir/gather_info: Handle discard_if X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8f3909b73a9b893b6cfed752e65516dff384b6c;p=mesa.git nir/gather_info: Handle discard_if Reviewed-by: Nanley Chery --- 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;