diff options
author | Jason Ekstrand <[email protected]> | 2016-03-30 20:37:18 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-08 15:58:36 -0700 |
commit | b8f3909b73a9b893b6cfed752e65516dff384b6c (patch) | |
tree | e696c0e1627d09b5205a3f221e0727dc61339235 | |
parent | 819d0e1a7c06e98cfe82f687e30dcbe6b974a1e8 (diff) |
nir/gather_info: Handle discard_if
Reviewed-by: Nanley Chery <[email protected]>
-rw-r--r-- | src/compiler/nir/nir_gather_info.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |