panfrost: Add modifier detection helpers
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 29 Apr 2020 21:51:03 +0000 (17:51 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 20:21:27 +0000 (20:21 +0000)
commitaeb55180ff34c50006dc3ba49097e9834bf32171
tree520fcfe24bda8ae8894fdd15f35641d04806b80d
parentc2b0f3c17d055152795c022da8202043baa3e15f
panfrost: Add modifier detection helpers

With the goal of removing modifiers from NIR, these helpers let us
detect modifier patterns without mutating the underlying NIR. These were
intended for upstream, but due to various issues are being (temporarily)
vendored.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5102>
src/panfrost/Makefile.sources
src/panfrost/util/meson.build
src/panfrost/util/nir_mod_helpers.c [new file with mode: 0644]
src/panfrost/util/pan_ir.h