diff options
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); } |