panfrost: Pass a pipe-like swizzle to panfrost_new_texture()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 18 Dec 2020 09:37:11 +0000 (10:37 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 4 Jan 2021 16:05:42 +0000 (17:05 +0100)
commit256d4a3eee448df82b62b6cef539746847007e2c
tree59314653e39f0e3cf39c8b1f54aaa8ea2d6effdd
parente91cb99ec61154f527879160693ea98b2bdd1aa7
panfrost: Pass a pipe-like swizzle to panfrost_new_texture()

And let the function translate it to a mali swizzle. This way we will
be able to adjust the swizzle if needed.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8125>
src/gallium/drivers/panfrost/pan_context.c
src/panfrost/lib/pan_blit.c
src/panfrost/lib/pan_texture.c
src/panfrost/lib/pan_texture.h