diff options
author | Erik Faye-Lund <[email protected]> | 2019-10-07 12:07:20 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-17 10:41:36 +0200 |
commit | 2da792d398de445240a7216fe5266903b8daace3 (patch) | |
tree | 177e7538011c4fa172203c2b35d78c828b4ef791 /src/gallium | |
parent | 3298aedd6e9f12cefd5aa7414eeebf69ce7538d1 (diff) |
panfrost: do not report alpha-test as supported
This triggers lowering in the state-tracker, which makes things a bit
simpler.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_assemble.c | 9 | ||||
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.c | 3 |
2 files changed, 3 insertions, 9 deletions
diff --git a/src/gallium/drivers/panfrost/pan_assemble.c b/src/gallium/drivers/panfrost/pan_assemble.c index 8c3690c8e8c..2d1d1d172aa 100644 --- a/src/gallium/drivers/panfrost/pan_assemble.c +++ b/src/gallium/drivers/panfrost/pan_assemble.c @@ -59,15 +59,6 @@ panfrost_shader_compile( s->info.stage = stage; - if (stage == MESA_SHADER_FRAGMENT) { - /* 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, NULL); - } - } - /* Call out to Midgard compiler given the above NIR */ midgard_program program = { diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 0d67675b7fc..4c21bf3efaf 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -244,6 +244,9 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_MAX_VARYINGS: return 16; + case PIPE_CAP_ALPHA_TEST: + return 0; + default: return u_pipe_screen_get_param_defaults(screen, param); } |