nir: allow passing alpha-ref state to lowering-code

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Erik Faye-Lund
2019-10-03 16:22:58 -04:00
parent fdc4450c28
commit 6d7e02e37d
5 changed files with 25 additions and 7 deletions

View File

@@ -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);
}