summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-10-03 16:22:58 -0400
committerErik Faye-Lund <[email protected]>2019-10-17 10:41:36 +0200
commit6d7e02e37da5335d2be11ca1d4bfa002e73c5770 (patch)
tree11ec3d42693df45d342601ad70a9d28c4dd31b1f /src/gallium/drivers
parentfdc4450c285d21251a6a1de3f0765a934ea0567c (diff)
nir: allow passing alpha-ref state to lowering-code
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/panfrost/pan_assemble.c3
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c3
2 files changed, 4 insertions, 2 deletions
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);
}