radeonsi: Define gfx10_format in the common header.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 1 Jun 2020 22:55:22 +0000 (00:55 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 00:17:00 +0000 (00:17 +0000)
commitb351a507638ff213add8c3c79f6a7f848d09f8e9
tree4c506cef3202eea5ba8917ba72d555371386bb73
parentc98e52f88a1b24b33b4e8b95f80cf5dbbe6d2d66
radeonsi: Define gfx10_format in the common header.

So we don't have to have multiple definitions of the struct when
sharing with radv.

While at it put the table properly in a C file so we don't have to
deal with multiple definitions, and the struct definition isn't
in generated source.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5291>
src/amd/Android.common.mk
src/amd/Makefile.sources
src/amd/common/gfx10_format_table.h [new file with mode: 0644]
src/amd/common/gfx10_format_table.py
src/amd/common/meson.build
src/gallium/drivers/radeonsi/si_state.c