pan/bi: Constant fold texturing lowerings
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 3 Aug 2021 15:19:11 +0000 (11:19 -0400)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 11 Aug 2021 18:59:24 +0000 (14:59 -0400)
commitec76119dfb9c7c6b1f136e9e7575c135268f54d6
treeef68a9fbe828eea12e6d66e21c0df71e0857a7e8
parent6fa14794792d78e24a98df4ad912f44db5a188c8
pan/bi: Constant fold texturing lowerings

This ensures we can constant fold the ALU ops used to lower:

* explicit LOD calculations
* array textures
* texture offsets
* multisample indices

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