nir/gather_info: Handle discard_if
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Mar 2016 03:37:18 +0000 (20:37 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Apr 2016 22:58:36 +0000 (15:58 -0700)
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/compiler/nir/nir_gather_info.c

index 046836fc534cd7d8d11b88b329f08890f718e1dc..bff235bb3775f4f788694aee0fc933c72f6b5889 100644 (file)
@@ -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;