projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a99d70d
)
vc4: Mark when we add discards while lowering blend state.
author
Eric Anholt
<eric@anholt.net>
Fri, 26 Aug 2016 23:38:15 +0000
(16:38 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 29 Aug 2016 17:57:04 +0000
(10:57 -0700)
src/gallium/drivers/vc4/vc4_nir_lower_blend.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_nir_lower_blend.c
b/src/gallium/drivers/vc4/vc4_nir_lower_blend.c
index f70821862cf003735332feca5839af1516099d14..b7e31b80c8ec85d3b60f14f562979e6cc641d8d5 100644
(file)
--- 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 *