diff options
Diffstat (limited to 'src/compiler/nir/nir_lower_clip.c')
-rw-r--r-- | src/compiler/nir/nir_lower_clip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_clip.c b/src/compiler/nir/nir_lower_clip.c index 80db653a428..b74e6cca39f 100644 --- a/src/compiler/nir/nir_lower_clip.c +++ b/src/compiler/nir/nir_lower_clip.c @@ -286,6 +286,8 @@ lower_clip_fs(nir_function_impl *impl, unsigned ucp_enables, nir_intrinsic_discard_if); discard->src[0] = nir_src_for_ssa(cond); nir_builder_instr_insert(&b, &discard->instr); + + b.shader->info.fs.uses_discard = true; } } } |