panfrost: Move format translation to root
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 18 Feb 2020 23:11:42 +0000 (18:11 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 21 Feb 2020 12:27:03 +0000 (07:27 -0500)
commitad44f587a8e3adbfa76aaea88f59e1f0724805b7
treede429142a8f9ed013dd1609c664e69e9eeb39311
parent58f14018b4f0e47d72f718f322f8aa0a5b8d0f0a
panfrost: Move format translation to root

Since PIPE formats are now shared across Mesa we can do this, and the
routines themselves are good enough code that I'm happy to move them
here. We'll use them momentarily.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3858>
14 files changed:
src/gallium/drivers/panfrost/Makefile.sources
src/gallium/drivers/panfrost/meson.build
src/gallium/drivers/panfrost/pan_assemble.c
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h
src/gallium/drivers/panfrost/pan_format.c [deleted file]
src/gallium/drivers/panfrost/pan_format.h [deleted file]
src/gallium/drivers/panfrost/pan_fragment.c
src/gallium/drivers/panfrost/pan_mfbd.c
src/gallium/drivers/panfrost/pan_sfbd.c
src/gallium/drivers/panfrost/pan_varyings.c
src/panfrost/encoder/meson.build
src/panfrost/encoder/pan_format.c [new file with mode: 0644]
src/panfrost/encoder/pan_texture.h