diff options
author | Eric Anholt <[email protected]> | 2016-08-26 16:38:15 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-08-29 10:57:04 -0700 |
commit | b9a74fbec7e3fe8c159a3a18447a416e09c68693 (patch) | |
tree | d9c621bb0724404bd59a488eb03a59024df56081 /src/gallium | |
parent | a99d70d105df8a20f3ea98640afdeab7ed69b685 (diff) |
vc4: Mark when we add discards while lowering blend state.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_nir_lower_blend.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_nir_lower_blend.c b/src/gallium/drivers/vc4/vc4_nir_lower_blend.c index f70821862cf..b7e31b80c8e 100644 --- a/src/gallium/drivers/vc4/vc4_nir_lower_blend.c +++ b/src/gallium/drivers/vc4/vc4_nir_lower_blend.c @@ -494,6 +494,7 @@ vc4_nir_emit_alpha_test_discard(struct vc4_compile *c, nir_builder *b, discard->num_components = 1; discard->src[0] = nir_src_for_ssa(nir_inot(b, condition)); nir_builder_instr_insert(b, &discard->instr); + c->s->info.fs.uses_discard = true; } static nir_ssa_def * |