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:
parent
c08302670b
commit
7d1d7cdf57
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue