panfrost: Don't check alpha test in fs_required on Bifrost+

Alpha testing is only native on Midgard. Saves a few instructions.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15797>
This commit is contained in:
Alyssa Rosenzweig 2022-03-30 12:39:17 -04:00 committed by Marge Bot
parent c08302670b
commit 7d1d7cdf57
1 changed files with 4 additions and 2 deletions

View File

@ -233,8 +233,10 @@ panfrost_fs_required(
return true;
/* Using an empty FS requires early-z to be enabled, but alpha test
* needs it disabled */
if ((enum mali_func) zsa->base.alpha_func != MALI_FUNC_ALWAYS)
* needs it disabled. Alpha test is only native on Midgard, so only
* check there.
*/
if (PAN_ARCH <= 5 && zsa->base.alpha_func != PIPE_FUNC_ALWAYS)
return true;
/* If colour is written we need to execute */