panfrost: Move tiled-linear conversion checking to a new function
authorIcecream95 <ixn@keemail.me>
Fri, 4 Sep 2020 22:18:33 +0000 (10:18 +1200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Sep 2020 11:54:01 +0000 (11:54 +0000)
commita3431ffb693093868417f8813e4954a26464d6f9
tree9fbb7440fde73fad0095903339c5919d248fbe0a
parentc35645320592acfb8548b5db4bb3d43cc3608c8a
panfrost: Move tiled-linear conversion checking to a new function

AFBC-linear conversion will also use this function.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6608>
src/gallium/drivers/panfrost/pan_resource.c