pan/bi: Analyze helper invocations
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 24 Jun 2021 15:49:19 +0000 (11:49 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 9 Jul 2021 23:15:28 +0000 (23:15 +0000)
commit3fef3b6afcf739f5bdde3e38e47470c564fd256b
tree80822260fa26e0f8d8b47dd48500a196905cc902
parent134c74e301cb3f4388069ddf720054a8a3e86120
pan/bi: Analyze helper invocations

Set the .skip bit on texture instructions and the terminate discarded
threads bit on the clause header based on data flow analysis of helper
invocations. This code is adapted from Midgard, which requires the same
analysis with a few details changed.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11733>
src/panfrost/bifrost/bi_helper_invocations.c [new file with mode: 0644]
src/panfrost/bifrost/bi_pack.c
src/panfrost/bifrost/bi_printer.c.py
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/compiler.h
src/panfrost/bifrost/meson.build