From 6d7e02e37da5335d2be11ca1d4bfa002e73c5770 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 3 Oct 2019 16:22:58 -0400 Subject: nir: allow passing alpha-ref state to lowering-code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/gallium/drivers/panfrost/pan_assemble.c | 3 ++- src/gallium/drivers/vc4/vc4_program.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/panfrost/pan_assemble.c b/src/gallium/drivers/panfrost/pan_assemble.c index afd16abb2d2..8c3690c8e8c 100644 --- a/src/gallium/drivers/panfrost/pan_assemble.c +++ b/src/gallium/drivers/panfrost/pan_assemble.c @@ -63,7 +63,8 @@ panfrost_shader_compile( /* Inject the alpha test now if we need to */ if (state->alpha_state.enabled) { - NIR_PASS_V(s, nir_lower_alpha_test, state->alpha_state.func, false); + NIR_PASS_V(s, nir_lower_alpha_test, + state->alpha_state.func, false, NULL); } } diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 79edc6b1c2f..08487bea3a6 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -2258,7 +2258,8 @@ vc4_shader_ntq(struct vc4_context *vc4, enum qstage stage, NIR_PASS_V(c->s, nir_lower_alpha_test, c->fs_key->alpha_test_func, c->fs_key->sample_alpha_to_one && - c->fs_key->msaa); + c->fs_key->msaa, + NULL); } NIR_PASS_V(c->s, vc4_nir_lower_blend, c); } -- cgit v1.2.3