pan/bi: Add dual texture fusing pass
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 8 Nov 2021 19:49:53 +0000 (14:49 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 12 Nov 2021 16:30:02 +0000 (16:30 +0000)
commit9146bafbb422dc535c04e5f177a44e8ea82031db
tree8385238e9049eac8d8ce2119af4e878896dbaf49
parente6c6a1afb46df14382f8d9fff7d9b12beea8429d
pan/bi: Add dual texture fusing pass

Bifrost supports a special "dual texture" instruction, sampling from two
textures at once at the same coordinate. Each subinstruction is highly
restricted (a subset of TEXS_2D); together, they are represented by TEXC
with a special dual texture operation descriptor. Add an optimization
pass to fuse these instructions.

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