From 95b37fd21e10d3cb2c70cd882bee97e13f0d95f1 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 4 Aug 2021 10:55:46 +0200 Subject: [PATCH] panfrost: Add a common genxml file so we can share a few definitions Start with the enums that were manually redefined in pan_{texture,format}.h and the blend equation descriptors. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/lib/common.xml | 114 +++++++++++++++++++++++++++++++++++ src/panfrost/lib/meson.build | 17 +++--- 2 files changed, 124 insertions(+), 7 deletions(-) create mode 100644 src/panfrost/lib/common.xml diff --git a/src/panfrost/lib/common.xml b/src/panfrost/lib/common.xml new file mode 100644 index 00000000000..d4b5240fb01 --- /dev/null +++ b/src/panfrost/lib/common.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/panfrost/lib/meson.build b/src/panfrost/lib/meson.build index 021c8b98393..40e2cf5e23f 100644 --- a/src/panfrost/lib/meson.build +++ b/src/panfrost/lib/meson.build @@ -19,13 +19,16 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -pan_packers = custom_target( - 'midgard_pack.h', - input : ['gen_pack.py', 'midgard.xml'], - output : 'midgard_pack.h', - command : [prog_python, '@INPUT@'], - capture : true, -) +pan_packers = [] +foreach packer : ['common', 'midgard'] + pan_packers += custom_target( + packer + '_pack.h', + input : ['gen_pack.py', packer + '.xml'], + output : packer + '_pack.h', + command : [prog_python, '@INPUT@'], + capture : true, + ) +endforeach idep_pan_packers = declare_dependency( sources : [pan_packers],