panfrost: Don't fix up alpha test on Bifrost

Since 7d1d7cdf57 ("panfrost: Don't check alpha test in fs_required on
Bifrost+"), we don't use the alpha testing state on Bifrost. So the fixup isn't
needed either.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16035>
This commit is contained in:
Alyssa Rosenzweig 2022-04-19 09:54:15 -04:00 committed by Marge Bot
parent cf02a1a555
commit 7ad159aab2

View file

@ -3749,7 +3749,7 @@ panfrost_create_depth_stencil_state(struct pipe_context *pipe,
so->base = *zsa;
/* Normalize (there's no separate enable) */
if (!zsa->alpha_enabled)
if (PAN_ARCH <= 5 && !zsa->alpha_enabled)
so->base.alpha_func = MALI_FUNC_ALWAYS;
/* Prepack relevant parts of the Renderer State Descriptor. They will