pan/bi: Fuse LD_VAR+TEXS_2D -> VAR_TEX
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 24 Jun 2021 22:35:58 +0000 (18:35 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 9 Jul 2021 23:15:28 +0000 (23:15 +0000)
commitf35d0fb028b511f6862458ef45e87204f3f9cddb
tree76cbb61eea7effd016d1675ccba6a5ffe4d24cee
parent3fef3b6afcf739f5bdde3e38e47470c564fd256b
pan/bi: Fuse LD_VAR+TEXS_2D -> VAR_TEX

When the LD_VAR is only used once as an input to a texture instruction,
this is an improvement. We handle this case as a backwards pass.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11733>
src/panfrost/bifrost/bi_opt_mod_props.c