panfrost: Allow FPK when there are no side effects

Enables FPK for most real content.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10271>
This commit is contained in:
Alyssa Rosenzweig
2021-04-15 18:27:52 -04:00
committed by Marge Bot
parent dbf9a4b072
commit adcbda42e3

View File

@@ -469,6 +469,9 @@ panfrost_prepare_bifrost_fs_state(struct panfrost_context *ctx,
!(rt_mask & ~fs->info.outputs_written) &&
!alpha_to_coverage &&
!blend_reads_dest;
state->properties.bifrost.allow_forward_pixel_to_be_killed =
!fs->info.fs.sidefx;
}
}